All things Shopify and commerce
Within the Dawn theme, there is functionality such that a drawer will come down upon adding product to the cart. It looks like this:
I'm having trouble getting the "Continue Shopping" link to work. When clicking on it, the drawer closes. I want it to take the customer to the page showing all products. I've tried working with a mention of "continue_shopping" per what I saw in videos/posts, in the snippets/cart-drawer.liquid file, but anything I change it has no impact on that link. There are two mentions of "continue_shopping" in the file "sections/main-cart-items.liquid" that control the text link in the cart and the button to continue shopping when the cart is empty. Those I was able to edit and they are doing exactly as they should.
Can anyone help me to find where the code is that would manipulate the link to send the user to main product page?
Solved! Go to the solution
This is an accepted solution.
Hi @bellesbakiebar,
The file you're looking for is the cart-notification.liquid file. If you go to the bottom of that one, you'll find the following code:
<button type="button" class="link button-label">{{ 'general.continue_shopping' | t }}</button>
You can wrap that in an <a></a> tag like shown, and just include the link you want to link to in the href attribute:
<a href="/collections/all"><button type="button" class="link button-label">{{ 'general.continue_shopping' | t }}</button></a>
Hope this helps!
If this was useful, a Like or marking it as a Solution is appreciated. Need more help? Feel free to reach out anytime using the email address/phone number in my signature.
This is an accepted solution.
Hi @bellesbakiebar,
The file you're looking for is the cart-notification.liquid file. If you go to the bottom of that one, you'll find the following code:
<button type="button" class="link button-label">{{ 'general.continue_shopping' | t }}</button>
You can wrap that in an <a></a> tag like shown, and just include the link you want to link to in the href attribute:
<a href="/collections/all"><button type="button" class="link button-label">{{ 'general.continue_shopping' | t }}</button></a>
Hope this helps!
If this was useful, a Like or marking it as a Solution is appreciated. Need more help? Feel free to reach out anytime using the email address/phone number in my signature.
Thank you! That was exactly what I needed and it works great.
No problem! I'm glad it helped you :).
If you need any assistance in the future, please feel free to reach out.
Hey
I totally get what you’re trying to do great idea for improving the customer experience.
For the cart drawer in the Dawn theme, that “Continue Shopping” link is usually controlled in a JavaScript file rather than just the Liquid templates. It’s likely defaulting to close the drawer without a set destination.
You’ll want to look into your theme’s cart-drawer.js (or similar file) and find the function handling that button click. From there, you can probably update it to redirect to your collections page instead of just closing the drawer.
Hope that points you in the right direction! Let us know how it goes.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025