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.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025