Post by dxer » Wed Oct 05, 2016 7:15 pm

I have Opencart 2.3.0.2 .
When I upload product picture it is framed in fixed size white frame/background. How can I change this to be only fulfilled by the picture and nothing else ?

New member

Posts

Joined
Thu Dec 13, 2012 10:32 pm

Post by dmsims » Wed Oct 05, 2016 10:47 pm

This is still happening in OC ???

anyway here is one solution from a good developer (IME)

http://www.opencart.com/index.php?route ... on_id=7893

Active Member

Posts

Joined
Sat Apr 13, 2013 6:05 pm

Post by IP_CAM » Thu Oct 06, 2016 8:48 am

it's a simple VqMod, required in my Test OC v.2.2.x at least, to present the original images instead,
in the Popup View! They look better anyway, and a little more load time does not matter on a product page. :D
---
image_popup_full.xml
---

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>
Good Luck ;)
Ernie
---

I am no longer active at the Forum. Please do NOT send me Personal Mails,
they will no longer be replied to.
My Github OC Site: https://github.com/IP-CAM
4'300 + FREE OC Extensions, on the World's largest Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

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

Users browsing this forum: No registered users and 10 guests