Hi Xavier,
You're right, new hikashop version doesn't have that problem anymore.
thanks for the help
Raphael
edit: however, I didn't want the thumbnails to open the popup window, only the main image.
And of course if I replace the new code:
echo $this->popup->image($html, $img->origin_url, $id, $attr, array('gallery' => 'hikashop_main_image'));
by
echo '<a '.$attr.' />'.$html.'</a>';
the thumbnails don't triger the popup anymore (good) but the main image doesn't display the right poped up picture. Is there something simple I'm missing ?