Thumbs are riginal uploaded large photos

  • Posts: 4
  • Thank you received: 0
9 years 5 months ago #236751

-- url of the page with the problem -- : www.doektgoed.nl/webshop/product/double-face
-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.32
-- Browser(s) name and version -- : Chrome 49.0.2623.112 m

In one of my sites in the product view it seems the thumbnails load the original large photo's (6MB) instead of the smaller thumbnails. This causes long loading times and a slow 'paint' of the website.

For example checl www.doektgoed.nl/webshop/product/double-face
The shop part is only visible for registered users. You can login with the temporary user hikashop with pass hikashop (it's just a registered user, no additional rights).

In the config of the shop I've set image size to 500x500 and thumbnailsize to 200x200.

Am I overlooking a setting somewhere?

Last edit: 9 years 5 months ago by menolo.

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 5 months ago #236808

Hi,

I don't see what you're describing.
On your product page, the main image displayed has a size of 500*500 :
take.ms/XUVuy
And when I click on it, I get the original image of 2202*2746:
take.ms/mbbnl

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

  • Posts: 4
  • Thank you received: 0
9 years 5 months ago #236811

Hi Nicolas,

See the attached screenshot for the large photo getting loaded.

Wim

edit: added a screenshot of the source loading the URL of the original image.

Attachments:
Last edit: 9 years 5 months ago by menolo.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 5 months ago #236857

Hello,

The solution will be to edit the "show_block_img" file of the "product" view of your front-end template via "Hikashop->Display->Views" and change that line :

<img style="display:none;" src="<?php echo $img->origin_url; ?>" itemprop="image"/>
By :
<meta itemprop="image" content="<?php echo $img->origin_url; ?>"/>

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

  • Posts: 4
  • Thank you received: 0
9 years 5 months ago #236958

Hey Mohammed, that fixed it. Thanks!

Was this something that was only a problem for my instance of Hikashop? Or wil will it be updated in the next Hikashop release?

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

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 5 months ago #236972

Hi,

It will be updated in the next version of HikaShop yes.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum