Manu-41 Posted Saturday at 10:50 AM Share Posted Saturday at 10:50 AM (edited) Bonjour, je cherche à avoir une condition d'affichage sur la page produit selon si l'id est pairs ou impairs. Je ne trouve pas d'infos sur le forum ;-( Merci pour votre aide Edited yesterday at 08:32 AM by Manu-41 merci (see edit history) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted Saturday at 11:07 AM Share Posted Saturday at 11:07 AM en php ou smarty ? Link to comment Share on other sites More sharing options...
Manu-41 Posted Saturday at 11:11 AM Author Share Posted Saturday at 11:11 AM Bonjour, en smarty Link to comment Share on other sites More sharing options...
Eolia Posted Saturday at 11:25 AM Share Posted Saturday at 11:25 AM Regardez le fonctionnement de l'opérateur modulo (%) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted Saturday at 11:26 AM Share Posted Saturday at 11:26 AM (edited) {if $mavariable is even} Edited Saturday at 11:27 AM by Prestashop Addict (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted Saturday at 12:57 PM Share Posted Saturday at 12:57 PM {if $product->id%2} 2 Link to comment Share on other sites More sharing options...
Manu-41 Posted yesterday at 08:32 AM Author Share Posted yesterday at 08:32 AM Super, merci ! 19 hours ago, doekia said: {if $product->id%2} 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