Characteristics: Variants can't be chosen

  • Posts: 23
  • Thank you received: 1
2 years 4 months ago #337816

-- HikaShop version -- : 4.4.4
-- Joomla version -- : 4.0.4
-- Browser(s) name and version -- : Chrome

Hi, dear HIKA-Team,

I have read all the documentations several times, but I still can't figure it out... :-)

I have created the color characteristics, I have chosen them in the product, I saved it, but then I can't chose any of them in the Variant's, only plain text possible, see several attachments. I guess as a result, I also don't see nothing to chose from in the front-end...!?

Thanks for your help, greatly appreciated!!!
Tout de bon
Martin

Attachments:

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
2 years 4 months ago #337819

Hi,

Normally, when you click on the input field of the characteristic, you'll get a dropdown where you can select the values from which to generate the variants of the product.
You don't need to type anything in it.
The fact that this dropdown doesn't show up indicates that you have a javascript error there.
Please open the console log of your browser there and you should see an error message explaining a bit what is wrong where.
Could you provide a screenshot of that ?

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

  • Posts: 23
  • Thank you received: 1
2 years 4 months ago #337838

Salut Nicolas,

First of all, a big THANK YOU, for your and your team's support. this is very much appreciated as customer!!!

Yes, that dropdown is missing and I attached which seems to be what you asked for...

Tout de bon
Martin

Attachments:

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
2 years 4 months ago #337847

Hi,

Great. The interesting part is the first red message there.
It says that when HikaShop is requesting the display of the values selector, after you click on the "add variants" button, the HTML returned by the server contains one javascript tag which contains invalid javascript code.
It's actually the same as was reported 1 month ago here:
www.hikashop.com/forum/product-category-...produits.html#336314
As explained there, change the code:

if (xmlhttp.status == 200)
						eval(xmlhttp.responseText);
to:
if (xmlhttp.status == 200) {
					try {
						eval(xmlhttp.responseText);
					} catch (e) {
						if (e instanceof SyntaxError) {
							console.log(e.message + ' for ' + src);
						}
					}
				}
in media/com_hikashop/js/hikashop.js and it should help.
We'll add the change on our end for the next release of HikaShop to be released soon.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum