Jump to content

nouveau drapeau a grid view tpl


Recommended Posts

Bonjour,

 

j'ai ajouté ce code sur la page product-grid-view.tpl pour ajouter un nouveau drapeau pour une catégorie précise :

 

<ul class="tvproduct-flags tvproduct-sale-pack-wrapper">
                {foreach from=$product.flags item=flag}
               {if in_array(24,Product::getProductCategories($product->id|intval))}
                <li class="background-color:orange;text:black;">Test</li>
                {/if}
                {/foreach}
            </ul>
            

 

 

mais le drapeau apparaît que pour le produit une quantité à 0 ? tous les produits avec quantité au dessus de 0 n'affichent pas le label.

 

Comment faire ? MERCI

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