Jump to content

Comment afficher le prix TTC ?


Recommended Posts

Bonjour,

 

Dans un tpl ? lequel ?

 

Le product.price de la base de données est effectivement hors taxe, il faut que les données transmises au tpl contiennent bien le prix ttc. Un var_dump du tableau transmis au tpl donnera des indications.

Link to comment
Share on other sites

Bonjour,

 

En faite, j'appelle la variable dans header.tpl.

 

Pour ce faire, je suis allé dans le FrontController et ai rajouté ces quelques lignes dans "global $cart" :

self::$smarty->assign('produits', $products);

self::$smarty->display(_PS_THEME_DIR_.'header.tpl');

 

Après, aucun problème pour récupérer les infos des produits dans le tpl. Seulement, je ne vois pas comment les mettre en TTC.

Peux-tu me dire rapidement comment effectuer un var_dump du tableau ?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...