Hi,
I'm running a multistore with OC 2.0.3.1. I have a default (no_image) in my image folder, so when a product has no picture this default image comes in place. Is there a way to set this image for every store so I can have a different default picture per store. Now all the stores have the same default. I'd like to give each store its own default.
You can try the following, untested!
Add to catalog/model/tool/image.php these lines directly under the resize method:
Don't forget to add the images like: no_image0.php, no_image1.png, etc.
Or use placeholder.png in a similar way.
Hope it helps...
Add to catalog/model/tool/image.php these lines directly under the resize method:
Code: Select all
if($filename === 'no_image.png'){
$filename = 'no_image'.$this->config->get('config_store_id').'.png';
}
Or use placeholder.png in a similar way.
Hope it helps...
Attn: I no longer provide OpenCart extensions, nor future support - this includes forum posts.
Reason: OpenCart version 3+
Thanks!
I can confirm this method still works in Opencart 3.
inframes.com Website Design with Opencart, Wordpress, Lucee and bespoke application design and development
Who is online
Users browsing this forum: No registered users and 132 guests