Opencart 多商店_圖像指向修正
config.php處理
//img特殊處理
define(‘DIR_IMAGE’, ‘C:\*\htdocs\主店/image/’);
define(‘HTTP_SERVER_IMAGE’, ‘http://主店/’);
define(‘HTTPS_SERVER_IMAGE’, ‘https://主店/’);
vqmod處理
<!– 多商店_圖像指向修正s –>
<file name=”catalog/model/tool/image.php”>
<operation error=”skip”>
<search position=”replace”><![CDATA[
return $this->config->get(‘config_ssl’) . ‘image/’ . $new_image;
]]></search>
<add><![CDATA[
return HTTPS_SERVER_IMAGE . ‘image/’ . $new_image;
]]></add>
</operation>
<operation error=”skip”>
<search position=”replace”><![CDATA[
return $this->config->get(‘config_url’) . ‘image/’ . $new_image;
]]></search>
<add><![CDATA[
return HTTP_SERVER_IMAGE . ‘image/’ . $new_image;
]]></add>
</operation>
</file>
<!– 多商店_圖像指向修正e –>