Images of Characteristics not displaying

  • Posts: 89
  • Thank you received: 2
4 years 1 month ago #328631

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.22
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Firefox & Safari on iPhone
-- Error-message(debug-mod must be tuned on) -- : N/A

Good day wonderful Hikashop Team! Happy Monday! :)

Hiksahop used to work perfectly well displaying imgaes when a Characteristic is selected from the Dropdown Menu and has now stopped working.
Weirdly when I refresh the Page it shows up.... :S

I have disabled all Speed Optimization plugins, I am using Cache.
I have also disabled Javascript Compression...

I have read through the Forum posts that I could find and came across a LAzyLoad issue someone had but disabling this is also not working for me.

Please can you assist me to ojpoint what the issue is?

Attachments:

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

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 1 month ago #328648

Hi,

I checked your URL and the problem is indeed an image lazy load issue.
What your lazyload system does is that on the server, before outputting the HTML, it replaces the src (where you have the URL of the image) with its generic blank.gif image and moves the real URL to a data-src attribute of the img tag:
monosnap.com/file/Xw5c3IJ9P8meBISaHwW6PXrJ1Xhuq2
Then, once the page is loaded, the javascript of the lazyload system will parse the page to find the img tags and replace the src attribute.
However, it seems that it doesn't do it for the img tags of the variants as they are hidden (they are used to replace the main ones dynamically when you change the selected variant.

So two things here:
- disabling the lazyload system will fix the problem. Maybe there is a setting in the lazyload system to change the way it works and also replace hidden img tags. I would recommend you to check with the support of that extension.
- It seems that all the variants have the same images. If that's the case for all your products, then you can just remove the HTML of the img tags of the variants and thus HikaShop won't replace the main images HTML when you change the selected variant, and thus it will circumvent the short comings of your lazy load system. You can do so by removing the code:

$this->setLayout('show_block_img');
		echo $this->loadTemplate();
in the file product / show.php via the menu Display>Views

The following user(s) said Thank You: Uriel

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

  • Posts: 89
  • Thank you received: 2
4 years 1 month ago #328788

Thank you Nicolas! This sorted the issue

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

Time to create page: 0.061 seconds
Powered by Kunena Forum