Skip to product information
1 of 1
Published:2023.05.26

When adding content (sections) to the cart page of the Shopify theme "Dawn", how can I display them only when the cart is empty, and not display them if there are products?

When adding content (sections) to the cart page of the Shopify theme "Dawn", how can I display them only when the cart is empty, and not display them if there are products?

Applications

  • Cart Edit

How to implement

  • Javascript
View full details

It's not that effective, but it's also a good idea to display links to products and collections on the empty cart page, like Allbirds does. This is an example of a setting that shows or hides depending on the contents, and displays the cart without refreshing the screen even when it's emptied.


How to add content (sections) to the cart page of the theme "Dawn" so that they are displayed only when the cart is empty, and not when there are products


Place the sections you need in your cart page template and add your customized Liquid section separately.


After making a purchase (all items are ¥0), you will be able to view the sample code.

If you have already made a purchase, please login here.

Sample Codes

Test Theme :Dawn/Rise 15.2.0

Place the sections you need in your cart page template and add your customized Liquid section separately.

Related Post