Skip to main content

Popup from thumbnail

More
9 years 2 months ago #274646 by leonte54
-- 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.

More
9 years 2 months ago #274649 by Jerome
Replied by Jerome on topic Popup from thumbnail
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.
The following user(s) said Thank You: leonte54

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

More
9 years 2 months ago - 9 years 2 months ago #274993 by leonte54
Replied by leonte54 on topic Popup from thumbnail
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:
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:
Code:
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: 9 years 2 months ago by leonte54.

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

Time to create page: 0.151 seconds
Powered by Kunena Forum