Ray UK Posted January 8 Share Posted January 8 (edited) Hi, Im trying to use a different image for the brand image on the brands list page. In the _miniatures/brands.tpl there is this <img src="{$brand.image}" Now I have created another image im images/image settings named "brands_default" as there isnt a image type specifically for the brands The reason for this is because my brand images are 2:1 ratio and not 1:1 and therefore the default settings create a square image and leave a white border at top & bottom. ( I know I can change the default settings but they are used by products etc which are 1:1 ratio) Ive checked in _partials/product-details.tpl and the smarty code in there is different so cant use that {$manufacturer_image_url} How can I use my new image named "brands_default" in place of the default image. Thanks Edited January 8 by MerseyRay (see edit history) Link to comment Share on other sites More sharing options...
endriu107 Posted January 8 Share Posted January 8 You can try like this: {$urls.img_manu_url}{$brand.id_manufacturer}-medium_default.jpg where medium_default is image size name. 1 Link to comment Share on other sites More sharing options...
Ray UK Posted January 8 Author Share Posted January 8 10 minutes ago, endriu107 said: You can try like this: {$urls.img_manu_url}{$brand.id_manufacturer}-medium_default.jpg where medium_default i image size name. brilliant, thats done the job. I used {$urls.img_manu_url}{$brand.id_manufacturer}-brands_default.jpg Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now