WebP images not on productlisting page

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
1 year 1 month 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: 4760
  • Thank you received: 647
  • MODERATOR
1 year 1 month 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: 1 year 1 month ago by Philip.

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
1 year 1 month 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: 83007
  • Thank you received: 13399
  • MODERATOR
1 year 1 month 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: 507
  • Thank you received: 21
  • Hikashop Business
1 year 1 month 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.060 seconds
Powered by Kunena Forum