houin Posted November 25, 2014 Share Posted November 25, 2014 Bonjour j'ai trouvé ce code dans le forum et j'e l'ai installé dans productlist.tpl. {if $product.price >= $freeshipping_price} <h5>LIVRAISON GRATUITE!</h5> {/if} Ce code fonctionne très bien ,par contre j'aimerai l'adapter par rapport à un certain transporteur. Je m'explique, j' ai des produits directement téléchargeable en ligne,et sur ces produits je ne voudrais pas voir "Livraison gratuite" Je pense qu'il faux se servir de "ID" transporteur mais la je bug. Quelqu'un pour m'aider? Merci Link to comment Share on other sites More sharing options...
YopixelAE Posted November 25, 2014 Share Posted November 25, 2014 Bonjour, vous devriez plutôt utiliser la propriété article virtuel ou pas. {if !$product.virtual} Remplacez virtual par la bonne propriété. Link to comment Share on other sites More sharing options...
houin Posted November 25, 2014 Author Share Posted November 25, 2014 Bonjour, vous devriez plutôt utiliser la propriété article virtuel ou pas. {if !$product.virtual} Remplacez virtual par la bonne propriété. Bonsoir , pouvez vous m'expliquer la "propriété" la je ne vous suis pas . J'ai créer un transporteur "en ligne" pour ces produits virtuel. Link to comment Share on other sites More sharing options...
prestasafe Posted November 25, 2014 Share Posted November 25, 2014 Comme a dit yopixel, Il faudrait adapter votre code comme cela {if $product.price >= $freeshipping_price && !$product.virtual} <h5>LIVRAISON GRATUITE!</h5> {/if} La ca devrait etre bon. Link to comment Share on other sites More sharing options...
houin Posted November 25, 2014 Author Share Posted November 25, 2014 Comme a dit yopixel, Il faudrait adapter votre code comme cela {if $product.price >= $freeshipping_price && !$product.virtual} <h5>LIVRAISON GRATUITE!</h5> {/if} La ca devrait etre bon. Merci cela fonctionne .Super!!!! Link to comment Share on other sites More sharing options...
houin Posted November 25, 2014 Author Share Posted November 25, 2014 Comme a dit yopixel, Il faudrait adapter votre code comme cela {if $product.price >= $freeshipping_price && !$product.virtual} <h5>LIVRAISON GRATUITE!</h5> {/if} La ca devrait etre bon. Votre code fonctionne très bien sur productlist.tpl. Par contre sur product.tpl le code est : {if $productPrice >= $freeshipping_price } <h5>LIVRAISON GRATUITE!</h5> {/if} Si je rajoute "&& !$product.virtual" dans le code il y à un bug. Je pense que la variable est différente. Une idée?? Merci Link to comment Share on other sites More sharing options...
YopixelAE Posted November 26, 2014 Share Posted November 26, 2014 (edited) $product->is_virtual "->" et non "." car ici product est un object, pas un array. Edited November 26, 2014 by Yopixel (see edit history) Link to comment Share on other sites More sharing options...
houin Posted November 26, 2014 Author Share Posted November 26, 2014 $product->is_virtual "->" et non "." car ici product est un object, pas un array. J'ai fais ce code mais cela ne fonctionne pas ,il y a toujours "livraison gratuite" pour les produits virtuel {if $productPrice >= $freeshipping_price} {$product->is_virtual} <h5>LIVRAISON GRATUITE!</h5> {/if} Une idée pour le code complet? Merci Link to comment Share on other sites More sharing options...
houin Posted November 26, 2014 Author Share Posted November 26, 2014 J'ai fais ce code mais cela ne fonctionne pas ,il y a toujours "livraison gratuite" pour les produits virtuel {if $productPrice >= $freeshipping_price} {$product->is_virtual} <h5>LIVRAISON GRATUITE!</h5> {/if} Une idée pour le code complet? Merci Autant pour moi ce code marche très bien .Merci beaucoup!!!! {if $productPrice >= $freeshipping_price && !$product->is_virtual} <h5>LIVRAISON GRATUITE!</h5> {/if} 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