Streaming live at 10am (PST)

Ecommerce Shopping Cart - "Empty Cart" or "Clear Cart" button


Does anyone have any idea of how clear all items in the shopping cart? I’m thinking of either a way to clear the users cache or a buttons that reloads the page and empties the shopping cart.

Any help would be great, thanks

Here is my site Read-Only: LINK
(how to share your site Read-Only link)

hey did you find out how to do this… I’ve been struggling with this

Can any one help with doing this please?? I don’t mind custom code or anthing. I just want a feature where I can clear basket as I get more and more clients who keep asking why the clear basket option is not integrated in the shopping cart. Any help please? @WebDev_Brandon @rileyrichter

:wave: I wrote a script that clears the cart!

Two steps to install:

  1. In ‘Project Settings’ -> ‘Custom Code’ -> ‘Footer Code’ add:

    <script src="" type="text/javascript" crossorigin="anonymous"></script>

  2. On your ‘clear cart’ button add a custom attribute:

    name: storeflow-library-node
    value: clear-cart

(Custom attributes are found on the right panel, gear icon tab toward the bottom)

I added it to my website Storeflow. You can try it out there.

Let me know if there any issues with it, I’m happy to help!

1 Like


I kinda gave up on the feature. But that works perfectly when I tried the implementation. Thank you soo much, youre a lifesaver

1 Like

Yes Thank you HEAPS! Lifesaver :wink:

1 Like