Jump to content

How can I get the id of image in first position (productpage)


Nicolas Patrouillaul

Recommended Posts

Hi i need help. 

 

I'm looking for the tag or ID to call the image in first "position in my product page ? 

here is the coverid_image code source, but i would like the image in first position which is not in cover image. 

 

<a class="jqzoom" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" rel="gal1" href="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'thickbox_default')|escape:'html':'UTF-8'}" itemprop="url">
                                <img class="img-responsive retina" itemprop="image" src="{$link->getImageLink($product->link_rewrite, $cover.id_image, 'large_default2x')|escape:'html':'UTF-8'}" title="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}" alt="{if !empty($cover.legend)}{$cover.legend|escape:'html':'UTF-8'}{else}{$product->name|escape:'html':'UTF-8'}{/if}"/>
                              
                            </a>

 

 

Thanks ! 

 

Nic
 

 

 

Edited by Nicolas Patrouillaul (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...