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

  • Posts: 85
  • Thank you received: 9
3 years 8 months 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?

Last edit: 3 years 5 months ago by pagemaster.

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

  • Posts: 4501
  • Thank you received: 610
  • MODERATOR
3 years 8 months 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: 3 years 8 months ago by Philip.

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

  • Posts: 85
  • Thank you received: 9
3 years 8 months 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: 25999
  • Thank you received: 4004
  • MODERATOR
3 years 8 months 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: 3 years 8 months ago by Jerome.

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

  • Posts: 85
  • Thank you received: 9
3 years 8 months 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: 25999
  • Thank you received: 4004
  • MODERATOR
3 years 8 months 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: 85
  • Thank you received: 9
3 years 8 months ago #322275

Ok, we stay updated.

Thank you very much for your support

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

  • Posts: 85
  • Thank you received: 9
3 years 5 months ago #325457

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

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

Time to create page: 0.058 seconds
Powered by Kunena Forum