Shopify themes, liquid, logos, and UX
Is there a way to add a button to the cart page that would clear/empty the cart so that you dont have to click the X one by one on each item you want to remove from the cart? This is for the Empire theme. Attached is a screenshot of the cart page. Thank you for your help.
If your theme gives you "Custom liquid" block/section, you can use the following code:
<a class="button-secondary" href="{{- routes.cart_url -}}/clear">
Empty cart
</a>
If your theme has "Custom liquid" section/block, you can use it and paste the code there in theme Customizer.
Otherwise you'd need to edit cart section code, but it's different for each theme.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024