I’m using cart js to add items to an In page cart, so no need for a cart.liquid page. However if I go to checkout you see a back to cart link. I don’t want a cart page.anyway to disable this or hide it?
anyone got a better idea or done this before?
I think it is best to redirect the URL to the home page. If we change the liquid and if in future you need cart page that you will have to change code and do the stuff again. So instead of it just put redirection which you can do from admin.
Check this link.
This will guide you on how you can put redirect for the cart page.
Hope this will help.
Ahh, sorry that was my bad. Well then will have to go check out the liquid and where says back to cart page. You need to block/comment that liquid code.
So that link will disappear and no one click there.
Yeah. I’ve put it in the head of the layout. Not got the code to hand but I use liquid to check that the template is cart, and then just do a redirect with js to / (homepage). Works great and put it in the head so it triggers as soon as we hit the page.
I have another question, I wonder if I can dm you about it.