Skip to main content

Productpage shows thumbnail image after hover

More
15 years 4 months ago #15754 by antoinettedejongh
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:
Code:
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:
Code:
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:
Code:
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:
Code:
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.

More
15 years 4 months ago #15761 by nicolas
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.

More
15 years 4 months ago - 15 years 4 months ago #15767 by antoinettedejongh
Thanks for the quick reply!

I tried this, but didn't work:
Code:
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;
Code:
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: 15 years 4 months ago by antoinettedejongh.

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

More
15 years 4 months ago #15775 by nicolas
Do you use the latest version of HikaShop ?

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

More
15 years 4 months ago #15777 by antoinettedejongh
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.

More
15 years 4 months ago #15793 by nicolas
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.

More
15 years 4 months ago #15811 by antoinettedejongh
That worked! Thanks! :)

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

Time to create page: 0.257 seconds
Powered by Kunena Forum