Shopify themes, liquid, logos, and UX
I am using the Debut theme. That link takes the customer to the ALL Products page but i don't want the customer to see all of my products. How can i change that link to my collections Page instead?
Solved! Go to the solution
This is an accepted solution.
You following path
Online Store->Theme->Edit code->sections->cart-template.liquid
and replace the code by the url you want.
{{ routes.all_products_collection_url }}
This is an accepted solution.
You following path
Online Store->Theme->Edit code->sections->cart-template.liquid
and replace the code by the url you want.
{{ routes.all_products_collection_url }}
thanks!! that worked
I just tried that, but I get an error message:
Am I inserting the link wrong?
Nevermind, I didn't knew I had to delete the {{ }} too. It looks now like this:
<a href="https://freshmax.shop/collections/selai-bebas-gula" class="text-link text-link--accent">
and it works.
Thanks!
Hello
What would the code be to return the person to the same collection of the product they just placed in the cart?
Thanks in advance
Hi! I am also using Debut. On my site the 'continue shopping' button only after you remove items from your cart and that button appears, it takes you to the homepage instead of the products page. When you have something in your cart the 'continue shopping' button works just fine. Anyway to fix it so when the cart has been updated to empty and the 'continue shopping' button appears it takes you back to the products and not the homepage?
Thanks!
I have the same issue. The "Continue Shopping" Link in an empty cart takes me to the home page and the "Continue Shopping" link otherwise takes me to the products. I would like both to go to the products page. Did you get your issue fixed?
I also had to change another line in the same file, line 318 for me.
<a href="{{ routes.root_url }}" class="btn btn--has-icon-after cart__continue-btn">{{ 'general.404.link' | t }}{% include 'icon-arrow-right' %}</a>
to
<a href="/collections/all-meals" class="btn btn--has-icon-after cart__continue-btn">{{ 'general.404.link' | t }}{% include 'icon-arrow-right' %}</a>
My Hero! Thank you so much!
This also works for theme 2.0.
Online Store->Theme->Edit code->sections->main-cart-items.liquid
and replace the code by the url you want.
{{ routes.all_products_collection_url }}
Im using the free theme Origin.
I had to go to Online Store->Theme->Edit code->snippets->cart-drawer.liquid (for me line 43)
and replace the code {{ routes.all_products_collection_url }} with the url I wanted.
Changing the url in Online Store->Theme->Edit code->Sections->main-cart-items.liquid (in two places) did not have any effect.
Maybe because I am using the cart as a pop-up to the side for which i believe the cart-drawer.liquid is responsible.
I also
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024