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.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Aviance School is one of the largest web solutions platform in India for developers to learn and share their programming knowledge and build their careers.
After checkout action, you need to add the below script. This will clear all local storage data from the cart.
<script>
localStorage.clear();
</script>