minicart.js: How to clear all cart items after checkout?

I have developed a shopping cart system using core PHP and minicart.js. I want to remove all cart items after checkout.

1 thought on “minicart.js: How to clear all cart items after checkout?”

  1. After checkout action, you need to add the below script. This will clear all local storage data from the cart.

    <script>
    localStorage.clear();
    </script>

  2. Reply

Leave a Comment

izmir eskort - mersin eskort bayan - adana eskort - antalya eskort - eskort istanbul