- Posts: 58
- Thank you received: 2
Product Creation form does not store info
- chellemiller11
-
Topic Author
- Offline
-- HikaShop version -- : 3.2.2
-- HikaMarket version -- : 2.0.1
-- Joomla version -- : 3.8.3
Hi, using Hikamarket Multivendor 2.0.1 and have an issue with vendors creating new product on front end. This is what happens:
1) Vendor is logged in to front end
2) Create a new product
3) When filling in product fields, if they forget to enter info in a required field and then hit "Save", all info filled in disappears
4) The page reloads and tells them which required fields they forgot (as it should), BUT all the information that they entered previously has disappeared from the form
Info should be stored in the form. I can not reproduce this on the back end of the site and I've tried multiple browsers (Firefox and IE) with the same issue. I've tried your DEMO site and it seems fine. It only happens with a logged in vendor trying to enter info into a front end vendor form on my site.
Any thoughts?
Please Log in or Create an account to join the conversation.
I performed few test in my local website and I cannot reproduce your issue.
What required field are you talking about exactly ?
Do you have view override ? A custom plugin ?
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.
- chellemiller11
-
Topic Author
- Offline
- Posts: 58
- Thank you received: 2
Please Log in or Create an account to join the conversation.
Without knowing how the plugin is working it will be difficult to say.
If it's a custom field ; there is the "check" function and it's directly handle by HikaShop/HikaMarket ; but if the plugin is using the "onBefore..." ; it might generate unwanted side effect depending it react. Afterwards it is still possible to push the data into the session "fail" variable in the custom plugin... But once again, without knowing the plugin we can't be sure.
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.
- chellemiller11
-
Topic Author
- Offline
- Posts: 58
- Thank you received: 2
Any other thoughts on how to investigate a solution?
Please Log in or Create an account to join the conversation.
So we still have some pending questions :
What required field are you talking about exactly ?
Do you have view override ? A custom plugin ?
Please understand that in order to reproduce the error I need to perform the exact same action that you do.
Without these details ; I can't perform an investigation.
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.
- chellemiller11
-
Topic Author
- Offline
- Posts: 58
- Thank you received: 2
We don't see any customization on the vendormarket view form files.
I'm attaching a screenshot showing the custom fields that we have created in the "product" table. Some are required and some are not. It does not matter which of the required fields are left blank when a vendor is creating a new product. If ONE or MORE required fields is skipped, when the "SAVE" button is pressed, the page reloads and all of the fields (both core fields and custom fields) are blank.
This only happens on front end and does not happen with any other contact forms on our site (we have a few Breezing Forms which we have disabled and tried as well). It is just the vendormarket form.
You can log in as a breeder to test if you'd like. user name is "testbreeder" and pw is "tester". If you go to My Account and then Create New Litter, you should be able to replicate the issue.
Please Log in or Create an account to join the conversation.
I think I see what is different in your website and in our test websites.
You're using product templates and a recent patch in the system makes the template write its content after the loading of the failed product.
I see two different ways for a fix and I would need to perform more tests to decide which one would be the best.
For the moment, please edit the file "components/com_hikamarket/views/productmarket/view.html.php" and replace the code
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.
- chellemiller11
-
Topic Author
- Offline
- Posts: 58
- Thank you received: 2
Let me know if you have anything else for us to try.
Please Log in or Create an account to join the conversation.
We are working on a bigger modification which would require some time.
Since that patch cannot be provided in a short period ; you can see to use that code in the mean time
It's just something to wait.
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.
- chellemiller11
-
Topic Author
- Offline
- Posts: 58
- Thank you received: 2
Please Log in or Create an account to join the conversation.
- chellemiller11
-
Topic Author
- Offline
- Posts: 58
- Thank you received: 2
To do that, we had the "product / edit / price / value" box unchecked in the ACL default store access and the "product / variant / price / value" checked. That way the price field on the main product would not show up and it would with the variants. It worked fine.
HOWEVER, since upgrading, this same ACL configuration does not allow a logged in vendor to enter a price for the variant. The text is still there that says "Price" but the actual field to enter the price is hidden. There is no way to enter variant price. And any variant that was created previously and resaved in the front end loses the price. I'm attaching a screen shot showing the missing field with this ACL configuration.
If we go back and change the ACL configuration and CHECK the "product / edit / price / value" box in the ACL, then the main product price field shows up AND the variant price field does as well.
We aren't sure what has changed since the upgrade--it worked fine before. But now the variant price field has disappeared. Is there a different way then that we now need to configure ACL so that a vendor can create variant prices but does not give a price to the main product?
And BTW, what is the "New" folder that is in the ACL under "product" (between "edit" and "variant"? We don't remember that before?
Please Log in or Create an account to join the conversation.
Please edit the file "components/com_hikamarket/views/productmarket/view.html.php" and replace
The "product/new/" has been added in order to allow you to configure different ACL depending if the vendor is creating a product or editing one.
So if you're using "waiting approval" system, you can see to give more access during the creation than after the approval.
Please note that if you do not set anything for "product/new/", it will use "product/edit/" rules instead.
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.
- chellemiller11
-
Topic Author
- Offline
- Posts: 58
- Thank you received: 2
Thanks as always for the great support.
Please Log in or Create an account to join the conversation.
That patch I gave you has been integrated into HikaMarket and will be include in the next release.
For the previous one, the final patch would be slightly different but the fix would be the same at the end.
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.