Stop Checkout redirection when product added to cart

  • Posts: 66
  • Thank you received: 1
  • Hikaserial Standard Hikashop Business
7 years 8 months ago #278279

-- 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?

Please Log in or Create an account to join the conversation.

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 8 months ago #278282

Hello,

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 1
  • Hikaserial Standard Hikashop Business
7 years 8 months ago #278330

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.

Please Log in or Create an account to join the conversation.

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 8 months ago #278331

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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 1
  • Hikaserial Standard Hikashop Business
7 years 8 months ago #278417

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.

  • Posts: 12953
  • Thank you received: 1778
7 years 8 months ago #278430

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.

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 1
  • Hikaserial Standard Hikashop Business
7 years 8 months ago #278485

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.

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 8 months ago #278487

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

		o.removeClass(el, "hikashop_checkout_loading");
	});
});
</script>
By
		o.removeClass(el, "hikashop_checkout_loading");
	});
	return true;
});
</script>
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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum