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

#   Popup image variant wrong and images issues

##

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

11 years 4 months ago [\#204818](#204818) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  *[Popup image variant wrong and images issues](/forum/26-product-category-display/877529-popup-image-variant-wrong-and-images-issues#204818 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Firefox  Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.  Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)  No joomla cache is active or any other cache.")* was created by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.41
-- Browser(s) name and version -- : Firefox

Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.

Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)

No joomla cache is active or any other cache.

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc1MjktcG9wdXAtaW1hZ2UtdmFyaWFudC13cm9uZy1hbmQtaW1hZ2VzLWlzc3Vlcz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86366
- Thank you received: 14299
-
-

11 years 4 months ago [\#204930](#204930) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Popup image variant wrong and images issues](/forum/26-product-category-display/877529-popup-image-variant-wrong-and-images-issues#204930 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Firefox  Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.  Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)  No joomla cache is active or any other cache.")*

Hi,

1. Did you customize the product page display in any way ? Did you install some kind of third party extension to modify the image display ? Could you provide a link to the page ?

2. Could you provide a link to the page ?

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

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

11 years 4 months ago [\#205038](#205038) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[Popup image variant wrong and images issues](/forum/26-product-category-display/877529-popup-image-variant-wrong-and-images-issues#205038 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Firefox  Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.  Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)  No joomla cache is active or any other cache.")*

The problem seems not related to the template, also with default Joomla template I have the same problem. Any third party to modify images installed.

Link sent by PM.

Thanks

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26398
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 4 months ago [\#205364](#205364) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Popup image variant wrong and images issues](/forum/26-product-category-display/877529-popup-image-variant-wrong-and-images-issues#205364 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Firefox  Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.  Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)  No joomla cache is active or any other cache.")*

Hi,

In the view "show_block_img", please replace Code:

for(var i = thumbs_img.length - 1; i &gt;= 0; i--) { o.removeClass(thumb_img[i], 'hikashop_child_image_active'); }

By Code:

for(var i = thumbs_img.length - 1; i &gt;= 0; i--) { o.removeClass(thumbs_img[i], 'hikashop_child_image_active'); }

It should fix the javascript issue.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

11 years 4 months ago [\#206709](#206709) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[Popup image variant wrong and images issues](/forum/26-product-category-display/877529-popup-image-variant-wrong-and-images-issues#206709 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Firefox  Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.  Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)  No joomla cache is active or any other cache.")*

I've tryed your solution but seems not solve the issue.

We still have problems with the images. Sometimes images are not displayed at all in the product view and also when I click to open the popup it doen't load the image.

If I try to go to the direct link of the image then (with FireFox) I got the message that hte image is broken with some errors; then if I go to the same link WITHOUT https, for example, it loads the image correctly, then I go to image link WITH https and the image is loaded correctly too.

It's very strange. Sometimes everything seems work fine, meanwhile other times nothing works.

What could it be?

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

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

- **[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")**
- [![crealiagroup's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30083.png)](/forum/user/30083-crealiagroup "View crealiagroup's Profile") Topic Author
- [ Offline](/forum/user/30083-crealiagroup)

Less More

- Posts: 117
- Thank you received: 3
-
-
- [](http://www.crealia.it)
-

11 years 4 months ago [\#207985](#207985) by [crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")  Replied by *[crealiagroup](/forum/user/30083-crealiagroup "View crealiagroup's Profile")* on topic *[Popup image variant wrong and images issues](/forum/26-product-category-display/877529-popup-image-variant-wrong-and-images-issues#207985 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Firefox  Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.  Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)  No joomla cache is active or any other cache.")*

As you an see in the attached image, sometimes the products images seems stop loading. I can't understand why.

---

[ www.crealia.it/e-commerce/consulenza-ecommerce-hikashop](http://www.crealia.it/e-commerce/consulenza-ecommerce-hikashop)

- [ ![loading&#95;images&#95;corrupted.jpg](/forum/attachment/25461) ](/forum/attachment/25461 "...&#95;corrupted.jpg") [ ](/forum/attachment/25461?download=1 "...&#95;corrupted.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 3 months ago [\#208933](#208933) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Popup image variant wrong and images issues](/forum/26-product-category-display/877529-popup-image-variant-wrong-and-images-issues#208933 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Firefox  Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.  Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)  No joomla cache is active or any other cache.")*

Hi,

I tried to navigate through your website and was not able to reproduce the issue.
Do you have solved it ? If not are there any products with that issue appearing more frequently than others ?

As it seem to be related on the http[n]s[/b], do you have tried to not use the SSL on website but on the HikaShop checkout ?
You can potentially edit the url of the website in the Joomla configuration.php file, or edit the redirection rules on your server.

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 7 months ago -  10 years 7 months ago [\#234527](#234527) by [skot](/forum/user/39484-skot "View skot's Profile")  Replied by *[skot](/forum/user/39484-skot "View skot's Profile")* on topic *[Popup image variant wrong and images issues](/forum/26-product-category-display/877529-popup-image-variant-wrong-and-images-issues#234527 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Firefox  Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.  Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)  No joomla cache is active or any other cache.")*

Hello Xavier,

I realise that this topic is not quite new but thought it's better to continue here than starting a new one as my problem is identical to Crealiagroup's.

if you check this page on the following website:
[ capsulz.rq-vc.com/index.php/woman/produc...category\_pathway-105](http://capsulz.rq-vc.com/index.php/woman/product/1802-antwerpen/category_pathway-105)

you'll have different behaviours depending on what you do first:
1. If you click the main image of the product, the popup shadow box will display a different variant.
2. If you first hover on one of the thumbnail, then click on the main image, the popup will display the first image of this variant (but not necessarily the one displayed), and the navigation arrows will not display on the shadowbox as if there was only one picture.

3. But, if you first select a variant from the drop down list (can also be the first one) then everything works as it should be: the right image pops out and the right amount of other images of the same variant are displayed through the arrows of the shadowbox.

Is there something to be done to correct this behaviour?

Many thanks
Raphael

edit: little correction, in case 3. if you don't hover over at least one thumbnail, you will have same result as with case 1. It's only after hovering one thumbnail that the popup works as it should.

Last edit: 10 years 7 months ago by [skot](/forum/user/39484-skot "View skot's Profile"). Reason: additional info

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc1MjktcG9wdXAtaW1hZ2UtdmFyaWFudC13cm9uZy1hbmQtaW1hZ2VzLWlzc3Vlcz90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86366
- Thank you received: 14299
-
-

10 years 7 months ago [\#234530](#234530) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Popup image variant wrong and images issues](/forum/26-product-category-display/877529-popup-image-variant-wrong-and-images-issues#234530 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Firefox  Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.  Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)  No joomla cache is active or any other cache.")*

Hi,

I checked the code on that page, but you're not using the code of the latest version of HikaShop, even though you have the latest version of HikaShop. This means that the problem is probably coming from your Joomla template.
Rename the file templates/YOUR_TEMPLATE/html/com_hikashop/product/show_block_img.php to something else via FTP and that will deactivate your template override of that view file and it will use the code of the latest version of HikaShop, hopefully fixing the problem in the process (we don't have it on our end).

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

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

Less More

- Posts: 27
- Thank you received: 0
-
-

10 years 7 months ago -  10 years 7 months ago [\#234636](#234636) by [skot](/forum/user/39484-skot "View skot's Profile")  Replied by *[skot](/forum/user/39484-skot "View skot's Profile")* on topic *[Popup image variant wrong and images issues](/forum/26-product-category-display/877529-popup-image-variant-wrong-and-images-issues#234636 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Firefox  Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.  Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)  No joomla cache is active or any other cache.")*

Hi Xavier,

You're right, new hikashop version doesn't have that problem anymore.

thanks for the help
Raphael

edit: however, I didn't want the thumbnails to open the popup window, only the main image.
And of course if I replace the new code:
echo $this-&gt;popup-&gt;image($html, $img-&gt;origin_url, $id, $attr, array('gallery' =&gt; 'hikashop_main_image'));

by

echo '&lt;a '.$attr.' /&gt;'.$html.'&lt;/a&gt;';

the thumbnails don't triger the popup anymore (good) but the main image doesn't display the right poped up picture. Is there something simple I'm missing ?

Last edit: 10 years 7 months ago by [skot](/forum/user/39484-skot "View skot's Profile"). Reason: forgot something

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 7 months ago [\#234720](#234720) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Popup image variant wrong and images issues](/forum/26-product-category-display/877529-popup-image-variant-wrong-and-images-issues#234720 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Firefox  Scenario: a product with one or more variant. In the product page I choose the variant and it correctly shows the variant images, but when I click on the variant thumbnail image it shows me in the popup the default image of the product instead of the variant image.  Second issue: on Firefox, when I open the product page, it doesn't show me the product images, just the link and when I click on it, it open the popup but no image are displayed. Then if I refresh the page (Ctrl+F5) it correctly shows the images (thumbnails and popup)  No joomla cache is active or any other cache.")*

Hi,

Another solution:
Still in the view "product / show_block_img" you can add the following code in the "&lt;script&gt;" part at the bottom of the html: Code:

window.hikashop.ready(function(){ hkjQuery('.hikashop_small_image_div a').each(function(){ hkjQuery(this).attr('onclick','return false;'); }); });

This code allow to only remove the onclick action and does not edit anything else.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Nzc1MjktcG9wdXAtaW1hZ2UtdmFyaWFudC13cm9uZy1hbmQtaW1hZ2VzLWlzc3Vlcz90bXBsPW1hcmtkb3du) 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.087 seconds

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