News:

Support the VirtueMart project and become a member

Main Menu

printing discount without taxes in the cart

Started by abzamon, August 24, 2012, 10:37:24 AM

Previous topic - Next topic

abzamon

Hello,
I've got a discount on a price without taxes in the cart I'd like to print this discount without taxes (it's a b2b site).
I managed to print the discount with taxes included, I made a few var_dump but cant find this information.
Can someone explain me where to find it or how to calculate it?

Thanx for your help

Nibiru

Check administrator\components\com_virtuemart\helpers\calculationh.php

Line 435
public function getCheckoutPrices


There are the calculations. So start there.

abzamon

thank you for your answer, I'll check it.

I found a way to do it, by setting my taxe rule on the global amount and not on the product. Now my discount appears without taxes.
This means that if you want to have a discount without taxes, you cant have taxes set on the products, so you cant have a product price with taxes. dont know if it's a bug or just me not understanding taxes.