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?”
Leave a Comment
You must be logged in to post a comment.
After checkout action, you need to add the below script. This will clear all local storage data from the cart.
<script>
localStorage.clear();
</script>