duniamodem Posted October 27, 2009 Share Posted October 27, 2009 allo..i need some advises, how to resize home feature images display to 100x100 pixels on my store, i try editing global.css but doesnt make change at all.. screenshot attachedthx.. Link to comment Share on other sites More sharing options...
DG.Craft Posted October 27, 2009 Share Posted October 27, 2009 hi duniamodem,you have to change "modules/homefeatured/homefeatured.tpl" at ligne 16, by changing 'home' by 'medium' after "$product.id_image,"before getImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.legend|escape:htmlall:'UTF-8'}" /> after getImageLink($product.link_rewrite, $product.id_image, 'medium')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.legend|escape:htmlall:'UTF-8'}" /> the image will take by default 80px/80px, you can also replace the height and width by numerical value. before height="{$homeSize.height}" width="{$homeSize.width}" after height="80" width="80" GL Link to comment Share on other sites More sharing options...
duniamodem Posted October 27, 2009 Author Share Posted October 27, 2009 hi duniamodem,you have to change "modules/homefeatured/homefeatured.tpl" at ligne 16, by changing 'home' by 'medium' after "$product.id_image,"beforegetImageLink($product.link_rewrite, $product.id_image, 'home')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.legend|escape:htmlall:'UTF-8'}" /> after getImageLink($product.link_rewrite, $product.id_image, 'medium')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.legend|escape:htmlall:'UTF-8'}" /> the image will take by default 80px/80px, you can also replace the height and width by numerical value. before height="{$homeSize.height}" width="{$homeSize.width}" after height="80" width="80" GL OK thanxs bro.. i'll try now.. ..edited.. SOLVED bro.. thx .. :shakehand: Link to comment Share on other sites More sharing options...
kenza750 Posted June 10, 2011 Share Posted June 10, 2011 after getImageLink($product.link_rewrite, $product.id_image, 'medium')}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.legend|escape:htmlall:'UTF-8'}" /> the image will take by default 80px/80px, you can also replace the height and width by numerical value. before height="{$homeSize.height}" width="{$homeSize.width}" after height="80" width="80" GL Sorry for the bump, but is it also possible to get the height/width of the .jpg image automatically? For example, my 1-810-home-jpg file has dimension of: 120(w)x150(h). Some other pictures have for example 150(w)x120(h). If I let the code take the dimensions of 'home', then it is static and dependent of the dimensions defined in BO. 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