Jump to content

Display a specefic product image in template


Recommended Posts

Hi Everybody, 

I started my first theming experience in prestashop. 

I would like to display a specific product image.

Today I have something like thaht in my template: 

<img src="{$product.cover.bySize.large_default.url}" alt="{$product.cover.legend}" title="{$product.cover.legend}" style="width:100%;" itemprop="image">

But I would like to always display only the second image product and put the url in the src attribute. 

How I can access to this ? I didn't find a doc about the $product object yet.  

Link to comment
Share on other sites

  • 2 weeks later...

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...