Change "continue shopping" button destination

Hi,

I would like to change the link (returns to the collection) for the “continue shopping” button in my cart and use this link instead:

https://sugar-free-eu.myshopify.com/pages/product-categories

Shop: https://sugar-free-eu.myshopify.com/

password: temporary password: eveirt

Hope someone could help!

Hi @Eli90 ,

You can change the “Continue Shopping” link on the cart page by editing your theme’s code. Before doing so, I do suggest trying this out in a duplicate version of your theme, just to be on the safe side.

  1. From your Shopify admin, go to Online Store > Themes.

  2. Find the theme you want to edit, and then click Actions > Edit code.

  3. In the Sections directory, click **main-**cart-items.liquid.

  4. Look for the “continue shopping” code. If you’re having trouble finding it, you can hit CTRL + F or CMD + F if you’re on a Mac and type in “continue” to find the code.

  5. Replace {{ routes.all_products_collection_url }} with the URL that you want it to redirect to. In this case, it’s

https://sugar-free-eu.myshopify.com/pages/product-categories

I hope this answer helps.

it was in the cart-template.liquid, but it worked like magic. thx a lot for the help !!

@AvadaCommerce

Hello, is there a way to redirect the customer to the last viewed page or item, instead of a specific collection? That would really help me!

any solution for this?