Post by hillfingerr » Wed Apr 19, 2017 6:44 am

I am using Opencart 1.5.6.4 and I have the below code that actually works to use both external and internal images, in my shop but unfortunately it has two issues:

1. for the external images, I can't use https urls and for my ssl site this causes mixed content errors and the connection is not secure anymore and seo suffers.

2. if any additional images are clicked, they follow the link to the external source instead of the normal behavior to show the large image on my site.

Is there anyone knowledgeable in php and willing to help to revise the code so these last two impediments will be fixed as well?

replace catalog/model/tool/image.php line 16

Code: Select all

return;
with

Code: Select all

if (substr($filename, 0, 7) == 'http://') {
return $filename.'" height="'.$height.'" width="'.$width;
} else {
return;
}

New member

Posts

Joined
Mon May 26, 2014 8:22 pm
Who is online

Users browsing this forum: No registered users and 16 guests