Manu-41 Posted 4 hours ago Share Posted 4 hours ago 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 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted 4 hours ago Share Posted 4 hours ago en php ou smarty ? Link to comment Share on other sites More sharing options...
Manu-41 Posted 4 hours ago Author Share Posted 4 hours ago Bonjour, en smarty Link to comment Share on other sites More sharing options...
Eolia Posted 4 hours ago Share Posted 4 hours ago Regardez le fonctionnement de l'opérateur modulo (%) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted 4 hours ago Share Posted 4 hours ago (edited) {if $mavariable is even} Edited 4 hours ago by Prestashop Addict (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted 2 hours ago Share Posted 2 hours ago {if $product->id%2} 1 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