WebP images not on productlisting page

  • Posts: 506
  • Thank you received: 21
  • Hikashop Business
6 months 19 hours ago #356362

-- HikaShop version -- : 5.0.0
-- Joomla version -- : 4.4.0
-- PHP version -- : 8.1

Hi,

For some reason the WebP images on productlisting pages aren't used anymore. I suspected JCH Optimize plugin, but when I disabled this plugin the webp also doesn't show. On the productpage itself it does show up, although the jpg still is set as img src? See screenshot.

Attachments:

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

  • Posts: 4540
  • Thank you received: 612
  • MODERATOR
6 months 13 hours ago #356372

Hello,

Please provide these elements ;
- An Url link to your website to see the context
- Your Image part settings screenshot
=> From HikaShop Configuration, Main tab => Images part

Regards

Last edit: 6 months 16 hours ago by Philip.

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

  • Posts: 506
  • Thank you received: 21
  • Hikashop Business
5 months 4 weeks ago #356385

Hi,

I think I added the url already, but f.e. : jouwnaambord.nl/naambordjes/aluminium-naambordjes

Here's the creenshot of the settings. It has been working well since the introduction for WebP images in Hikashop, but something must have changed?

Attachments:

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

  • Posts: 81591
  • Thank you received: 13079
  • MODERATOR
5 months 4 weeks ago #356390

Hi,

Since it works on the product details page, the most likely reason is that there is a view override of the product / listing_img_title view file which doesn't includes the code to display the webp images:

		if($this->config->get('add_webp_images', 1) && function_exists('imagewebp') && !empty($img->webpurl)) {
			$html = '
			<picture>
				<source srcset="'.$img->webpurl.'" type="image/webp">
				<source srcset="'.$img->url.'" type="image/'.$img->ext.'">
				'.$html.'
			</picture>
			';
		}
So I would recommend checking the view overrides. You can also try to display the products listing with the default template to rule out view overrides.

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

  • Posts: 506
  • Thank you received: 21
  • Hikashop Business
5 months 3 weeks ago #356438

Hi, thanks. There was indeed a template override, I removed it and it works fine now.

The following user(s) said Thank You: nicolas

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

Time to create page: 0.064 seconds
Powered by Kunena Forum