Solved

Continue Shopping Button Redirect to Product Page Instead of Collection Page

bolt23
Visitor
3 0 0

Hi there, 

Please could somebody help me redirect my 'continue shopping page'  to the product page instead of the collections page.  I have a single product store.

 

See the Dawn theme code below for an empty cart:

 

 

<cart-items class="page-width{% if cart == empty %} is-empty{% else %} section-{{ section.id }}-padding{% endif %}">
<div class="title-wrapper-with-link">
<h1 class="title title--primary">{{ 'sections.cart.title' | t }}</h1>
<a href="{{ routes.all_products_collection_url }}" class="underlined-link">{{ 'general.continue_shopping' | t }}</a>
</div>

<div class="cart__warnings">
<h1 class="cart__empty-text">{{ 'sections.cart.empty' | t }}</h1>
<a href="{{ routes.all_products_collection_url }}" class="button">
{{ 'general.continue_shopping' | t }}
</a>

 

 

Do I just need the correct url instead of routes.all_products_collection_url?

 

Thank you so much!

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
7532 1454 1451

This is an accepted solution.

Hi @bolt23 

If your store has only one product then you can replace {{ routes.all_products_collection_url }} code with your product page link. 

- Helpful? Like or Accept solution! - Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

View solution in original post

Replies 3 (3)

Dan-From-Ryviu
Shopify Partner
7532 1454 1451

This is an accepted solution.

Hi @bolt23 

If your store has only one product then you can replace {{ routes.all_products_collection_url }} code with your product page link. 

- Helpful? Like or Accept solution! - Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

bolt23
Visitor
3 0 0

Hi,

 

I am not sure what my product page link is.  When I use what is in my search bar I get the following error.

 

Liquid syntax error (line 34): Unexpected character

 

Thanks

Dan-From-Ryviu
Shopify Partner
7532 1454 1451

Hi @bolt23 

When editing your product in your shopify admin, go to Search engine listing then you can see your product page URL

Screenshot_5.jpg

- Helpful? Like or Accept solution! - Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now