-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add subscription label to cart notification #684
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍 just added a small comment
@@ -22,6 +22,9 @@ | |||
{%- endfor -%} | |||
</dl> | |||
{%- endunless -%} | |||
{%- if item.selling_plan_allocation != nil -%} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an extreme small nitpick, but I noticed on order.liquid
we are using unless instead.
Should we keep it consistent?
{%- unless line_item.selling_plan_allocation == nil -%}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohh, good question.
I'm pretty sure we previously agreed that we'd avoid using unless
, except for very specific cases where the syntax becomes much clearer (unless cart.empty?
) doing that way. I'm trying to find the GitHub thread where we discussed that back in February.
I'll keep this open until I find this (or confirm in our Slack channel).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you are right 🤔 in that case, we probably want to update the other file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Why are these changes introduced?
Fixes #673
What approach did you take?
Same approach used on
main-cart-items.liquid
: output a<p>{{ item.selling_plan_allocation.selling_plan.name }}</p>
element below the cart options.Demo links
Checklist