On the Shopify cart screen, there are cases where you want to display recommended products only when the cart is empty, and hide them when there are products in the cart. For example, if you want to display a specific collection using the "Featured Collections" section, you can make a few changes to the beginning of liquid to specify the hide conditions.
1
/
of
1
Published:2024.07.25
An example of a setting for the theme "Dawn" where the "Featured Collection" is displayed only when the cart is empty and hidden once an item is added to the cart.
An example of a setting for the theme "Dawn" where the "Featured Collection" is displayed only when the cart is empty and hidden once an item is added to the cart.
Applications
Applications
- Blog management and editing
How to implement
How to implement
- LIQUID
- HTML/CSS
Share
After making a purchase (all items are ¥0), you will be able to view the sample code.
Couldn't load pickup availability
If you have already made a purchase, please login here.
Sample Codes
Test Theme :Dawn/Rise 15.2.0
Add the code at the beginning of "sections/featured-collection.liquid"
