When adding Product Characteristics, Default Value dropdown empty in Front End

  • Posts: 52
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
1 year 11 months ago #341364

-- HikaShop version -- : 4.5.1
-- HikaMarket version -- : 4.1.0
-- Joomla version -- : 4.1.0
-- PHP version -- : 7.4.29
-- Browser(s) name and version -- : Firefox 99.0.1
-- Error-message(debug-mod must be tuned on) -- : none

I'm working on a new HikaShop store using HikaMarket to allow the client to do some front end store management.

I'm debugging adding Products through the front end interface.

When I add a Characteristic to a Product, I;m presented with a dropdown of various characteristics from which to choose.

After choosing a characteristic, I attempt to select the Default Value. This dropdown presents blank in the front end.

(It works properly in the site backend.)

I'm using a Rocket Theme Versla template. I switched the template to Cassiopia and still experienced the same problem.

I've tested logged in as a Super User with all HIkaMarket permissions set to green.

Attached is a screen shot.

Thank you for your attention to this matter.

Cheers,

Dave

Attachments:

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
1 year 11 months ago #341411

Hello,

When you select an element for the Characteristic, there is an Ajax call made in order to retrieve the list of the possible values.
You can see that call via the browser console.
I performed a test in the HikaShop demo website and the account do receive the list of the values.
In order to understand the nature of your issue, we first need to be sure that, the Ajax call is made and also know the content returned by your website.

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: 52
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
1 year 11 months ago #341412

Thanks Jerome.

Thanks you for verifying the feature is working correctly on your end.

I did take a look using the Firefox browser console.

The call for the characteristic values does not appear to be made in the front end.

I did verify I could see the call being made in the back end where the feature works properly.

What could be stopping that call from happening ?

Thanks for your help,

Dave

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
1 year 11 months ago #341431

Hello,

I would need to access your website in order to see the issue directly.
If you don't have the Ajax call, it could indicates a JavaScript error which stop the processing of the script.
To be sure of that, best is to check.

Regards,

PS : for private information, please use the "contact us" form with a link to the forum thread ; so the support team will know what to do.


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: 26007
  • Thank you received: 4004
  • MODERATOR
1 year 11 months ago #341432

Hello,

Your issue is a JavaScript temporal issue.
There is a function which init the "nameboxes", which is added into the page header.
There is another function which init the characteristic system, by setting some values (callback URL) to the characteristic namebox.

While the function are right seen in "order", in the page they are not called with that same order.
So the second function want to initialise the callback on the namebox which is not yet initialized.
That function do not trigger any error but, by not seeing the namebox, just do nothing.

One solution to try is to change the line

window.Oby.ready(function() {
By
window.hikashop.ready(function(){
In the file "components/com_hikamarket/views/productmarket/form_charasteristic.php".

If it does not solve the issue, we would need to add a fallback delay system.

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: 52
  • Thank you received: 4
  • Hikamarket Frontedition Hikashop Business
1 year 11 months ago #341493

That fixed it.

Many thanks,

Dave

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
1 year 11 months ago #341515

Hello,

Thank you for your feedback.
We will add the fix in the next release.

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.

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