Change CONTINUE SHOPPING button to act as a back button

As we all know the Continue Shopping button leads the customer to the all products collection.

I would like to change it to act as if they had clicked the back button on their device, returning them to the product page that they were on before the cart opened.

I did a lot of looking around and couldn’t find any attempts even close to this. There are some awkward attempts to edit code to track the customer’s last visited page and send them there, but i didn’t find any successful, and the back button performs the exact function that I’m looking for, I just want to make it easier on the customer.

Dawn Theme 9.0

See https://community.shopify.com/post/1764557

Apply the same method to the general main-cart.liquid template if not using the cart-notification.

If that doesn’t apply give specifics.

Good hunting.

1 Like

Thank you! Unfortunately, the link you posted sounded exactly what i was looking for, but it had no effect. I also don’t have a main-cart.liquid template, best I can do is a main-cart-footer.liquid and a main-cart-items.liquid but neither of them have the line of code that needs to be replaced.

1 Like

Found the solution, very simple and worked immediately: https://community.shopify.com/topic/1607573