Change destination of "continue shopping" link - Dawn theme

Solved

Change destination of "continue shopping" link - Dawn theme

kgpolicy
Excursionist
32 0 4

Dawn theme:  https://www.yellowathleticcbd.com/collections/all

 

When adding a product to your cart, you get a popup that includes the link "continue to shopping" below the "check out now" button.  Currently, that link just closes the window and returns to the product that was just added to the cart. I want to redirect that to the /collections/all page. 

 

kgpolicy_0-1666741413922.png

I found a few suggestions for this redirect here in the discussions, but none of them worked for me. Any other suggestions out there?

Accepted Solution (1)

gr_trading
Shopify Partner
1843 145 193

This is an accepted solution.

Hi @kgpolicy ,

 

To achieve the desired URL

 

  • From Shopify dashboard, go to Online store > Themes > Edit code
  • In the search box, search for the file named cart-notification.liquid
  • Scroll to the line no. 26 in my file, and paste this code:

 

<a href="https://gitagshop.myshopify.com/collections/all" class="link button-label">{{ 'general.continue_shopping' | t }}</a>

 

 

Change https://gitagshop.myshopify.com with your current domain URL.

 

Below is the screenshot for your reference

hari1_prasad_0-1666760915267.png

 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

View solution in original post

Replies 4 (4)

gr_trading
Shopify Partner
1843 145 193

This is an accepted solution.

Hi @kgpolicy ,

 

To achieve the desired URL

 

  • From Shopify dashboard, go to Online store > Themes > Edit code
  • In the search box, search for the file named cart-notification.liquid
  • Scroll to the line no. 26 in my file, and paste this code:

 

<a href="https://gitagshop.myshopify.com/collections/all" class="link button-label">{{ 'general.continue_shopping' | t }}</a>

 

 

Change https://gitagshop.myshopify.com with your current domain URL.

 

Below is the screenshot for your reference

hari1_prasad_0-1666760915267.png

 

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
kgpolicy
Excursionist
32 0 4

Thanks! That worked well- I just had to delete line 27 after I added this on line 26. Before I deleted line 27, I had 2 "continue shopping" links, once removed, everything now works perfectly!  Thanks so much.

mcfpro
Visitor
1 0 0

Hello--

 

I am doing some development on a client's website. We are trying to modify the location that the continue shopping link leads you to on the cart page when either empty or when it displays below your cart total on the cart page. I have tried using the code above. 

I am wondering if there is an update since your last post as I am not able to get this to work properly. No changes appear to apply when this code is added. Attached is a screenshot of what I have done. 

Help would be greatly appreciated. 

 

Thanks, 
Natalie

gr_trading
Shopify Partner
1843 145 193

Hi,

 

Seems you missed the attachment you can also share the code of your file to check.

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee