Jump to content

Get price including taxes


jsmit2
 Share

Recommended Posts

Ah I found it myself. If you have the product element you need to set the employee (because the file executing it was not in the main module file a.k.a. seperate file.

 

the code:

$prod = new Product($product['id_product']);
$context->employee = "-1";
$price = $prod->getPrice(true);

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More