- Posts: 73
- Thank you received: 1
Hikashop / Hikamarket - Error Saving a New Product
4 months 2 weeks ago #372192
by nmacri
Hikashop / Hikamarket - Error Saving a New Product was created by nmacri
-- 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.
-- 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.
4 months 2 weeks ago #372193
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Hikashop / Hikamarket - Error Saving a New Product
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,
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.
Please Log in or Create an account to join the conversation.
4 months 2 weeks ago #372208
by nmacri
Replied by nmacri on topic Hikashop / Hikamarket - Error Saving a New Product
Hi, Hikamarket 6.1.0
Thank you!
Thank you!
Please Log in or Create an account to join the conversation.
3 months 4 weeks ago #372400
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Hikashop / Hikamarket - Error Saving a New Product
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,
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.
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago - 3 months 3 weeks ago #372476
by nmacri
Replied by nmacri on topic Hikashop / Hikamarket - Error Saving a New Product
Hello
I updated to 6.1.1, but the problem persists. I've attached a video as evidence.
files.fm/u/k72g3jmfrw
Thanks!
I updated to 6.1.1, but the problem persists. I've attached a video as evidence.
files.fm/u/k72g3jmfrw
Thanks!
Last edit: 3 months 3 weeks ago by nmacri.
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago #372484
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Hikashop / Hikamarket - Error Saving a New Product
Hello,
Please edit the file "administrator/components/com_hikamarket/classes/product.php" and replace the lines
By
It will fix the issue.
And I completely missed it during the last code review, sorry.
Regards,
Please edit the file "administrator/components/com_hikamarket/classes/product.php" and replace the lines
Code:
$app->enqueueMessage(JText::sprintf('VENDOR_PRODUCT_MAX_CATEGORIES_PER_PRODUCT_MSG', $vendor_limitation), 'error');
return false;
Code:
$app->enqueueMessage(JText::sprintf('VENDOR_PRODUCT_MAX_CATEGORIES_PER_PRODUCT_MSG', $vendor_limitation), 'error');
$ret = false;
And I completely missed it during the last code review, sorry.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
3 months 3 weeks ago #372492
by nmacri
Replied by nmacri on topic Hikashop / Hikamarket - Error Saving a New Product
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!
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.
3 months 3 days ago #372835
by nmacri
Replied by nmacri on topic Hikashop / Hikamarket - Error Saving a New Product
Hello
I haven't received a response to my last post in this thread. Have you been able to review my report?
Thanks!
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.
3 months 2 days ago #372856
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Hikashop / Hikamarket - Error Saving a New Product
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;
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.
Please Log in or Create an account to join the conversation.
3 months 1 day ago #372868
by nmacri
Replied by nmacri on topic Hikashop / Hikamarket - Error Saving a New Product
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!
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.332 seconds