Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable opencart 1.5.4 product image popup/zoom

Tags:

opencart

Greeting,

As per title, does anyone know how can I disable this feature? I have tried below two methods, Neither one works.

Method 1 in /catalog/controller/product/product.php find:

$this->data['popup'] = $this->model_tool_image->resize($image, $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height'));

Change to:

$this->data['popup'] = 'image/' . $image;

in the same file find:

'popup' => $this->model_tool_image->resize($result['image'] , $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height')),

Change to:

'popup' => 'image/' . $result['image'] ,

Method 2 in catalog/view/theme/default/template/product/product.tpl find:

<div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"> <img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /></a></div>

Change to:

<div class="image"><a href="<?php echo $popup; ?>" title="<?php echo $heading_title; ?>" class="colorbox" rel="colorbox"></a><img src="<?php echo $thumb; ?>" title="<?php echo $heading_title; ?>" alt="<?php echo $heading_title; ?>" id="image" /> </div>
like image 203
Steven Jackson Avatar asked Oct 21 '22 07:10

Steven Jackson


1 Answers

After try lots of options, the best and easiest for us has been add those lines in stylesheet.css:

.zoomLens {
   display: none !important;
}

.zoomContainer {
   display: none !important;
}

Thanks!!!

like image 183
josep_iproject Avatar answered Nov 11 '22 06:11

josep_iproject