Vico_b Posted May 3, 2019 Posted May 3, 2019 Dans la page produit, J'ai cet appel pour les miniatures des accessoires: {include file='catalog/_partials/miniatures/product.tpl' product=$product_accessory} comment fais-je pour déterminer que la page est appelée pour un accessoire ? J'ai tenté {if produt=$product_accessory} mais ça a fait éxploser mon site haha Share this post Link to post Share on other sites More sharing options...
Vico_b Posted May 6, 2019 Posted May 6, 2019 (edited) J'ai trouvé la solution : Je passe la variable title au moment de l'insert {include file='catalog/_partials/miniatures/product.tpl' product=$product_accessory title='oui'} Puis Je la test dans mon miniatures/product.tpl {if $title!="oui"} {* ici le html pour afficher un produit *} {else} {* ici pour afficher les accessoires *} {/if} Edited May 6, 2019 by Vico_b (see edit history) Share this post Link to post 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