Jump to content

Afficher prix d'un produit


Recommended Posts

Salut à tous,

Je voudrais savoir si quelqu'un connaît une méthode permettant d'afficher le prix TTC d'un produit.
En effet j'ai implémenter le code suivant dans mon frontcontroller

 

"

public static function getProductPrice($id){

$product = new Product ($id,Context::getContext()->language->id);
return $product->price;

}

"

 

Je peux l'appeler avec " {FrontController::getProductPrice(8)} "

Cela fonctionne bien, je peux appeler le nom du produit, son ID etc, seulement quand je met le prix comme dans la configuration actuelle, c'est le prix HT que j'obtiens. J'aimerai donc savoir comment faire pour obtenir le prix TTC. Merci d'avance =) 

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...