Jump to content
ajnglagla

how to set 2 different product image size?

Recommended Posts

how can i set 2 different product image size in same page?

 

in the site will be 2 different image size, A (100x100) and B(200x100)

and i want to chose it from product image page. any idea?

 

example.png

Edited by ajnglagla (see edit history)

Share this post


Link to post
Share on other sites

Just create new type here: BO->Preferences->Images (for example: "my_custom_image_type"). After that you will be able to use images with this type in your tpl files:

<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'my_custom_image_type')}" ...

 

Regards

  • Like 1

Share this post


Link to post
Share on other sites

is it possible to choose different image size in (back office) product page for every product?

 

maximum 2 different image size

Edited by ajnglagla (see edit history)

Share this post


Link to post
Share on other sites

is it possible to add a small button in product page to use that different image size?

 

just like;

 

example2.png

Share this post


Link to post
Share on other sites

thanks @Alexander,

 

I hope i can find the solution :/

if i find anyone who can help me, i will be very happy

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More