Categories
Mastering Development

Emptying cart when on Home Page – Shopify

Issue regarding to Shopify:

I manage to add Ajax feature which empties cart when clicking on Logo (logo redirects to home page).

However, I cannot figure out how to empty cart when I click ‘back arrow’ until Homepage.

Summing up – cart should be emptying whenever I reach Home Page.

Thanks for all the answers!

Leave a Reply

Your email address will not be published. Required fields are marked *