Shopify is slowly gaining popularity in India. Due to high commissions and no control over customer, more and more online retailer are moving towards open their own E-Commerce store. Shopify is the popular solution because it gives you out of box solution to open your own e commerce store.
If you have a shopify store, you may notice that on the cart page, there is a button named “continue shopping”. In the shopify systems, there is a default page which list all the products on one page. Continue shopping button leads the user to the page where all products are listed. The url of the page looks like https:// your-store.com/collections/all . The button looks like this.
We don’t want user to go to this page. We want our user to go somewhere else. For example, I want to take my user on my collections page rather than all products listed.
To achieve this, you have to edit the code of your theme.
- Goto Online Store->Theme->Edit code->sections->cart-template.liquid
2. Find {{ routes.all_products_collection_url }}
3. Replace the above string by the link where you want your user to go when he clicked on continue shopping button.
4. If you want your user to go to collections page. Replace the above string by {{ routes.collections_url }}
Voila, it is done.
If you have questions, you can ask them in the comments section
References:
https://shopify.dev/docs/themes/liquid/reference/objects/routes#routes-collections_url
Leave a Reply