Skip to content
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

Merged
merged 1 commit into from
Sep 29, 2021

Conversation

LucasLacerdaUX
Copy link
Contributor

@LucasLacerdaUX LucasLacerdaUX commented Sep 23, 2021

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

Copy link
Contributor

@sofiamatulis sofiamatulis left a 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 -%}
Copy link
Contributor

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 -%}

Copy link
Contributor Author

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).

Copy link
Contributor

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

@sofiamatulis sofiamatulis self-assigned this Sep 27, 2021
@kmeleta kmeleta self-requested a review September 29, 2021 16:44
Copy link
Contributor

@kmeleta kmeleta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LucasLacerdaUX LucasLacerdaUX merged commit 7786f95 into main Sep 29, 2021
@LucasLacerdaUX LucasLacerdaUX deleted the selling-plan-cart-notification branch September 29, 2021 17:35
phapsidesGT pushed a commit to Gravytrain-UK/gt-shopify-dawn-theme that referenced this pull request Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subscription Label missing from Add to cart notification
4 participants