I’m using the Dawn theme and want to change the destination of the Continue Shopping link in the cart page to go back to the page the user was previously on.
I’ve seen other solutions, but none that would work with the Dawn theme.
Please help!!!
I’m using the Dawn theme and want to change the destination of the Continue Shopping link in the cart page to go back to the page the user was previously on.
I’ve seen other solutions, but none that would work with the Dawn theme.
Please help!!!
Hi @ReneeLeighann ,
Please go to main-cart-items.liquid file and add code here:
Code:
onclick="history.back();return false;"
Hope it helps!
Hey @ReneeLeighann .
Thanks for reaching out.
Did the coding change advised by @LitExtension , work for you? If so, be sure to mark their post as a solution to inform others that may view the thread.
Since the Dawn theme is designed and supported by Shopify, we can use free design time for Shopify themes to allow our internal team to make the changes on your behalf. If you are interested in using the design time, you will need to login to your store using the Contact Us page. This will allow us to securely verify you as the store owner before speaking with a Support Advisor about the changes you would like to see.
Let me know if you have any questions.
That worked perfectly, thank you!! ![]()
Worked great for me on the Craft theme also. Returns to any page on the site just previous to clicking on the Shopping Cart icon. Thank you!!I
Thank you. @LitExtension !! I’ve tried many code snippets suggested to try and change my CONTINUE SHOPPING cart button to go back to previous page viewed but yours is the only solution which actually worked
I’m using Broadcast theme on Shopify 2.0.
Awesome, I’m glad it worked for you!!
Hi! This worked perfectly for me. Thank you! What code would I enter to always return to the homepage?
It works but when I empty the cart and then hit the “continue shopping” Link or button it does go back to the product however the cart still says the number of items that were in there until I refresh the screen, is there a fix for this?
I’m having the same problem. Also is there a way to have it link back to the home page rather than the very last page.
THANK YOU!!!