Hikashop / Hikamarket - Error Saving a New Product

  • Posts: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
1 month 3 weeks ago #372192

-- HikaShop version -- : 6.4.1
-- Joomla version -- : 5.4.3

Hello

We have detected an issue when creating a new product from a HikaMarket vendor's store through the vendor panel on the frontend of the website.

In the HikaMarket configuration, I have defined that when a vendor publishes a new product, they can assign a maximum of 2 categories to it.

The problem is that when attempting to create a product associated with 3 or more categories, the validation is triggered and an error message is displayed. However, the issue is that the form is reset: the product name, code, categories, description, price, everything is cleared. The entire form is reloaded and all the entered information is lost.

This is a major problem for the user, as they have to enter all the information again.

The expected behavior would be either to limit the number of categories before the form is submitted, or, if the form is allowed to be submitted and an error is displayed, to allow the user to correct only the error without having to enter all the information again.

I would appreciate your help in resolving this issue.

Thank you.

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

  • Posts: 26378
  • Thank you received: 4075
  • MODERATOR
1 month 3 weeks ago #372193

Hello,

Can you please confirm us the version of HikaMarket you're using ?

We fixed an issue related to Joomla 6 for the way to pass the "work in progress product" when there is an error.
Depending the version you're using, we'll know if it's a side effect that we need to investigate or something which is already handled.

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: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
1 month 3 weeks ago #372208

Hi, Hikamarket 6.1.0

Thank you!

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

  • Posts: 26378
  • Thank you received: 4075
  • MODERATOR
1 month 4 days ago #372400

Hello,

Sorry for the late reply.

We just release HikaMarket 6.1.1 ; can you confirm that when you have "error message" when saving a product, the "previous content" is now still proposed?

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: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
4 weeks 1 day ago #372476

Hello

I updated to 6.1.1, but the problem persists. I've attached a video as evidence.

files.fm/u/k72g3jmfrw

Thanks!

Last edit: 4 weeks 1 day ago by nmacri.

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

  • Posts: 26378
  • Thank you received: 4075
  • MODERATOR
4 weeks 9 hours ago #372484

Hello,

Please edit the file "administrator/components/com_hikamarket/classes/product.php" and replace the lines

        $app->enqueueMessage(JText::sprintf('VENDOR_PRODUCT_MAX_CATEGORIES_PER_PRODUCT_MSG', $vendor_limitation), 'error');
        return false;
By
        $app->enqueueMessage(JText::sprintf('VENDOR_PRODUCT_MAX_CATEGORIES_PER_PRODUCT_MSG', $vendor_limitation), 'error');
        $ret = false;
It will fix the issue.
And I completely missed it during the last code review, sorry.

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: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
3 weeks 5 days ago #372492

Hi

Well, sometimes these things happen.

I made the change you suggested, and it improved substantially, although one issue remains.

When creating a new product associated with a number of categories exceeding the limit, the form no longer resets, except for the product price. The product price is deleted when applying changes or saving the new product. I've attached a video as evidence.

files.fm/u/u4f6bzmgrq

I ran other tests, and the problem only occurs when the product is new. If I edit an existing product, the issue isn't detected.

Thanks!

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

  • Posts: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
1 week 1 day ago #372835

Hello

I haven't received a response to my last post in this thread. Have you been able to review my report?

Thanks!

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

  • Posts: 26378
  • Thank you received: 4075
  • MODERATOR
1 week 9 hours ago #372856

Hello,

I've seen your report but I need to understand the behavior when the product isn't new.
A new product has no price, so it's "easy" to see that the price is not re-display.
But when you edit an existing, product, the value you modified is kept ? Or do you see the old value ?

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: 73
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
6 days 5 hours ago #372868

Hello

You're right about your question; there's an error when editing the product, depending on the scenario.

Scenario 1 - I edit the existing product, add 4 categories (the limit is 2), and don't change the price. I press the "Apply" button: an error message about the categories appears, and the product price remains the same, which is expected behavior.

Scenario 2 - I edit the existing product, add 4 categories (the limit is 2), and also change the product price from 50 to 55. I press the "Apply" button: an error message about the categories appears, and the product price reverts to what it was before the edit, back to 50, which is unexpected behavior.

Thanks!

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

Moderators: Obsidev
Time to create page: 0.072 seconds
Powered by Kunena Forum