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 Answer

  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
Code Compiler Web Tools Contact