Change "Continue Shopping HERE" link (Empty Cart & 404 Page) - Simple Theme

Solved
New Member
8 0 0

I have edited the code so the "Continue Shopping" button on the Cart Page reroutes to home page instead of "All Products".

However, when the cart is empty - a message displays "Your cart is currently empty. Continue browsing here - the "HERE" redirects to 

"All Products". This also happens with the Click "here" to continue shopping link on the 404 page. 

I would like both of these links to route to the homepage, instead of "All Products".

I have located the sections of code to edit for the both pages, but not sure what to replace the "link: routes.all_products_collection_url" section with to have it go to home page.

I have included screenshots.

I am customizing a Simple Theme template - although the Debut theme is currently applied to my site.

allureretail.com 

 

 

help.pnghelp2.png

0 Likes
Highlighted
Shopify Partner
79 15 15

Hi @AR2018 

 

Doesn't changing routes.all_products_collection_url to "/" work?

0 Likes
Highlighted
New Member
8 0 0
No, when I change it to
t: link: /
It redirects back to the same page - the empty cart page.
I also tried
t: /
It redirects to 404 page not found
0 Likes
Highlighted
Shopify Partner
79 15 15

Can you show the translation line for it? 

 

I mean the text inside en.default.json.

 

 

0 Likes
Highlighted
New Member
8 0 0

Is this the information you're requesting?

 

 

help4.png

0 Likes
Highlighted

Success.

Shopify Partner
79 15 15

Yep that it is.

 

I don't see any issues why this is not working:

 

| t: link: "/"

Please double check if you entered it correctly. Your html output should be href="/" which will point you to the homepage. If it's not inspect the href attribute of the link and see where it points to.

0 Likes
Highlighted
New Member
8 0 0

Woops! I apologize - the first time I had tried these two

t: link: /
t: /

 

It is working properly now with

t: link: "/"

 

Thank you!

0 Likes
Highlighted
New Member
1 0 0

What if you want to take the shopper back to a specific collection?

0 Likes