Productpage shows thumbnail image after hover

  • Posts: 7
  • Thank you received: 0
13 years 6 months ago #15754

I have a problem with the productpage of Hikashop.

I wanted to change the imagesize on the productpage.. that worked well with changing the 'show.php' file:

echo $this->image->display($image->file_path,true,$image->file_name,'id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"');

to this:
echo '<img src="'.$this->image->uploadFolder_url.$image->file_path.'" alt="'.$image->file_name.'" id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" />';

and this:
echo $this->image->display($image->file_path,true,$image->file_name,'id="hikashop_main_image_'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_'.$variant_name.'_link"');

to this:
echo '<img src="'.$this->image->uploadFolder_url.$image->file_path.'" alt="'.$image->file_name.'" id="hikashop_main_image_'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" />';

So now my images are the right size, but it still uses the thumbnail image for it.. causing a very bad resolution in my images...

I want Hikashop to use the main image, instead of the thumbnail image even while/after hovering the child images...

Here's what I mean: www.blv-service.nl/welkom/index.php/cata.../category_pathway-13

Hope someone can help me out! :)

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #15761

You should add the line:
$this->image->no_size_override = 1;

just after these lines so that it uses the main image URL and not the thumbnail's.

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

  • Posts: 7
  • Thank you received: 0
13 years 6 months ago #15767

Thanks for the quick reply!

I tried this, but didn't work:

echo '<img src="'.$this->image->uploadFolder_url.$image->file_path.'" alt="'.$image->file_name.'" id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" />';
$this->image->no_size_override = 1;
echo '<img src="'.$this->image->uploadFolder_url.$image->file_path.'" alt="'.$image->file_name.'" id="hikashop_main_image_'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" />';
$this->image->no_size_override = 1;

What am I missing?

Last edit: 13 years 6 months ago by antoinettedejongh.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #15775

Do you use the latest version of HikaShop ?

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

  • Posts: 7
  • Thank you received: 0
13 years 6 months ago #15777

I guess I do.. I use com_hikashop_starter_1.4.7_2011-03-18

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
13 years 6 months ago #15793

That's a 2 months old release. Please update to the latest version and that should work.

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

  • Posts: 7
  • Thank you received: 0
13 years 6 months ago #15811

That worked! Thanks! :)

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

Time to create page: 0.069 seconds
Powered by Kunena Forum