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

  • Posts: 69
  • Thank you received: 5
  • Hikamarket Multivendor Hikashop Business
2 weeks 6 days ago #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_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?

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

  • Posts: 2647
  • Thank you received: 348
  • MODERATOR
2 weeks 5 days ago #322206

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: 2 weeks 6 days ago by Philip.

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

  • Posts: 69
  • Thank you received: 5
  • Hikamarket Multivendor Hikashop Business
2 weeks 5 days ago #322221

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 or Create an account to join the conversation.

  • Posts: 24320
  • Thank you received: 3749
  • MODERATOR
2 weeks 4 days ago #322232

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 & 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.
Last edit: 2 weeks 4 days ago by Jerome.

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

  • Posts: 69
  • Thank you received: 5
  • Hikamarket Multivendor Hikashop Business
2 weeks 4 days ago #322234

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`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 or Create an account to join the conversation.

  • Posts: 24320
  • Thank you received: 3749
  • MODERATOR
2 weeks 3 days ago #322268

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 & 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: 69
  • Thank you received: 5
  • Hikamarket Multivendor Hikashop Business
2 weeks 3 days ago #322275

Ok, we stay updated.

Thank you very much for your support

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

Time to create page: 0.065 seconds
Powered by Kunena Forum