I have added a back button on my product page, but when I click it, the item added to the cart automatically gets eliminated. However, it shows up again when one goes to check out.
How to keep the cart quantity the same even after hitting the back button?
Solved! Go to the solution
This is an accepted solution.
In the product page, where this code please (Highlighted in screenshot)
Replaced that code with this
<script> document.write('<a href="' + document.referrer + '">Go Back</a>'); </script>
If this solution works, then please accept it as solution and please like