- Posts: 7
- Thank you received: 0
Product Page Issues
15 years 7 months ago #8480
by blamookie
Product Page Issues was created by blamookie
I have used the code in Display->Views
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" />';
which i found on another thread to make sure my product images are shown as a large picture but when i added variations i.e. "Size: S/M/L/XL" my product page images change back to the small images when i select different sizes.
I would also like be able to hover over product to enlarge images before entering the product page.
I tried this code in administrator/component/com_hikashop/helpers/image.php from another thread but nothing happened.
$html = '<a rel="{handler: \'iframe\', size: {x: '.$this->width.', y: '.$this->height.'}}" target="_blank" href="'.$this->uploadFolder_url.$path.'" onhover="SqueezeBox.fromElement(this);return false;" '.$optionslink.'>'.$html.'</a>';
Can anyone help?
My site is currently under construction: greenhellclothing.schoolspace.ie
TEES/HOODIES sections are my shop pages.
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" />';
which i found on another thread to make sure my product images are shown as a large picture but when i added variations i.e. "Size: S/M/L/XL" my product page images change back to the small images when i select different sizes.
I would also like be able to hover over product to enlarge images before entering the product page.
I tried this code in administrator/component/com_hikashop/helpers/image.php from another thread but nothing happened.
$html = '<a rel="{handler: \'iframe\', size: {x: '.$this->width.', y: '.$this->height.'}}" target="_blank" href="'.$this->uploadFolder_url.$path.'" onhover="SqueezeBox.fromElement(this);return false;" '.$optionslink.'>'.$html.'</a>';
Can anyone help?
My site is currently under construction: greenhellclothing.schoolspace.ie
TEES/HOODIES sections are my shop pages.
Please Log in or Create an account to join the conversation.
15 years 7 months ago #8490
by nicolas
Replied by nicolas on topic Re: Product Page Issues
If you use variants, you also need to replace the line:
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"');
by the line:
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" />';
in the file show of the view product that you already edited via the menu Display->Views.
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"');
by the line:
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" />';
in the file show of the view product that you already edited via the menu Display->Views.
Please Log in or Create an account to join the conversation.
15 years 7 months ago #8500
by blamookie
Replied by blamookie on topic Re: Product Page Issues
Nicolas thanks for the quick reply, that worked perfectly.
Is it possible to hover over the images and enlarge the thumbnail before entering the product pages?
Is it possible to hover over the images and enlarge the thumbnail before entering the product pages?
Please Log in or Create an account to join the conversation.
15 years 7 months ago #8503
by nicolas
Replied by nicolas on topic Re: Product Page Issues
Everything is possible if you know how to code it but enlarging the image when you hover over them on the products listing won't be easy to add. We can't provide such modifications on the forum
Please Log in or Create an account to join the conversation.
15 years 7 months ago #8505
by blamookie
Replied by blamookie on topic Re: Product Page Issues
That's fine it's not a major thing anyway I'll keep it simple.
Thanks again.
Thanks again.
Please Log in or Create an account to join the conversation.
Time to create page: 0.162 seconds