- Posts: 7
- Thank you received: 0
Productpage shows thumbnail image after hover
- antoinettedejongh
-
Topic Author
- Offline
Less
More
15 years 4 months ago #15754
by antoinettedejongh
Productpage shows thumbnail image after hover was created 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:
to this:
and this:
to this:
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!
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.
15 years 4 months ago #15761
by nicolas
Replied by nicolas on topic Re: Productpage shows thumbnail image after hover
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.
$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.
- antoinettedejongh
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
15 years 4 months ago - 15 years 4 months ago #15767
by antoinettedejongh
Replied by antoinettedejongh on topic Re: Productpage shows thumbnail image after hover
Thanks for the quick reply!
I tried this, but didn't work:
What am I missing?
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.
15 years 4 months ago #15775
by nicolas
Replied by nicolas on topic Re: Productpage shows thumbnail image after hover
Do you use the latest version of HikaShop ?
Please Log in or Create an account to join the conversation.
- antoinettedejongh
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
15 years 4 months ago #15777
by antoinettedejongh
Replied by antoinettedejongh on topic Re: Productpage shows thumbnail image after hover
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.
15 years 4 months ago #15793
by nicolas
Replied by nicolas on topic Re: Productpage shows thumbnail image after hover
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.
- antoinettedejongh
-
Topic Author
- Offline
Less
More
- Posts: 7
- Thank you received: 0
15 years 4 months ago #15811
by antoinettedejongh
Replied by antoinettedejongh on topic Re: Productpage shows thumbnail image after hover
That worked! Thanks!
Please Log in or Create an account to join the conversation.
Time to create page: 0.257 seconds