Jump to content

I want an another image than the one is the cover image product


Recommended Posts

I have a issue with a prestahop module, it's Advanced Top Menu. I a have a submenu with my products and it show the image cover of the product. But, i want to show a another image which is a second image of the product not the cover image.

I sought where can i do that and I find the file here : /themes/at_manor/templates/catalog/_partials/miniatures/product_menu.tpl

A part of the file product_menu.tpl

 

<a href="{$product.url}" class="thumbnail product-thumbnail">
                    <img
                        class="img-fluid"
                        src = " 
 {$product.cover.bySize.large_default.url}"
                        alt = "{if 
!empty($product.cover.legend)}{$product.cover.legend}{else} 
 {$product.name|truncate:30:'...'}{/if}"
                        data-full-size-image- 
 url = "{$product.cover.large.url}"
                    >  
                    {if isset($cfg_product_one_img) 
&& $cfg_product_one_img}
                        <span class="product- 
 additional" data-idproduct="{$product.id_product}"></span>
                    {/if}
                </a>

 

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