Add product characteristic text to product code

  • Posts: 202
  • Thank you received: 2
12 years 1 month ago #66997

I am using Characteristics on some of my store products, mostly related to clothing sizes. I have the configuration set to append the Characteristic to the product code, which is working when creating variants. However, the system appends the Characteristic ID. What I need it to do is to append the characteristic itself. So, for example:

I have a product code GS-1002 that has a "size" characteristic comprised of the options "S, M, L, XL, XXL". When the variant is created, I would like to see the following product codes:

GS-1002-S
GS-1002-M
GS-1002-L...

Instead, what we get is:

GS-1002_1
GS-1002_2
GS-1003_3...

Is there any way I can change this?

Thanks!!

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

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #67138

Hi momentis,

You can edit the products code manually, in the product edition page click on "Manage variants" and click on a variant to edit, then you can change the product code.

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

  • Posts: 82818
  • Thank you received: 13362
  • MODERATOR
12 years 1 month ago #67139

Hi,

There is no option to append the characteristic to the product code.
You must be mistaken with the option to append the characteristic to the product name.

The id of the characteristic in the product code is used to dynamically regenerate variants when you add more characteristics to products. If you change that that won't work properly.
It should not create a problem thought but it's not easy to change.
The algorithm to handle all that is in the function updateCharacteristics of the file administrator/components/com_hikashop/classes/product.php

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

Time to create page: 0.063 seconds
Powered by Kunena Forum