Shadow Box for variant Images

  • Posts: 18
  • Thank you received: 0
12 years 1 month ago #69199

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!

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

  • Posts: 82817
  • Thank you received: 13357
  • MODERATOR
12 years 1 month ago #69366

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.

The following user(s) said Thank You: Robertson

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

  • Posts: 55
  • Thank you received: 0
11 years 10 months ago #85129

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.

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #85151

Hi,

You can modify the file "hikashop_image.php" that you use for the ShadobowBox integration, with this 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>';
}
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,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum