How to mass add images to variants

  • Posts: 11
  • Thank you received: 0
12 years 3 weeks ago #71540

Hi, I have 20 products, each with the same 2 sets of 2 color options (total of 400 color options) for the customer to pick from per product. So, I have to characteristics each with 20 options to them. My question is, is there an easy / quick way to add a sample color to each of these one time and apply it to all 20 products, or will I have to add the picture of the color each and every single time.

*Note* The picture is literally a block of color, not a sample of the product with that color.

So, to clarify, what I am wanting to do, if possible, is have a small picture appear next to the drop down of the color selected so people can see what their color is. Rather than replacing the main image, and preferably without having to go in and add an image for each variant combination.

I am currently using the free version, but I am planning on upgrading to the essentials version soon.

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 3 weeks ago #71734

Hi,

What you can do is this:

In your characteristic, you enter a simple name for each color, for example "blue" and "red".
Then, in the translation override of HikaShop, you can enter such text:

BLUE="<img src='http://mywebsite.com/myblueimage.png'/>Blue"

Then, change the characteristic display method to "radio" in the configuration and you will see radio buttons with the corresponding image for each value.

Finally, you can just add that characteristic to each product and that will be automatic.

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

  • Posts: 11
  • Thank you received: 0
12 years 3 weeks ago #71736

Great, thank you! I will give it a try.

Is it possible to do this with drop down instead of radio?

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 3 weeks ago #71738

You can't add images inside dropdowns in HTML.
You would have to use CSS no the id of the each value of the dropdown. So it's still possible but a bit more complex.

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

  • Posts: 11
  • Thank you received: 0
12 years 3 weeks ago #71752

I will try the first option with the Radio buttons first, I was just hoping for a cleaner more condensed way of displaying the characteristics/variants (color) with picture in a more compact manor similar to how it's done in JoomShoping since that is what I am switching from.

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
11 years 11 months ago #77474

nicolas wrote: Hi,

What you can do is this:

In your characteristic, you enter a simple name for each color, for example "blue" and "red".
Then, in the translation override of HikaShop, you can enter such text:

BLUE="<img src='http://mywebsite.com/myblueimage.png'/>Blue"

Then, change the characteristic display method to "radio" in the configuration and you will see radio buttons with the corresponding image for each value.

Finally, you can just add that characteristic to each product and that will be automatic.


I can't get this working. I've added the line 'Rood="<img src=' www.michelpouliwebshops.nl/webshops/images/kleuren/Rood.png'/ >Rood" ' to the language overide and changed the characteristic display method to "radio". It's not showing the image though.

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #77527

Hi,

please try with this

ROOD="<img src='http://www.michelpouliwebshops.nl/webshops/images/kleuren/Rood.png' alt='img rood'/>Rood"

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.

Time to create page: 0.074 seconds
Powered by Kunena Forum