Add values to characteristics error

  • Posts: 11
  • Thank you received: 0
9 years 1 month ago #193232

Uncaught SyntaxError: Unexpected token ;
/moleskine/administrator/index.php?option=com_hikashop&ctrl=characteristic:57

Hello, adding values doesn't seem to work in admin site I can add characteristics but I can't add values to it? I checked the console and it shows this error:

Uncaught SyntaxError: Unexpected token ;
/moleskine/administrator/index.php?option=com_hikashop&ctrl=characteristic:57

Also, add to wishlist button does not appear on product page.

Kindly advice, thanks.

Last edit: 9 years 1 month ago by chelsea_lim.

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

  • Posts: 94
  • Thank you received: 2
  • Hikashop Business
9 years 1 month ago #193350

It seems I have the same problem. Hikashop sometimes saves values to table hikashop_characteristic and sometimes it doesn't. When I create a value with phpAdmin it shows in the Hikashop back-end. Does it have something to do with Joomla update 3.4?

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
9 years 1 month ago #193351

Hi,

Yes, that's a bug of Joomla 3.4.
Please update HikaShop to the latest version 2.4 and the problem will be fixed.

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

  • Posts: 94
  • Thank you received: 2
  • Hikashop Business
9 years 1 month ago #193391

After updating to version 2.4 I'm able to add values, but get the following error after trying to save characteristics: Catchable fatal error: Object of class stdClass could not be converted to string in ../administrator/components/com_hikashop/classes/product.php on line 516

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
9 years 1 month ago #193420

Hi,

Change the line:
$element->product_code = $parent->product_code.'_'.implode('_',$element->characteristics);

to:
$element->product_code = $parent->product_code.'_'.implode('_',array_keys($element->characteristics));

in the file /administrator/components/com_hikashop/classes/product.php and that should fix the problem.

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

  • Posts: 94
  • Thank you received: 2
  • Hikashop Business
9 years 1 month ago #193505

  • Is this also Joomla 3.4 related and will this be solved in future updates?
  • I still have little issues with saving characteristics. For instance: after creating a few the price hasn't been saved the first time and sometimes I don't see all custom fields. After returning to the main product, opening the characteristics again it shows the custom field and the price can be saved.
  • I created some characteristics values directly in the table with phpAdmin. Can this be the cause of the strange behaviour?

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

  • Posts: 13201
  • Thank you received: 2322
9 years 1 month ago #193546

Hi,

The fix proposed by Nicolas will certainly be present in a future release.
Regarding the characteristics, if you added some values via phpMyAdmin directly, yes this could be a reason to the issues.
There is potentially missing entries in other tables, or a ordering / id issue, etc.

We don't recommend to add/change values directly in phpMyAdmin.

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

  • Posts: 9
  • Thank you received: 0
8 years 1 month ago #231603

Hi

I'm having the same problem. I can make characteristics, but I cant add a value to it. What seems to be the problem.

I'm working in Joomla 3.4.8, and I have just updated to Hikashop business version 2.6.1.

I have not had this problem before, it just came out of the blue.

I updatede because some of the bugs I was bothered with where fixed in the new version, but still there is this problem. Can anyone help, please.

Best regards
Ivan

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
8 years 1 month ago #231604

Hi,

Please be sure that you do not have any javascript error in your characteristic edition page ; like the javascript error generated by the Joomla popup system.
See : www.hikashop.com/support/documentation/3...-hikashop-2-6-1.html

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: 9
  • Thank you received: 0
8 years 1 month ago #231725

Hi

Can see the way you have to do the values are different in the new version than the one I had. I have found out now, its working now.

The only problem now is that the customer cant select how many product they want, only one at a time, the problem wasnt there before the update.


Regards
Ivan

Last edit: 8 years 1 month ago by Gjoed.

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
8 years 1 month ago #231739

Hi,

Please check the setting "Quantity input method" of the HikaShop configuration. It should be set to "default".

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

  • Posts: 9
  • Thank you received: 0
8 years 1 month ago #231855

Hi

Where in the configuration can I find this? I have looked at the configuration, I cant find anything about Quantity input method. But why is this suddenly gone from the site atter update. Should the settings not still be the same, even if you update to an new version of hikashop?

After founding this thread , I found it. Sounds alot different in danish language. But now its working again. Thank you for your help :)

Regards
Ivan

Last edit: 8 years 1 month ago by Gjoed.

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
8 years 1 month ago #231867

Hi,

That setting didn't exist before. We've added a patch on our end so that it doesn't default to "none" but to "default".

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

Time to create page: 0.082 seconds
Powered by Kunena Forum