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

#   Ajax error when I add a prouct with options in the cart

##

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

Less More

- Posts: 85
- Thank you received: 9
-
-

6 years 3 months ago -  6 years 1 week ago [\#322204](#322204) by [pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")  *[Ajax error when I add a prouct with options in the cart](/forum/3-bug-report/900442-ajax-error-when-i-add-a-prouct-with-options-in-the-cart#322204 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.26 -- Error-message(debug-mod must be tuned on) -- : When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  Ho can I solve this problem?  I tried to remove all the view changes, also from the template, but I continue to receive this message.  How can I solve this problem?")* was created by *[pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.18
-- PHP version -- : 7.2.26
-- Error-message(debug-mod must be tuned on) -- : When I try to add a prouct in with the options in the cart I receive this message:

cart_id was not returned in addToCart AJAX call hikashop.js:1133:13
null

When I try to add a prouct in with the options in the cart I receive this message:

cart_id was not returned in addToCart AJAX call hikashop.js:1133:13
null

Ho can I solve this problem?

I tried to remove all the view changes, also from the template, but I continue to receive this message.

How can I solve this problem?

Last edit: 6 years 1 week ago by [pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDA0NDItYWpheC1lcnJvci13aGVuLWktYWRkLWEtcHJvdWN0LXdpdGgtb3B0aW9ucy1pbi10aGUtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

6 years 3 months ago -  6 years 3 months ago [\#322206](#322206) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Ajax error when I add a prouct with options in the cart](/forum/3-bug-report/900442-ajax-error-when-i-add-a-prouct-with-options-in-the-cart#322206 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.26 -- Error-message(debug-mod must be tuned on) -- : When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  Ho can I solve this problem?  I tried to remove all the view changes, also from the template, but I continue to receive this message.  How can I solve this problem?")*

Hello,

Hard to say without see the issue by ourselves, and so can you provide an **Url link** with the issue please ?
This will allow to process some tests and analyze, and maybe get the root issue.

Another thing you can try as a check is to process some tests **with a default template like ProtoStar**.
Awaiting news to be able to progress on your subject.
Regards

Last edit: 6 years 3 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDA0NDItYWpheC1lcnJvci13aGVuLWktYWRkLWEtcHJvdWN0LXdpdGgtb3B0aW9ucy1pbi10aGUtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 85
- Thank you received: 9
-
-

6 years 3 months ago [\#322221](#322221) by [pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")  Replied by *[pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")* on topic *[Ajax error when I add a prouct with options in the cart](/forum/3-bug-report/900442-ajax-error-when-i-add-a-prouct-with-options-in-the-cart#322221 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.26 -- Error-message(debug-mod must be tuned on) -- : When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  Ho can I solve this problem?  I tried to remove all the view changes, also from the template, but I continue to receive this message.  How can I solve this problem?")*

Thank you for your reply.

I found what is the bug. The problem appears when in Hikamarket the option "Limit vendors" is set to "One vendor" and in the option of the product is not set the vendor.

I think the best solution is to set mandatory the field "Vendor" at least for the new products created when this option is enabled. At the moment that I know this limitation for me the problem is not critical, but I think is better to solve in this way for the next release.

Thank you for your support

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDA0NDItYWpheC1lcnJvci13aGVuLWktYWRkLWEtcHJvdWN0LXdpdGgtb3B0aW9ucy1pbi10aGUtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

6 years 3 months ago -  6 years 3 months ago [\#322232](#322232) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Ajax error when I add a prouct with options in the cart](/forum/3-bug-report/900442-ajax-error-when-i-add-a-prouct-with-options-in-the-cart#322232 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.26 -- Error-message(debug-mod must be tuned on) -- : When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  Ho can I solve this problem?  I tried to remove all the view changes, also from the template, but I continue to receive this message.  How can I solve this problem?")*

Hello,

When the product do not have a vendor set-up, the vendor will be your store (the main vendor).
Also, when a product do not have a vendor, you can use feature such as the "dynamic vendor attribution" like the "vendor selector" or custom plugins.

So changing that behavior in HikaMarket would result to lot of side effects and problems.
But I will create a issue ticket regarding the fact that the error message returned by HikaMarket when it refuses that the product is added into the cart, is not catch by the HikaShop core.

Kind regards,

---

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

Last edit: 6 years 3 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDA0NDItYWpheC1lcnJvci13aGVuLWktYWRkLWEtcHJvdWN0LXdpdGgtb3B0aW9ucy1pbi10aGUtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 85
- Thank you received: 9
-
-

6 years 3 months ago [\#322234](#322234) by [pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")  Replied by *[pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")* on topic *[Ajax error when I add a prouct with options in the cart](/forum/3-bug-report/900442-ajax-error-when-i-add-a-prouct-with-options-in-the-cart#322234 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.26 -- Error-message(debug-mod must be tuned on) -- : When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  Ho can I solve this problem?  I tried to remove all the view changes, also from the template, but I continue to receive this message.  How can I solve this problem?")*

Thank you for your reply and for the suggestions.

I suggest another solution for you. If is too difficult to implement the control with the option "Limit vendors" set to "One vendor" is also a good solution to show the message in the front end "It&#96;s not possible to add products from different vendors" or something like that when the option of the product has not vendors assigned. Because the main problem in this situation is to understand that the vendor is mandatory in this case. After I know that is not a really problem.

My best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDA0NDItYWpheC1lcnJvci13aGVuLWktYWRkLWEtcHJvdWN0LXdpdGgtb3B0aW9ucy1pbi10aGUtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

6 years 3 months ago [\#322268](#322268) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Ajax error when I add a prouct with options in the cart](/forum/3-bug-report/900442-ajax-error-when-i-add-a-prouct-with-options-in-the-cart#322268 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.26 -- Error-message(debug-mod must be tuned on) -- : When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  Ho can I solve this problem?  I tried to remove all the view changes, also from the template, but I continue to receive this message.  How can I solve this problem?")*

Hello,

There is already a message generated by HikaMarket.
As mentioned in my previous message, the problem is that HikaShop should display it.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDA0NDItYWpheC1lcnJvci13aGVuLWktYWRkLWEtcHJvdWN0LXdpdGgtb3B0aW9ucy1pbi10aGUtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 85
- Thank you received: 9
-
-

6 years 3 months ago [\#322275](#322275) by [pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")  Replied by *[pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")* on topic *[Ajax error when I add a prouct with options in the cart](/forum/3-bug-report/900442-ajax-error-when-i-add-a-prouct-with-options-in-the-cart#322275 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.26 -- Error-message(debug-mod must be tuned on) -- : When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  Ho can I solve this problem?  I tried to remove all the view changes, also from the template, but I continue to receive this message.  How can I solve this problem?")*

Ok, we stay updated.

Thank you very much for your support

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDA0NDItYWpheC1lcnJvci13aGVuLWktYWRkLWEtcHJvdWN0LXdpdGgtb3B0aW9ucy1pbi10aGUtY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 85
- Thank you received: 9
-
-

6 years 1 week ago [\#325457](#325457) by [pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")  Replied by *[pagemaster](/forum/user/50033-pagemaster "View pagemaster's Profile")* on topic *[Ajax error when I add a prouct with options in the cart](/forum/3-bug-report/900442-ajax-error-when-i-add-a-prouct-with-options-in-the-cart#325457 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18 -- PHP version -- : 7.2.26 -- Error-message(debug-mod must be tuned on) -- : When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  When I try to add a prouct in with the options in the cart I receive this message:  cart&#95;id was not returned in addToCart AJAX call hikashop.js:1133:13 null  Ho can I solve this problem?  I tried to remove all the view changes, also from the template, but I continue to receive this message.  How can I solve this problem?")*

At the moment I updated the string from myself and I update the topic as solved

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDA0NDItYWpheC1lcnJvci13aGVuLWktYWRkLWEtcHJvdWN0LXdpdGgtb3B0aW9ucy1pbi10aGUtY2FydD90bXBsPW1hcmtkb3du) 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.078 seconds

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