I`m facing a problem and i hope you help me.
I`m using the free theme "Simple" and i wanted to add an "Add to cart" button to my collection list, because the theme support "Add to cart" button just in single product page.
After i followed the instructions from this thread " https://help.shopify.com/en/themes/customization/products/add-to-cart/stay-on-product-page-when-item... " from 1-9 instructions, i managed to add an "Add to cart" button on the products from the pages i wanted, but in the single product page i have the problem that when the customer clicks on "Add to cart", that button does not refresh (like the buttons that i added), and it cant add another product from that single product page, because it stays freeze saying "ADDED TO CART", until he manually refresh the page.
Can you help me to add the same button that refresh, or refresh the page itself, after a customer hit "Add to cart" from single product page?
Solved! Go to the solution
For example this is a single product page, and after you press "Add to cart (Adauga in cos)" it freezes and the customer needs to refresh the page if he wants to add again the same product to cart.
This is an accepted solution.
Open the theme.js.liquid inside Assets folder. Go to line 1276 and add location.reload();
as a new line. See screenshot attached. This will reload the page after the product is added to cart.
I have the exact same problem but cannot find the location to dd this piece of code. Can someone help me please?
Product page does not refresh unless manually refreshed.