- Posts: 18
- Thank you received: 0
Shadow Box for variant Images
14 years 4 weeks ago #69199
by Robertson
Shadow Box for variant Images was created by Robertson
I've searched through all the docs and forum posts but nothing seems to work. Shadowbox works well on products with multiple images, but on products that have variants like red, blue green etc., when the dropdown on the product view changes the main prod image to the image in the variant product -- shadowbox doesn't work, and the default joomla image action takes over.
In troubleshootng, I did a clean install on another site with no other customization and got the same behavior.
Am I missing something? I tried a new install with no customization other than shadowbox
I can't provide a link to the dev site publically but can send it in a private message.
Thanks!
In troubleshootng, I did a clean install on another site with no other customization and got the same behavior.
Am I missing something? I tried a new install with no customization other than shadowbox
I can't provide a link to the dev site publically but can send it in a private message.
Thanks!
Please Log in or Create an account to join the conversation.
14 years 4 weeks ago #69366
by nicolas
Replied by nicolas on topic Re: Shadow Box for variant Images
You will need to edit the file "show" of the view "product" via the menu Display->Views and remove the code:
$this->setLayout('show_block_img');
echo $this->loadTemplate();
That will avoid the problem.
$this->setLayout('show_block_img');
echo $this->loadTemplate();
That will avoid the problem.
The following user(s) said Thank You: Robertson
Please Log in or Create an account to join the conversation.
13 years 9 months ago #85129
by jen168
Replied by jen168 on topic Re: Shadow Box for variant Images
Related problem: I have 2-3 images per product. If I only have 1 product image, there is no problem as Hikashop does not generate the thumbnail div beneath the main image. However, Shadowbox is counting the main image as well as the thumbnails, so if I have 2 images the popup lists 3 images. If I have 3 images the popup lists 4, etc etc. What can I change to stop this behaviour? Thanks
Please Log in or Create an account to join the conversation.
13 years 9 months ago #85151
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Re: Shadow Box for variant Images
Hi,
You can modify the file "hikashop_image.php" that you use for the ShadobowBox integration, with this code:
At this moment, the big images and the thumbnails images would be in the same "gallery". So, when opening the big image, you wouldn't have the navigation arrows for thumbnails images.
But when click on a thumbnail image, you will.
Regards,
You can modify the file "hikashop_image.php" that you use for the ShadobowBox integration, with this code:
Code:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
function hikashop_image_link_render(&$obj,$path,$addpopup,$optionslink,$html,$alt=''){
return '<a title="'.$alt.'" rel="shadowbox[HikaShop]" href="'.$obj->uploadFolder_url.$path.'" '.$optionslink.'>'.$html.'</a>';
}
function hikashop_small_image_link_render(&$obj,$path,$addpopup,$optionslink,$html,$alt=''){
return '<a title="'.$alt.'" class="hikashop_image_small_link" rel="shadowbox[HikaShopSmall]" href="'.$obj->uploadFolder_url.$path.'" onmouseover="return hikashopChangeImage(\''.$addpopup.'\',\''.$obj->uploadFolder_url_thumb.'\',\''.$obj->thumbnail_x.'\',\''.$obj->thumbnail_y.'\',this);" '.$optionslink.'>'.$html.'</a>';
}
But when click on a thumbnail image, you will.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Time to create page: 0.054 seconds