how to add a string that separates variants

  • Posts: 55
  • Thank you received: 4
11 years 4 months ago #110090

How can I add a character string between the display of variants on the product page and in the cart? For example:

Product Name: Variant1 Variant2

becomes

Product Name: Variant1 with Variant2

Thanks.

Dave

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

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #110092

Hi,

Can you show me exactly where do you want to add this string through some screenshots ?

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

  • Posts: 55
  • Thank you received: 4
11 years 4 months ago #110102

Here are some shots. I'm not sure exactly which string I will use, but something like 'and' or '/'. Also since these combinations are long, is it also possible to out the two variants and the separator string on the line below the product name? Is it possible that one modification will affect both product display and cart display?

Thanks.

Dave

Attachments:

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #110140

For the line break, you can simply add a translation override like that:
HIKA_VARIANT_SEPARATOR=":<br/>"
You can do that via the Languages tab of the configuration.


For a character between each variant, you can open the table hikashop_config of your database via phpmyadmin and add an entry with the namekey characteristics_values_separator and the value being the text you want between each variant.

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

  • Posts: 55
  • Thank you received: 4
11 years 4 months ago #110273

Thanks Nicolas. The linebreak worked no problem, but not the string separator. I've added to the table as you suggested (see image). Does the entry need quotes, like this: 'and'?

Dave

Attachments:

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #110277

That's looks ok.

Are you using a recent version of HikaShop ?

Also please make sure that there is no spacing character at the end of the config_namekey value or the system won't be able to find it.

Also, if you have some caching activated on your website, please make sure that you flush it.

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

  • Posts: 55
  • Thank you received: 4
11 years 4 months ago #110281

Using HikaShop 2.1.3. Checked for spaces in table. Cleared cache... still not showing the additional string.

Dave

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #110301

It's working fine on our end.

We'll have to look at that directly on your website as there must be something you're missing on your end.
Either it's not the good database you're editing, or something because it has to work.

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

  • Posts: 55
  • Thank you received: 4
11 years 3 months ago #112674

Nicolas, I sent you a PM with access info to a test site. Did you get that?

Dave

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 3 months ago #112995

No, I didn't get such PM from you. Please try again or use our contact form:
www.hikashop.com/en/contact-us.html

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

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #113298

Hi,

We need too a Ftp, phpMyAdmin access.

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

  • Posts: 55
  • Thank you received: 4
11 years 3 months ago #115086

For now I'm going to hold off on this. It's a minor thing that is low on the list because it presently involves only one limited time product.

As always, thanks to everyone for the excellent support.

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

Time to create page: 0.096 seconds
Powered by Kunena Forum