How Can I get the lightbox on products list?

  • Posts: 31
  • Thank you received: 0
4 years 11 months ago #305959

Hikashop Business.
Hello Nicolas, I checked in the previous topics, but they didn't help me. I don't use product page. I use only products list for show the products. I would like have the llightbox when client clicks on image product, as it happends on the product page. I send you the images to make me understand more. If it is possible, How can I get it? Thanks or your help

Attachments:
Last edit: 4 years 11 months ago by Coluccini.

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
4 years 11 months ago #305961

Hi,

Well, it's possible but it will require some development.
You'll have to edit the file "listing_img_title" of the view "product" via the menu Display>Views.
I think such change should allow you to do that:
Try changing the line:

echo '<img class="hikashop_product_listing_image" title="'.$this->escape(@$this->row->file_description).'" alt="'.$this->escape(@$this->row->file_name).'" src="'.$img->url.'"/>';
to:
		if(empty($this->popup))
			$this->popup = hikashop_get('helper.popup');
		echo $this->popup->image('<img class="hikashop_product_listing_image" title="'.$this->escape(@$this->row->file_description).'" alt="'.$this->escape(@$this->row->file_name).'" src="'.$img->url.'"/>', $img->origin_url);
Make sure that you turn off the link to product page setting of your products listing (menu item or module) so that the popup link is not inside the link to the product page.

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

  • Posts: 31
  • Thank you received: 0
4 years 11 months ago #305987

It works!! Thank you very much Nicolas! Have a nice day!

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

Time to create page: 0.058 seconds
Powered by Kunena Forum