[Skip to main content](#vessel-content)

#   Variant Images Dont Display

##

- **[a404error](/forum/user/17720-a404error "View a404error's Profile")**
- [![a404error's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17720-a404error "View a404error's Profile") Topic Author
- [ Offline](/forum/user/17720-a404error)

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 6 months ago [\#101698](#101698) by [a404error](/forum/user/17720-a404error "View a404error's Profile")  *[Variant Images Dont Display](/forum/4-how-to/81223-variant-images-dont-display#101698 "I am trying to setup an online clothing store and everything works up until managing variant characteristics of a product. For example, I have a pair of pants that can be ordered in different colors....")* was created by *[a404error](/forum/user/17720-a404error "View a404error's Profile")*

I am trying to setup an online clothing store and everything works up until managing variant characteristics of a product. For example, I have a pair of pants that can be ordered in different colors. What I was trying to do was have a variant called colors that when a user selected a color from the dropdown box, the default product image would change to reflect that color. The default image (black pants) shows fine, but when I click on a different color (tan pants) the image doesn't display... however when I hover over the area where the image should be the cursor changes to the pointing finger. If I click on it, the image preview opens up and says there was an error. I have tried placing the images in media/com_hikashop/upload and using a relative link with no luck, along with using the upload feature with no luck. Any ideas? Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjIzLXZhcmlhbnQtaW1hZ2VzLWRvbnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

13 years 6 months ago [\#102026](#102026) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Variant Images Dont Display](/forum/4-how-to/81223-variant-images-dont-display#102026 "I am trying to setup an online clothing store and everything works up until managing variant characteristics of a product. For example, I have a pair of pants that can be ordered in different colors....")*

You need to use the "images" zone of each variant edit page to upload the image to the corresponding variant.
You can reach that page via the "manage variants" button of your product once you added the characteristic to the product.

The image will then change automatically based on the variant selected on the product page.
There is no need to upload the images manually in media/com_hikashop/upload.

If that doesn't work, please provide a link to your product page.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjIzLXZhcmlhbnQtaW1hZ2VzLWRvbnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[a404error](/forum/user/17720-a404error "View a404error's Profile")**
- [![a404error's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17720-a404error "View a404error's Profile") Topic Author
- [ Offline](/forum/user/17720-a404error)

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 6 months ago [\#102063](#102063) by [a404error](/forum/user/17720-a404error "View a404error's Profile")  Replied by *[a404error](/forum/user/17720-a404error "View a404error's Profile")* on topic *[Variant Images Dont Display](/forum/4-how-to/81223-variant-images-dont-display#102063 "I am trying to setup an online clothing store and everything works up until managing variant characteristics of a product. For example, I have a pair of pants that can be ordered in different colors....")*

That's what I tried doing but it's still not working. The default image displays but when I change the size, the image disappears and doesn't come back unless I refresh the page. Here's the link to the product page:

[ dance.web-estates.com/index.php/shop-now...roduct/1-black-pants](http://dance.web-estates.com/index.php/shop-now/pants/product/1-black-pants)

I have a variant called sizes that contains the list of, well, sizes. Currently, only the CS size has an image assigned to it. Eventually I want to have a colors variant that changes the image to the correct color when a user chooses it from the dropdown box.

I guess while I'm typing this up, I'll ask another question. Is it possible to have a price range for an item instead of a single price? And then how do I remove the word "each" after the price? Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjIzLXZhcmlhbnQtaW1hZ2VzLWRvbnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

13 years 6 months ago [\#102066](#102066) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Variant Images Dont Display](/forum/4-how-to/81223-variant-images-dont-display#102066 "I am trying to setup an online clothing store and everything works up until managing variant characteristics of a product. For example, I have a pair of pants that can be ordered in different colors....")*

It comes from the lazyload system that you have on your website which hides the variants images. Deactivate it and it will work fine.

What do you mean by a "price range" ?
You can set different prices for each variant if that's what you're asking.

The each word can be removed with a translation override:
[ www.hikashop.com/en/download/languages.html#modify](http://www.hikashop.com/en/download/languages.html#modify)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjIzLXZhcmlhbnQtaW1hZ2VzLWRvbnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[a404error](/forum/user/17720-a404error "View a404error's Profile")**
- [![a404error's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17720-a404error "View a404error's Profile") Topic Author
- [ Offline](/forum/user/17720-a404error)

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 6 months ago [\#102082](#102082) by [a404error](/forum/user/17720-a404error "View a404error's Profile")  Replied by *[a404error](/forum/user/17720-a404error "View a404error's Profile")* on topic *[Variant Images Dont Display](/forum/4-how-to/81223-variant-images-dont-display#102082 "I am trying to setup an online clothing store and everything works up until managing variant characteristics of a product. For example, I have a pair of pants that can be ordered in different colors....")*

Lazyload system... I apologize for this noob question but how do I disable it? Out of curiosity, how did you know I have that installed/running, or is that just a standard for the HikaShop extension?

Regarding the price range, my client sells dance/skate costumes and the product page I mentioned is for pants. She sells these pants for between $55-$60 , or $45-$50, etc... and this is what she wants displayed besides $55 each. I'm trying to get her on-board so that when a customer chooses the size, the price will update to reflect that, but she is undecided as of right now. I think this (price range) is a feature of the business edition though.

Thanks for the link to the translation override. That will work.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjIzLXZhcmlhbnQtaW1hZ2VzLWRvbnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

13 years 5 months ago [\#102211](#102211) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Variant Images Dont Display](/forum/4-how-to/81223-variant-images-dont-display#102211 "I am trying to setup an online clothing store and everything works up until managing variant characteristics of a product. For example, I have a pair of pants that can be ordered in different colors....")*

I don't know how to disable it as I don't know how you added it. That's not part of HikaShop.

I can see it because once you change the characteristic, if you look at the HTML of the left area of the product page where the image should be, you actually see that the image is there: Code:

&lt;img src="/media/com_hikashop/upload/thumbnail_100x53/p04.jpg" alt="P04" id="hikashop_main_image_2" style="margin-top: 10px; margin-bottom: 10px; display: inline-block; vertical-align: middle; opacity: 0;" class="s5_lazyload"&gt;

However, there is a CSS attribute opacity: 0 which is added to it (it's not there normally in HikaShop) which hides the image, and the class s5_lazyload is also added to it.

It looks like something coming from your template, so maybe there are some options in your template to deactivate that...

I'm still not sure about the price range. Normally, when you buy/sell something, you have a fixed price for it. How can the price change ?
Anyway, you put both prices on the same row with a dash between them, you can also use a translation override:
PRICE_SEPARATOR="-"

The following user(s) said Thank You: [a404error](/forum/user/17720-a404error "View a404error's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjIzLXZhcmlhbnQtaW1hZ2VzLWRvbnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[a404error](/forum/user/17720-a404error "View a404error's Profile")**
- [![a404error's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17720-a404error "View a404error's Profile") Topic Author
- [ Offline](/forum/user/17720-a404error)

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 5 months ago [\#102237](#102237) by [a404error](/forum/user/17720-a404error "View a404error's Profile")  Replied by *[a404error](/forum/user/17720-a404error "View a404error's Profile")* on topic *[Variant Images Dont Display](/forum/4-how-to/81223-variant-images-dont-display#102237 "I am trying to setup an online clothing store and everything works up until managing variant characteristics of a product. For example, I have a pair of pants that can be ordered in different colors....")*

Both of those pieces of advice worked. Thanks for helping me out. On last question I have is how do I place the lower price before the higher price? Right now, for example, it reads $60 - $55. I want it to read in a normal way like $55 - $60. I have two different prices set in the backend and have tried putting 55 in the top box and 60 in the bottom, and vice versa, but neither result in having the price range display from lowest to highest. I'm sure its in the translation override but I tried searching with no luck... unless I completely skipped over it or miss read it. Thanks again for your help!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjIzLXZhcmlhbnQtaW1hZ2VzLWRvbnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

13 years 5 months ago [\#102371](#102371) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Variant Images Dont Display](/forum/4-how-to/81223-variant-images-dont-display#102371 "I am trying to setup an online clothing store and everything works up until managing variant characteristics of a product. For example, I have a pair of pants that can be ordered in different colors....")*

You won't be able to do that with translation overrides.

You'll have to edit the file "listing_price" of the view "product" via the menu Display-&gt;Views and add such line at the top:
&lt;?php $this-&gt;row-&gt;prices = array_reverse($this-&gt;row-&gt;prices); ?&gt;

The following user(s) said Thank You: [a404error](/forum/user/17720-a404error "View a404error's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjIzLXZhcmlhbnQtaW1hZ2VzLWRvbnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[a404error](/forum/user/17720-a404error "View a404error's Profile")**
- [![a404error's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17720-a404error "View a404error's Profile") Topic Author
- [ Offline](/forum/user/17720-a404error)

Less More

- Posts: 6
- Thank you received: 0
-
-

13 years 5 months ago [\#102733](#102733) by [a404error](/forum/user/17720-a404error "View a404error's Profile")  Replied by *[a404error](/forum/user/17720-a404error "View a404error's Profile")* on topic *[Variant Images Dont Display](/forum/4-how-to/81223-variant-images-dont-display#102733 "I am trying to setup an online clothing store and everything works up until managing variant characteristics of a product. For example, I have a pair of pants that can be ordered in different colors....")*

Awesome!! Thank you so much for your help! Apparently, I really haven't/need to delve deeper into learning some PHP.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgxMjIzLXZhcmlhbnQtaW1hZ2VzLWRvbnQtZGlzcGxheT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.100 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
