Product Page Issues

  • Posts: 7
  • Thank you received: 0
13 years 9 months ago #8480

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.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 9 months ago #8490

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.

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

  • Posts: 7
  • Thank you received: 0
13 years 9 months ago #8500

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?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 9 months ago #8503

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.

  • Posts: 7
  • Thank you received: 0
13 years 9 months ago #8505

That's fine it's not a major thing anyway I'll keep it simple.

Thanks again.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum