image display product listing and product detail

  • Posts: 9
  • Thank you received: 0
9 years 5 months ago #178025

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6

Hi,

Can you explain to me how the interaction is between the thumbnail in a product list (DIV) and the thumbnail in the product detailpage. When I set the miniature off in configuration>main>image the image on the product list dissapeares, but the image on the prodcuct detail page hops into the right dimensions. When I switch it on, the images appear in the product list, but get an enormous white space around the thumbnail on the product detail page.

Took me quite some time to discover that there is a connection between both in their layout/appearance, but I don't get where to make sure that the image stays in the product list, and the with area dissapears on the detail page.

please help!

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
9 years 5 months ago #178043

Hi,

If you turn off the "thumbnails" option, it means that you don't want any thumbnails for your products and in that case, they are removed from your products listings. Also, as the image on the product page is also a thumbnail, it is removed and instead you get the full size image on the product page.

You most likely want to keep that option turned on.
If you want a bigger thumbnail on the product page, simply increase the values of the "image width/height on product page" options of the HikaShop configuration.

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

  • Posts: 9
  • Thank you received: 0
9 years 5 months ago #178180

Hi,

Thanks, got it.

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

  • Posts: 9
  • Thank you received: 0
9 years 5 months ago #178404

Hi Nicolas,

I have found the connection between the images (product images, thumbs and listing image). BUT: the tumbs for the product listing are small, to small for my taste. The thumbs are so small, that there is 2/3 of white space left (left and right) in the product listing. Where can I fixed the image upload size (I noticed the thumbs are automatically resize to something of 125 or 127 px height). And I don't wish to make different thumb images in different sizes per product. I'd love the system to do that for me.

I'm very puzzled :S how these images are resized actually. In the uploadfile for the thumbs on my server, Hikashop uploads all kind of sizes of thumbs. Which ones are used? When are these created and can I delete some to save space on my webserver?

If you want to have a look at the site, the login details were send to you yesterday in a pm. You can login in the front-end, in the bottom right corner.

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

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
9 years 5 months ago #178424

Hi,

You can remove all generated images in the folder "thumbnails" and in the folders "thumbnail_0000x0000".
HikaShop will re-generate them if required.
So if you change some setting and you have unused thumbnails, HikaShop won't recreate them.
But because HikaShop does not have the knowledge of sizes which won't be used anymore ; it can't delete unused thumbnails.
(But HikaShop removed all thubmnails for an image when the original image is removed through HikaShop).

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.

  • Posts: 11
  • Thank you received: 0
9 years 2 months ago #191280

Hi

When the thumbnail option is enabled, the image on the product page has a link that opens the image in a new page. How can I remove the link? I need just the static image.

Thanks

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

  • Posts: 13201
  • Thank you received: 2322
9 years 2 months ago #191285

Hi,

The image should not be opened in another page but in a popup.
So if you want the popup please try to change the popup mode in the configuration of HikaShop.

Else to remove the link, you can edit the view "product / show_block_img" and remove:

									if (!empty ($this->element->images) && count($this->element->images) > 1) {
										$attr .= 'onclick="return window.localPage.openImage(\'hikashop_main_image'.$variant_name.'\');"';
									}

The following user(s) said Thank You: Nihilus

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

  • Posts: 11
  • Thank you received: 0
9 years 2 months ago #191428

Hi Xavier

Thanks for the reply

I know there is some jquery mootools errors on our site but I just want the link gone. I commented out the onclick code as you suggested. This has removed the onclick attribute from the img tag but the img tag is still embedded into a <a> tag which opens the image in a new page:

<a title="" rel="shadowbox" href="/media/com_hikashop/upload/110876758.jpg">
<img id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" title="" alt="" src="/media/com_hikashop/upload/thumbnails/135x240f/110876758.jpg">
</a>

I tried changing the popup mode after I removed the code as well with no luck.

One of the product pages' links if you want to check for yourself: www.icollege.co.za/index.php/all-courses/product/3880-06-a0027

Thanks

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

  • Posts: 13201
  • Thank you received: 2322
9 years 2 months ago #191437

Hi,

Sorry, you have too to replace:

echo $this->popup->image($html, $img->origin_url, null, $attr);
By:
echo $html;

The following user(s) said Thank You: Nihilus

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

  • Posts: 11
  • Thank you received: 0
9 years 2 months ago #191735

Thanks Xavier!

That did the trick.

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

  • Posts: 1
  • Thank you received: 0
1 year 2 months ago #349327

It's working perfect for the main image! Very good!

But when you click in the little images on the bottom... it's opening again in a new window...

I found this part of code: how to replace to fix it?



(version of HikaShop Starter: 4.7.1)

file: show_block_img.php

from line 204 to 210




if(empty($variant_name)) {
				echo $this->popup->image($html, $img->origin_url, $id, $attr, array('gallery' => 'hikashop_main_image'));

			} else {
				echo $this->popup->image($html, $img->origin_url, $id, $attr, array('gallery' => 'hikashop_main_image_VARIANT_NAME'));

			}

Attachments:

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

  • Posts: 81515
  • Thank you received: 13069
  • MODERATOR
1 year 2 months ago #349340

Hi,

Replace that whole code by just:

echo '<a href="#" '.$attr.'>'.$html.'</a>';
and it should hopefully do it.

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

Time to create page: 0.109 seconds
Powered by Kunena Forum