lucju04 Posted May 22, 2019 Share Posted May 22, 2019 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 More sharing options...
Rolige Posted May 23, 2019 Share Posted May 23, 2019 Hello: With {debug} sentence anywhere inside your TPL you will have a popup screen with all the vars inside smarty. There you can find anything $product contains. Regards Link to comment Share on other sites More sharing options...
lucju04 Posted June 3, 2019 Author Share Posted June 3, 2019 Ho, my answer didn't work last time... This is exactly what I was looking for, special thanks for you ;) 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