- Posts: 70
- Thank you received: 1
Stop Checkout redirection when product added to cart
9 years 2 months ago #278279
by Storm
Stop Checkout redirection when product added to cart was created by Storm
-- HikaShop version -- : 3.1.1
I want to stop the redirection to the checkout when a product is added to the cart, I don't want to use the site in 'Add to cart legacy'.
Is there anyway that when adding a product to the cart, it doesn't redirect to the checkout page?
I want to stop the redirection to the checkout when a product is added to the cart, I don't want to use the site in 'Add to cart legacy'.
Is there anyway that when adding a product to the cart, it doesn't redirect to the checkout page?
Please Log in or Create an account to join the conversation.
9 years 2 months ago #278282
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Stop Checkout redirection when product added to cart
Hello,
Yes, the cart notification plugin.
See : www.hikashop.com/home/blog/367-hikashop-3-0-out.html#cart
Regards,
Yes, the cart notification plugin.
See : www.hikashop.com/home/blog/367-hikashop-3-0-out.html#cart
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
9 years 2 months ago #278330
by Storm
Replied by Storm on topic Stop Checkout redirection when product added to cart
That's not what I was after.
If you go to this page:
mcveighparker.com/water-and-drainage/dra...age-pipe-80mm-x-100m
Then click 'Buy Now' the product is added to the cart, but the page immediately is redirected to the Checkout page. I don't want it to redirect to the checkout page.
If you go to this page:
mcveighparker.com/water-and-drainage/dra...age-pipe-80mm-x-100m
Then click 'Buy Now' the product is added to the cart, but the page immediately is redirected to the Checkout page. I don't want it to redirect to the checkout page.
Please Log in or Create an account to join the conversation.
9 years 2 months ago #278331
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Stop Checkout redirection when product added to cart
Hello,
If you try to follow my indication and use that plugin ; you won't have anymore a redirection to the checkout page.
But if you don't want to trust me ; it's up to you !
Regards,
If you try to follow my indication and use that plugin ; you won't have anymore a redirection to the checkout page.
But if you don't want to trust me ; it's up to you !
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
9 years 2 months ago #278417
by Storm
Replied by Storm on topic Stop Checkout redirection when product added to cart
I'm not sure what changes that plugin needs. Could you please provide step by step instructions? Thank you
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
9 years 2 months ago #278430
by Mohamed Thelji
Replied by Mohamed Thelji on topic Stop Checkout redirection when product added to cart
Hello,
Sure, you'll just have to publish the "cart notification" plugin, then you won't be redirected to the checkout just after adding a product to your cart.
Sure, you'll just have to publish the "cart notification" plugin, then you won't be redirected to the checkout just after adding a product to your cart.
Please Log in or Create an account to join the conversation.
9 years 2 months ago #278485
by Storm
Replied by Storm on topic Stop Checkout redirection when product added to cart
It's already published, that's why I was asking why it's still redirecting me to the checkout!
Please Log in or Create an account to join the conversation.
9 years 2 months ago #278487
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Stop Checkout redirection when product added to cart
Hello,
Your browser console indicate that you have some JS errors in the page.
Because of these errors, the code of "notify.js" is not process at it should so it does not return the information that it display a notification (because it do not display it) so the redirection is made as a fallback since there is no plugin to handle the add to cart event.
So you can see to fix your errors regarding mobileCheck and jQuery ; or you can perform a view override of the "product / cart" view to replace
By
So the HikaShop cart module will block the redirection to the checkout (which is not a good and viable solution but at least the JS errors you have would not impact that code).
Regards,
Your browser console indicate that you have some JS errors in the page.
Because of these errors, the code of "notify.js" is not process at it should so it does not return the information that it display a notification (because it do not display it) so the redirection is made as a fallback since there is no plugin to handle the add to cart event.
So you can see to fix your errors regarding mobileCheck and jQuery ; or you can perform a view override of the "product / cart" view to replace
Code:
o.removeClass(el, "hikashop_checkout_loading");
});
});
</script>
Code:
o.removeClass(el, "hikashop_checkout_loading");
});
return true;
});
</script>
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds