Jump to content

Command or Code to Clear Cart


GSHost

Recommended Posts

Is there a built in command that I could use on my ordering template that will automatically clear the cart?

 

I have my ordering page setup so the product drop down box is not disabled when a customer selects a product using the Single Page order form. The problem I have is that this allows customers to select a product and click "Update Cart," then select a product again and click "Update Cart" for a second time when I only want them to have the ability to add a single product at a time. Otherwise the process is confusing because the customer will believe they are only selecting a single product, but the pricing shows greater than what they have selected on the page because there are multiple items in their cart.

 

The best way to solve this that I can think of is to clear the cart when someone selects a product in the drop down box of products before displaying the product that they just selected. Anyone have any ideas?

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated