[Skip to main content](#vessel-content)

#   cart\_id was not returned in addToCart AJAX call

##

- **[bolando](/forum/user/38611-bolando "View bolando's Profile")**
- [![bolando's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38611-bolando "View bolando's Profile") Topic Author
- [ Offline](/forum/user/38611-bolando)

Less More

- Posts: 91
- Thank you received: 5
-
-

3 years 10 months ago [\#347852](#347852) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  *[cart\_id was not returned in addToCart AJAX call](/forum/27-checkout/905606-cart-id-was-not-returned-in-addtocart-ajax-call#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&#95;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&#95;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: &quot;continue shopping&quot; or &quot;go to checkout&quot;. 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.")* was created by *[bolando](/forum/user/38611-bolando "View bolando's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNTYwNi1jYXJ0LWlkLXdhcy1ub3QtcmV0dXJuZWQtaW4tYWRkdG9jYXJ0LWFqYXgtY2FsbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

3 years 10 months ago [\#347853](#347853) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[cart\_id was not returned in addToCart AJAX call](/forum/27-checkout/905606-cart-id-was-not-returned-in-addtocart-ajax-call#347853 "-- 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&#95;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&#95;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: &quot;continue shopping&quot; or &quot;go to checkout&quot;. 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNTYwNi1jYXJ0LWlkLXdhcy1ub3QtcmV0dXJuZWQtaW4tYWRkdG9jYXJ0LWFqYXgtY2FsbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[bolando](/forum/user/38611-bolando "View bolando's Profile")**
- [![bolando's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38611-bolando "View bolando's Profile") Topic Author
- [ Offline](/forum/user/38611-bolando)

Less More

- Posts: 91
- Thank you received: 5
-
-

3 years 10 months ago [\#347860](#347860) by [bolando](/forum/user/38611-bolando "View bolando's Profile")  Replied by *[bolando](/forum/user/38611-bolando "View bolando's Profile")* on topic *[cart\_id was not returned in addToCart AJAX call](/forum/27-checkout/905606-cart-id-was-not-returned-in-addtocart-ajax-call#347860 "-- 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&#95;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&#95;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: &quot;continue shopping&quot; or &quot;go to checkout&quot;. 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.")*

Thanks

1) The add to cart problem was - I think - caused by this plugin
[ www.joomlashack.com/joomla-extensions/ospam-a-not/](https://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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNTYwNi1jYXJ0LWlkLXdhcy1ub3QtcmV0dXJuZWQtaW4tYWRkdG9jYXJ0LWFqYXgtY2FsbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.059 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
