Post by coldrex » Sat Jul 16, 2016 2:16 am

Hello,

the product image popup should be in original size.

This is very important, for many of us.

Thanks.

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by samchen945 » Sat Sep 10, 2016 8:04 pm

You can set image dimensions on settings.

Newbie

Posts

Joined
Tue Nov 26, 2013 9:55 pm

Post by coldrex » Sat Sep 10, 2016 8:43 pm

Buy they all are different size, small will distort, large will cut.

This is not working.

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by IP_CAM » Sun Sep 11, 2016 1:57 am

an easy VqModded Solution can be seen here, momentarely:
---
http://www.bigmax.ch/oc22/index.php?rou ... duct_id=42
---
Good Luck! ;)
Ernie

PS: For some reason, I forget, I made this into two individual TASKS, instead of doing it ONE. 8)
But I am too lazy, to check, why I did :D it...
---
Fullsize Product Image Popup VqMOD OC v.2.2.0.0, may work on others as well:

image_popup_full.xml - to be uploaded into the vqmod/xml/... Subdirectory:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id><![CDATA[Fullsize Product Image Popup]]></id>
<version><![CDATA[OC v.2.2.0.0]]></version>
<vqmver><![CDATA[2.5.1]]></vqmver>
<author><![CDATA[Ernie - IP_CAM]]></author>

<file name="catalog/controller/product/product.php">
<operation error="log">
<search position="replace"><![CDATA[
	$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'));
]]></search>
<add><![CDATA[
	$data['popup'] = 'image/' . $product_info['image'];
]]></add>
</operation>
</file>

<file name="catalog/controller/product/product.php">
<operation error="log">
<search position="replace">
<![CDATA[
	'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')),
]]></search>
<add><![CDATA[
	'popup' => 'image/' . $result['image'],
]]></add>
</operation>
</file>

</modification>
---

For Sale: Top URL's, including an OpenCart V-Pro Installation!
A wide range of available Site Designs can be seen here: http://www.opencart.li
For more Information on URL's offered, please contact me at: jti@jacob.ch
380+ free Extensions for OpenCart v.1.5.x - v.2.3.x Versions
can be found in my Github Repositories: https://github.com/IP-CAM
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 7 guests