Well, the Chief in OC-Command changed the
$new_image to
$image_new, to make it
a little harder on us, but he still ignored to add the Image Size Tags, missing since OC v.0.01 !
---
But you could try one of the Extensions below, depending on, if you use
VqMod or
OcMod,
after adding the
HTTP/S image links into your
ROOT config.php file, like:
Code: Select all
define('HTTP_SERVER', 'http://www.yourshop/shop/');
define('HTTP_IMAGE', 'http://yourshop/shop/image/');
// HTTPS
define('HTTPS_SERVER', 'http://www.yourshop/shop/');
define('HTTPS_IMAGE', 'http://yourshop/shop/image/');
or then, if you use https:
Code: Select all
define('HTTP_SERVER', 'https://www.yourshop/shop/');
define('HTTP_IMAGE', 'https://yourshop/shop/image/');
// HTTPS
define('HTTPS_SERVER', 'https://www.yourshop/shop/');
define('HTTPS_IMAGE', 'https://yourshop/shop/image/');
or then in REVERSE, if you use
http(s):// YOURSHOP/ as regular Shop URL
instead of
http(s):// WWW.YOURSHOP/
And this also depends on, if you use a
/SHOP/ Subdirectory or not!
---
I cannot test anything, in case, it will not function!
Good Luck !
Ernie
PS: The Second Extension Routine is only of MINOR Importance:
<file name="catalog/model/extension/ ......
and could eventually be removed in full, at least, to test the 'important Matter'
if some problem would occurre, as the Mod comes as written!
---
VqMod Version:
---
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<id><![CDATA[HTTP_IMAGE + HTTPS_IMAGE Links and Sizes]]></id>
<version><![CDATA[OS v.2.3.x]]></version>
<vqmver><![CDATA[2.6.1]]></vqmver>
<author><![CDATA[Ernie - IP_CAM]]></author>
<file name="catalog/model/tool/image.php">
<operation error="log">
<search position="replace"><![CDATA[eturn $this->config->get('config_ssl') . 'image/' . $image_new;]]></search>
<add><![CDATA[return HTTPS_IMAGE . $image_new . '" width="' . $width . '" height="' . $height;]]></add>
</operation>
<operation error="log">
<search position="replace"><![CDATA[return $this->config->get('config_url') . 'image/' . $image_new;]]></search>
<add><![CDATA[return HTTP_IMAGE . $image_new . '" width="' . $width . '" height="' . $height;]]></add>
</operation>
</file>
<file name="catalog/model/extension/openbay/ebay_order.php,catalog/model/extension/openbay/ebay_product.php,catalog/model/checkout/order.php,catalog/controller/extension/payment/pilibaba.php,catalog/controller/extension/payment/skrill.php,catalog/controller/extension/payment/skrill.php,catalog/controller/extension/total/voucher.php">
<operation error="log">
<search position="replace"><![CDATA[$this->config->get('config_url') . 'image/']]></search>
<add><![CDATA[HTTP_IMAGE]]></add>
</operation>
<operation error="log">
<search position="replace"><![CDATA[$this->config->get('config_ssl') . 'image/']]></search>
<add><![CDATA[HTTPS_IMAGE]]></add>
</operation>
</file>
</modification>
---
OcMOD Version:
---
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<modification>
<name><![CDATA[HTTP_IMAGE + HTTPS_IMAGE Links and Sizes]]></name>
<version><![CDATA[OS v.2.3.x]]></version>
<code><![CDATA[http_image_links_and_sizes]]></code>
<author><![CDATA[Ernie - IP_CAM]]></author>
<file path="catalog/model/tool/image.php">
<operation error="log">
<search><![CDATA[eturn $this->config->get('config_ssl') . 'image/' . $image_new;]]></search>
<add position="replace"><![CDATA[return HTTPS_IMAGE . $image_new . '" width="' . $width . '" height="' . $height;]]></add>
</operation>
<operation>
<search><![CDATA[return $this->config->get('config_url') . 'image/' . $image_new;]]></search>
<add position="replace"><![CDATA[return HTTP_IMAGE . $image_new . '" width="' . $width . '" height="' . $height;]]></add>
</operation>
</file>
<file path="catalog/model/extension/openbay/ebay_order.php,catalog/model/extension/openbay/ebay_product.php,catalog/model/checkout/order.php,catalog/controller/extension/payment/pilibaba.php,catalog/controller/extension/payment/skrill.php,catalog/controller/extension/payment/skrill.php,catalog/controller/extension/total/voucher.php">
<operation error="log">
<search><![CDATA[$this->config->get('config_url') . 'image/']]></search>
<add position="replace"><![CDATA[HTTP_IMAGE]]></add>
</operation>
<operation>
<search><![CDATA[$this->config->get('config_ssl') . 'image/']]></search>
<add position="replace"><![CDATA[HTTPS_IMAGE]]></add>
</operation>
</file>
</modification>