coson54 Posted January 12, 2010 Share Posted January 12, 2010 Bonjour et bonne année à tous,Je cherche le moyen d'écrire "Sur devis" si le tarif du produit est égale à 0€.Est ce que quelqu'un l'aurait déjà fait? Ou me dire quelle fichier il faudrait que je modifie?Merci d'avancecoson54 Link to comment Share on other sites More sharing options...
Grafics Posted January 12, 2010 Share Posted January 12, 2010 Perso, j'ai modifié les fichiers que je souhaitais dans les templates comme product.tplAu niveau de "our_price_display", j'ai ajouté une condition : {if ($product->price == 0)} Ton texte ici {else}{convertPrice price=$product->getPrice(true, NULL, 2)} {if $product->getPrice(true, NULL, 2) != $product->getPrice(false, NULL, 2)}{l s='incl. tax'}{/if} {/if} Link to comment Share on other sites More sharing options...
coson54 Posted January 12, 2010 Author Share Posted January 12, 2010 OK merci beaucoup ça marche nickel !! Link to comment Share on other sites More sharing options...
jeckyl Posted January 12, 2010 Share Posted January 12, 2010 Salut,J'ai déjà donné une solution pour faire cela.Cela permet d'utiliser un formulaire de contact qui fait référence au produit ce qui facilite le dialogue. Link to comment Share on other sites More sharing options...
muaddib78 Posted February 16, 2010 Share Posted February 16, 2010 Perso, j'ai modifié les fichiers que je souhaitais dans les templates comme product.tplAu niveau de "our_price_display", j'ai ajouté une condition : {if ($product->price == 0)} Ton texte ici {else}{convertPrice price=$product->getPrice(true, NULL, 2)} {if $product->getPrice(true, NULL, 2) != $product->getPrice(false, NULL, 2)}{l s='incl. tax'}{/if} {/if} Bonjour,Ce code fonctionne bien pour afficher "Ton texte ici" à la place du tarif TTC. Dans mon cas, j'affiche aussi le tarif HT (collectivités et entreprises) et je souahiterais qu'il disparaisse complètement à l'affichage lorsque le tarif est à 0. Que doit on ajouter comme condition? (je suis nul en dev...)Peut on aussi le mettre en place sur product-list.tpl pour afficher sur devis quand tarif à 0 ?si oui, quel modif à faire?Merci pour votre aide 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