Jump to content

Accessories Image change size - to small


Recommended Posts

Hi we are trying to change the size of our accessory image sizes on our product page.

 

1. Our accessories image is just a tad to small (SEE IMAGE)

 

2. I'm just wondering it uses the same image size as the NEW PRODUCTS on the right hand side (See image in red)

 

I would like to send you to our site but we have it in maintance mode and requires and IP address (if you want pm me and i can add you in)

 

See Image thanks

 

post-760587-0-28580600-1429825118_thumb.jpg

 

Link to comment
Share on other sites

Go to the product.tpl in your theme look for

 

<img class="lazyOwl" src="{$link->getImageLink($accessory.link_rewrite, $accessory.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{$accessory.legend|escape:'html':'UTF-8'}" width="{$homeSize.width}" height="{$homeSize.height}"/>

 

is like line 500

 

Look the option home_default that is what you need to change

 

Go to the Back Office Preference -> Images    you can use the options there for product or create a custom size if these the case remember regenerate your images

Link to comment
Share on other sites

  • 1 year later...

Go to the product.tpl

 

<img class="lazyOwl" src="{$link->getImageLink($accessory.link_rewrite, $accessory.id_image, 'home_default')|escape:'html':'UTF-8'}" alt="{$accessory.legend|escape:'html':'UTF-8'}" width="{$homeSize.width}" height="{$homeSize.height}"/>

 

i generated new img size called "custom1_default" i regenerated miniatures reset cache and modified this row

<img class="lazyOwl" src="{$link->getImageLink($accessory.link_rewrite, $accessory.id_image, 'custom1_default')|escape:'html':'UTF-8'}" alt="{$accessory.legend|escape:'html':'UTF-8'}" width="{$custom1Size.width}" height="{$custom1Size.height}"/>

everythingh should work but... the image is the correct custom1 size (165pxls) when i download it, but it's deformed to fit 250x250 (home standard size)

 

and even if i modify like this:

img class="lazyOwl" src="{$link->getImageLink($accessory.link_rewrite, $accessory.id_image, 'custom1_default')|escape:'html':'UTF-8'}" alt="{$accessory.legend|escape:'html':'UTF-8'}" width="165" height="165"/>

result is same... i see 250x250 pictures...

maybe somethingh somewhere in some CSS?

 

sure there is somethingh else that force my image size to 250pxls

 

can help me?

Edited by Ugo Fontana (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...