kate66 Posted April 29 Share Posted April 29 (edited) 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 April 29 by kate66 (see edit history) 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