How to redirect the "Continue Shopping" button on cart page to last collection viewed on Spotlight?

marianaclothing
Visitor
3 0 0

Hi all,

 

I am currently using the Spotlight theme on Shopify.

 

I am fairly new to Shopify, let alone code all together. I am trying to figure out how to change the page that the "Continue Shopping button takes the viewer to the previous collection viewed or the shop all page? I have browsed everything pertaining to this issue, and yet, I cannot seem to get it to work myself. I know it is the line 29 in "main-cart-items.liquid" that I must change, but how should I write the code to change the link to what I want? Any help is greatly appreciated.

 

Link it takes customer:https://marianaclothing.com/collections/all 

 

Link I wish for it to change to: Last collection viewed OR Shop All page: https://marianaclothing.com/pages/shop-all 

 

I need help on how to write the code to replace the destination as I do not know how to implement the url correctly into the code.

 

Many thanks.

Replies 4 (4)

saim007
Shopify Partner
384 54 72

@marianaclothing Where you want to change the link of continue shopping?

Saim | Shopify Partner
- Was my reply helpful? Don't forget to Like and Mark Solution.
- Hire me to unlock the full potential of your e-commerce store 🙂
- Buy a Coffee for me to get more frequently help 🙂
marianaclothing
Visitor
3 0 0

I would like to change the link to either the last collection viewed or the shop all page. If I cannot do the last collection viewed, then the shop all page is best for me. The link for the shop all page is here: https://marianaclothing.com/pages/shop-all

 

I do not know how to write the code so the continue shopping button directs the customer to this page.

saim007
Shopify Partner
384 54 72

No, you don't understand, the continue shopping button only shows on Cart drawer and cart page so from these where you want to change the link? See below screenshot so we both are on right track -

sandyparihar07_0-1682398490921.pngsandyparihar07_1-1682398503378.png

 

Saim | Shopify Partner
- Was my reply helpful? Don't forget to Like and Mark Solution.
- Hire me to unlock the full potential of your e-commerce store 🙂
- Buy a Coffee for me to get more frequently help 🙂
marianaclothing
Visitor
3 0 0

I managed to figure it out myself. Thanks for your help.