cart_id was not returned in addToCart AJAX call

  • Posts: 91
  • Thank you received: 5
1 year 10 months ago #347852

-- HikaShop version -- : 4.7.0
-- Joomla version -- : 4.2.6
-- PHP version -- : 7.4.30
-- Browser(s) name and version -- : Firefox 108
-- Error-message(debug-mod must be tuned on) -- : cart_id was not returned in addToCart AJAX call hikashop.js:1151:13

Hello,

Recently my client discovered a problem with Hikashop order process.
On adding a product to cart nothing happens and there is a JS error in the console:
cart_id was not returned in addToCart AJAX call hikashop.js:1151:13
On second try (second Add to Cart click) it goes fine, but we have a choice: "continue shopping" or "go to checkout". Whatever we do, in few seconds we are redirected to checkout.

Problem happens in Firefox mostly.
There are more errors of this type.

Please help.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 10 months ago #347853

Hi,

I'm not able to reproduce the issue with Firefox on your website. I tried with several different products and it worked fine each time. Is the add to cart issue happening only for some products ? Are you able to reproduce it on different computers ?

Regarding the automatic redirection to the checkout, I suppose it's because you've activated the "redirect on success" setting of the HikaShop cart notification plugin. So edit it via the joomla plugins manager and turn off that setting if you don't want that.

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

  • Posts: 91
  • Thank you received: 5
1 year 10 months ago #347860

Thanks

1) The add to cart problem was - I think - caused by this plugin
www.joomlashack.com/joomla-extensions/ospam-a-not/
I disabled it now and it's fine.

2) I changed the settings of the notification plugin and it's ok as well.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum