Can I add a comma or other character between characteristics in variant names?

  • Posts: 84
  • Thank you received: 4
  • Hikashop Business
5 years 9 months ago #295348

-- HikaShop version -- : HikaShop Starter: 3.5.0
-- Joomla version -- : 3.8.10
-- PHP version -- : 7.1.19

The default behavior when variants are selected is placing a colon behind the product name and then adding the selected variants behind that. With multiple characteristics per product, this gets a bit difficult to decipher.

For example I have a lamp in my shop and the lamp body and lamp LED light can be chosen by the customer as different characteristics. I have variants for the different combinations under my product. When no characteristics are chosen the product name is just "Lamp", but when both a body color and LED color are chosen the name becomes "Lamp: Red Blue LED". I would like to have this say something like "Lamp: Red, Blue LED" or "Lamp: Red with Blue LED" instead.

Is there a way to implement this? I have been looking through the product views, but I can't locate where the code for the product name with characteristics is located. Preferably I can change this everywhere the product name with characteristics is used. (So both on the product page,, in the cart, and in the order back end and emails.)

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
5 years 9 months ago #295371

Hello,

It's done thanks to a translation.

HIKA_VARIANT_SEPARATOR=": "
CF : www.hikashop.com/forum/product-category-...acteristic-name.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.
The following user(s) said Thank You: Foxworks

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

  • Posts: 84
  • Thank you received: 4
  • Hikashop Business
5 years 9 months ago #295707

Thank you for the quick reply.
I could not find the HIKA_VARIANTS_MIDDLE_SEPARATOR constant when searching for it, but adding it manually on a new override worked like a charm!

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

Time to create page: 0.059 seconds
Powered by Kunena Forum