For OpenCart 1.5.2.1 , after some study, I found you can achieve easily on HTML technique
locate for the file catalog/view/theme/default/template/product/product.tpl
Find from top of file:
<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>
Replace with:
<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>
The technique is by Turn this HTML <a href .....> <img ....> </a>
into this HTML < a href ......></a> <img .....>
so the link will never be able to be clicked.
hope that helps who need this
emmetje wrote:To make this work on 1.5.1
Use this:
IN /catalog/controller/product/product.php
Look for:Change to:Code: Select all
$this->data['popup'] = $this->model_tool_image->resize($image, $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height'));
Code: Select all
$this->data['popup'] = 'image/' . $product_info['image'];
& within the same file....
Look for:Change to:Code: Select all
'popup' => $this->model_tool_image->resize($result['image'] , $this->config->get('config_image_popup_width'), $this->config->get('config_image_popup_height')),
Code: Select all
'popup' => 'image/' . $result['image'],
This method works perfect with 1.5.2.1 - Thanks!!! :-)
I have taken all of the advice from this thread but nothing changes.
I am on AceShop: 1.4.6 and OpenCart: 1.5.1.3.
I first tried editing code as per emmetje but nothing.
Then I replaced product.php with the one that k.kakkad provided, still nothing.
I also dropped Product Image Popup Size_Disable.xml into my vqmod/xml folder.
Yup, nothing.
Something I was not able to do was STEP 3 (DIR-rename):
DIR is in: OPENCART-ROOT\catalog\view\javascript\jquery
DIR name is: thickbox
I found neither a jquery directory within my javascript nor a thickbox directory.
Is there something else I can do?
Code: Select all
.zoomLens {
display: none !important;
}
.zoomContainer {
display: none !important;
}
In catalog/controller/product/product.php file,coldrex wrote:Any ideas how to disable image popup resize in OC 2.2, default theme?
In /catalog/controller/product/product.php I found a code with "popup" variables, I think this is what we need.
But I cant understand how to modify it.
find:
Code: Select all
foreach ($results as $result) {
$data['images'][] = array(
'popup' => $this->model_tool_image->resize($result['image'], $this->config->get($this->config->get('config_theme') . '_image_popup_width'), $this->config->get($this->config->get('config_theme') . '_image_popup_height')),
'thumb' => $this->model_tool_image->resize($result['image'], $this->config->get($this->config->get('config_theme') . '_image_additional_width'), $this->config->get($this->config->get('config_theme') . '_image_additional_height'))
);
}
Code: Select all
foreach ($results as $result) {
$data['images'][] = array(
'popup' => $result['image'],
'thumb' => $result['image'], );
}

You can also manipulate these from the same file:
Code: Select all
if ($product_info['image']) {
$data['popup'] = $this->model_tool_image->resize($product_info['image'], $this->config->get($this->config->get('config_theme') . '_image_popup_width'), $this->config->get($this->config->get('config_theme') . '_image_popup_height'));
} else {
$data['popup'] = '';
}
if ($product_info['image']) {
$data['thumb'] = $this->model_tool_image->resize($product_info['image'], $this->config->get($this->config->get('config_theme') . '_image_thumb_width'), $this->config->get($this->config->get('config_theme') . '_image_thumb_height'));
} else {
$data['thumb'] = '';
}
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
foreach ($results as $result) {
$data['images'][] = array(
'popup' => $result['image'],
'thumb' => $result['image'], );
}
Image could not be loaded.
Could You please come back with a certain code, please?
Iam not a programmer, sorry

That is the point of this topic; to disable the product image popup size.coldrex wrote:I tried this:
foreach ($results as $result) {
$data['images'][] = array(
'popup' => $result['image'],
'thumb' => $result['image'], );
}
Image could not be loaded.
Could You please come back with a certain code, please?
Iam not a programmer, sorry
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
To disble popup SIZE. Exactly.straightlight wrote:
That is the point of this topic; to disable the product image popup size.
And this disables the image itself.
But we need not to cut it inside the popup, to have it in original size..
So by stating: tried this on the above, could you provide the step-by-step that you did?coldrex wrote:To disble popup SIZE. Exactly.straightlight wrote:
That is the point of this topic; to disable the product image popup size.
And this disables the image itself.
But we need not to cut it inside the popup, to have it in original size..
The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.
Regards,
Straightlight
Programmer / Opencart Tester
catalog/controller/product/product.php file
Found:
foreach ($results as $result) {
$data['images'][] = array(
'popup' => $this->model_tool_image->resize($result['image'], $this->config->get($this->config->get('config_theme') . '_image_popup_width'), $this->config->get($this->config->get('config_theme') . '_image_popup_height')),
and replaced with:
foreach ($results as $result) {
$data['images'][] = array(
'popup' => $result['image'],
'thumb' => $result['image'], );
}
Users browsing this forum: No registered users and 47 guests