Jump to content

Create a link to empty cart? Clear cart contents?


projects

Recommended Posts

Hi, is it possible to create a url that when loaded it clears the cart?

 

So for example if I have 2 items in my cart, and I click on a link on the website which has the url "http://mystore.com/?controller=cart&delete&id_product=all" and it removes the items from the cart.

 

Is something like this possible? I know a button can be created but I'm trying to go the link route.

Edited by projects (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...