We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Don't direct people to the checkout page on refresh theme

Don't direct people to the checkout page on refresh theme

TomDeschepper
New Member
9 0 0

Hi guys, 

 

For my shop https://akaro-online.com/ I am using the shopify refresh theme.

 

A while ago I wanted to redirect people to my checkout page directly after they added their product to the shopping cart. I watched this video https://www.youtube.com/watch?v=AMtadMQLqUE and followed the steps. It worked.

 

After reviewing, I want to change it back (showing shopping cart on the right side). So I changed the '/checkout/'  back to window.routes.cart_url: 

} else if (!this.cart) {
window.location = window.routes.cart_url;
return;

 

Unfortunately, you will still go directly to the checkout page. I also tried to copy paste from a refresh theme I used earlier, but nothing works. Can someone help me out?

 

Thanks a lot! 

Reply 1 (1)

Shadab_dev
Shopify Partner
1583 83 173

Will need to look up the code, since this is a free one will try it on my dev store first

Buy me Coffee, if you feel i was helpful. Email Me here or WhatsApp me with this link for any help with shopify theme customizations or any project in web dev. If this is helpful, please Like and Accept the solution.