- Posts: 424
- Thank you received: 11
Turning the variants on/off does not work well
- BluepointWebdesign
-
Topic Author
- Offline
-- HikaMarket version -- : 4.4.0
-- Joomla version -- : 3.10.6
Hello,
we run into some problems when switching the variants on/off in the front-end.
If I disable 1 variant and click on save the variant, it works, but switching the next on or off does not work correctly. It only saves it when the product is saved. And if I click on a disabled variant, according to the switch it is already on?? Weird things are happening in the front-end editor :blink:
You can try it yourself... if you log in with the details below.
Regards,
Michiel
Please Log in or Create an account to join the conversation.
I cannot reproduce your issue in your website.
I can save the variants and the modifications are correctly stored in the database ; the changes are correctly displayed when switching the variants.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- BluepointWebdesign
-
Topic Author
- Offline
- Posts: 424
- Thank you received: 11
I've made you a video to see what is going on:
I tried several different browsers.. all the same :dry:
Regards,
Michiel
Please Log in or Create an account to join the conversation.
- BluepointWebdesign
-
Topic Author
- Offline
- Posts: 424
- Thank you received: 11
Please Log in or Create an account to join the conversation.
There is a JavaScript error which is displayed multiple times
I recommend you to update to the latest version ; you're using HikaMarket 4.0.0 (and not the 4.4.0 which does not exist).
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- BluepointWebdesign
-
Topic Author
- Offline
- Posts: 424
- Thank you received: 11
I've updatet the test site we have, but still not working propperly.... it's the same as before: turn off or on 1e variant is working good, 2e variant off or on is not working/showing till you save the product.
Regards,
Michiel
Please Log in or Create an account to join the conversation.
Do you have a view override for the "productmarket / variant" view ?
Because the code is still not the one in the current release
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- BluepointWebdesign
-
Topic Author
- Offline
- Posts: 424
- Thank you received: 11
Yes we have an override in this view.
We deleted the override and still it is not working.... so we changed the line "if(JoomlaCalendar && JoomlaCalendar.init){" to "if(typeof(JoomlaCalendar) !== "undefined" && JoomlaCalendar.init){" and it was still not working.
We made you a admin login to see and try for yourself
please let us know what you did to get it to work so we can change it on the live site to.
regards,
michiel
Please Log in or Create an account to join the conversation.
I made a test in your website (front-end) and I cannot reproduce your issue.
I'm able to change variant, edit the "published" state and same the variant which is updated dynamically in the section on top.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- BluepointWebdesign
-
Topic Author
- Offline
- Posts: 424
- Thank you received: 11
we tested everything in LambaTest ( www.lambdatest.com/ ) end saw that only in Safari the variants where turning on/off correctly.
In Chrome and Firefox it is still NOT working.... the first variant on/off is working ok, but after that nothing can be turned on/off until you save the product itself and return to the variants.
We have tried this now on 3 computers AND the independent systeem off lambdatest and still the same issue.
Hope you will trie again on some other browsers/computer?
Regards,
Michiel
Please Log in or Create an account to join the conversation.
I was using Chrome with my previous tests. But I was able to see your issue with firefox.
The issue you have is the usage of a cache ; the product is updated correctly but the GET which is done in order to refresh the variant listing is returned by a cache.
We can try to force the request of the "no cache".
You can edit the file "components/com_hikamarket/controller/product.php" and replace (several times)
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- BluepointWebdesign
-
Topic Author
- Offline
- Posts: 424
- Thank you received: 11
thanks for the solution! Works great
Regards,
Michiel
Please Log in or Create an account to join the conversation.
Thank you for the feedback, I'm adding these patchs for the next release.
Kind regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.