-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Fix cart improvements empty state #319
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 on my end Thomas. I'd recommend we request translations now if content is confirmed so that they come in soon 🤞🏻
sections/main-cart-items.liquid
Outdated
{%- if shop.customer_accounts_enabled -%} | ||
<h3 class="cart__login-title">{{ 'sections.cart.login.title' | t }}</h3> | ||
<p class="cart__login-paragraph"> | ||
{{ 'sections.cart.login.paragraph_html' | t: link: routes.account_login_url }} | ||
</p> | ||
{%- endif -%} |
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.
Is this only meant to be visible on the empty cart state?
If it allows you to checkout faster, shouldn't we surface this to customer with items in their cart as well?
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.
Yeah, this is empty state only. It's an interesting point, though.
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.
cc. @melissaperreault if you have time to see Martina's question.
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 a good question, I'll investigate with the team and come back! 👍
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 overall. One question, can we default the featured collection to the all_products
collection? I think that should be possible. It would allow for merchants to not need to make any changes for it to already look good in the cart.
I wonder if we should do this if this is the only place we are doing something like this on the theme. |
We can see with @Guillaumegranger1 but the rationale was basically that this is a part of the theme the merchant might not actually check when setting up their store, compared to something like the homepage, so we should have a default that makes sense. If "all products" isn't possible, maybe we can default it to their first collection, whatever that is? Not sure if that works or not. 🤔 |
Usually, we use the I tried |
fbfa513
to
46b1d2e
Compare
Thank you for the review @melissaperreault ! Just made the changes |
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 Thomas. All translations are back too 🙌🏻
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 awesome.
] | ||
} | ||
} |
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.
} | |
} | |
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.
Feel free to keep this so that the approvals don't get removed. Just noting it.
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.
Once the little small spacing change are done, we are good to go! 🎉
10b0abb
* main: (23 commits) Cart content update (Shopify#370) Footer spacing and alignment adjustments (Shopify#369) Product Template UI polish updates (Shopify#219) footer ui updates (Shopify#318) Fix cart improvements empty state (Shopify#319) [Announcement] Adjust block id for displaying dynamic names (Shopify#327) Update translations: buyer (Shopify#329) Revert editor setting changes (Shopify#328) Update translations (Shopify#294) Fix collection filtering UX (Shopify#268) Added page width setting and fixed image quality (Shopify#292) Add top border on cart notification when "show separator line" setting is deactivated (Shopify#306) movebadge code into base.css (Shopify#313) Collage UI bug fixes (Shopify#308) Customer account UI polish (Shopify#177) Added custom liquid block to product page (Shopify#269) Fix disclosure icon (Shopify#310) Fix facet price filter label spacing (Shopify#300) Fix duplicate search icon when header logo is set to "Top center" (Shopify#252) Add card outline setting (Shopify#239) ...
* Fix cart improvements empty state * rename featured_products to feature-products * Add 'all' to show all products when displaying featured collection in default state * Update 3 translation files * add white space at end of line * Adjust heading hierarchy, and spacing * Update 21 translation files * Update 6 translation files * Spacing adjustment * adjust padding Co-authored-by: translation-platform[bot] <34770790+translation-platform[bot]@users.noreply.github.com>
Why are these changes introduced?
Fixes #314
The goal of this PR is to improve the empty state of the cart.
What approach did you take?
Demo links
Checklist