jherbaux Posted December 31, 2009 Share Posted December 31, 2009 Bonjour,Je suis dans le fichier blockcart.tpl ou je reçoit une information dite "customer" qui me donne un droit sur les membres.donc je fait mon test : {if $customer == 0} {displayWtPrice p="`$product.real_price`"} {else} {$prix_achat_ht|round:2} {/if} donc je vais apres dans mon fichier blockcart-json.tpl ou je répéte l'opération : {if $customer == 0} 'priceByLine': '{displayWtPrice|html_entity_decode:2:'UTF-8' p=$product.real_price}', {else} 'priceByLine': '{$prix_achat_ht|round:2}', {/if} (la variable $prix_achat_ht est issue d'un petit calcul avec des valeurs deja envoyé par défaut.)Le problème c'est que dans le dernier fichier... ça marche pas terrible...Je pense que c'est ma variable $customer qui n'est pas envoyer mais je ne suis pas sur...Et si c'est sa me dire comment l'envoyer?Merci de 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