Popup from thumbnail

  • Posts: 39
  • Thank you received: 1
7 years 9 months ago #274646

-- url of the page with the problem -- : www.elisamatarrese.com/it/elenco-categorie/categoria/acquerello
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.3
-- PHP version -- : 7.0.21
-- Browser(s) name and version -- : Chrome 49.0.2623.112 (64-bit)

Hi,
from product list of this page:
www.elisamatarrese.com/it/elenco-categorie/categoria/acquerello
I don't need a link to a product page but just a popup from image thumbnail.
It's possible?
Thank you

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

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 9 months ago #274649

Hello,

To do so you will need to perform a view override and change the product listing view you're using (or create a new one if you want).
www.hikashop.com/support/documentation/1...-display.html#layout

You can create the popup image manually or use some existing code like the content in show_block_img which is used by the product page to display the images.

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.
The following user(s) said Thank You: leonte54

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

  • Posts: 39
  • Thank you received: 1
7 years 9 months ago #274993

I found this old post:
www.hikashop.com/forum/4-how-to/46848-li...instead-of-page.html
where the correction to be made on the listing_img_title page in the Hikashop version 2.6.3.

I changed this code:

//$img = $this->image->getThumbnail(
//		@$this->row->file_path,
//		array('width' => $this->image->main_thumbnail_x, 'height' => $this->image->main_thumbnail_y),
//		array('default' => true, 'forcesize' => $this->config->get('image_force_size', true), 'scale' => $this->config->get('image_scale_mode', 'inside'))
//	);
//	if($img->success) {
//		echo '<img class="hikashop_product_listing_image" title="'.$this->escape(@$this->row->file_description).'" alt="'.$this->escape(@$this->row->file_name).'" src="'.$img->url.'"/>';
//	}

with this:
echo $this->image->display(@$this->row->file_path,true,$this->escape($this->row->file_name), '' , '' , $this->image->main_thumbnail_x,  $this->image->main_thumbnail_y);

and it seems to work.

Thank you

Last edit: 7 years 9 months ago by leonte54.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum