just in case:
OC v. 2.1.0.0
...\cart\catalog\model\tool\image.php
can be done in the admin section
/model/tool/image.php file as well,
to make it be a little more pro-Style...
Find, at the very botton end:
Code: Select all
if ($this->request->server['HTTPS']) {
return $this->config->get('config_ssl') . 'image/' . $new_image;
} else {
return $this->config->get('config_url') . 'image/' . $new_image;
}
}
}
replace whole code with this:
Code: Select all
if ($this->request->server['HTTPS']) {
return $this->config->get('config_ssl') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
} else {
return $this->config->get('config_url') . str_replace(' ','%20', $new_image) . '" width="' . $width . '" height="' . $height;
}
}
}
then, you don't have to worry about
potential white space problems in image-title-names any longer, and OC Version Everyone will finally add important, and by default-missing, width/height Size-'Values' to it's
most images as well. Add's to Online Test Site Performance Results, in addition to visibly faster page-load, and works the same (the TWO Edited RETURN... Lines, at least!) on v.1.5.6.x Versions too! (And should there, by default, since v.1.0.0!)
Good Luck
Ernie
bigmax.ch/shop/
BUT IT DOES NOT SOLVE THE WHITE SPACE PROBLEM, in image title Names.
It just fixes 'em, and, like any fix, it's just one more time-consuming 'action', after all...
PS. For Testers, this:
'%20' could probably be renamed to an
'x' , or something, to, at least, make it a little more 'appealing' to read, in case..., but it's fully untested (yet), and just an idea
