karopresta Posted April 2, 2017 Share Posted April 2, 2017 (edited) Bonjour, Quelqu'un pourrait-il m'aider pour la modification du code (je suppose dans product-list.tpl) pour ne pas afficher le prix d'un produit dans la liste des produits lorsque celui-ci est à zéro ? Je suis en 1.6.1.11 Merci pour votre aide qui me sera très précieuse. Je précise que je voudrais éviter de décocher à chaque fois "disponible à la vente" et "afficher le prix" (d'où le code à modifier pour que cela soit d'office). Edited April 2, 2017 by karopresta (see edit history) Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 2, 2017 Share Posted April 2, 2017 Bonjour, dans product-list.tpl remplacer ligne 66 et ligne 130 {if (!$PS_CATALOG_MODE && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} par {if (!$PS_CATALOG_MODE && ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order) || $product.price > 0))} Link to comment Share on other sites More sharing options...
karopresta Posted April 2, 2017 Author Share Posted April 2, 2017 Bonsoir, Merci beaucoup. J'essaie dès demain Merci encore. Link to comment Share on other sites More sharing options...
karopresta Posted April 3, 2017 Author Share Posted April 3, 2017 Bonjour, Malheureusement cela n'a rien changé. Bon, tant pis, je décocherais les "disponible à la vente" et "afficher le prix". Mais merci encore. Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 3, 2017 Share Posted April 3, 2017 le cache fut bien vidé après les changements ? Link to comment Share on other sites More sharing options...
karopresta Posted April 3, 2017 Author Share Posted April 3, 2017 Oui, oui. J'ai fait les modifications sur le fichier du Thème. Et, au cas où, sur le fichier du thème default. 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