VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: abzamon on August 24, 2012, 10:37:24 AM

Title: printing discount without taxes in the cart
Post by: abzamon on August 24, 2012, 10:37:24 AM
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
Title: Re: printing discount without taxes in the cart
Post by: Nibiru on August 25, 2012, 03:22:38 AM
Check administrator\components\com_virtuemart\helpers\calculationh.php

Line 435
public function getCheckoutPrices


There are the calculations. So start there.
Title: Re: printing discount without taxes in the cart
Post by: abzamon on August 25, 2012, 11:37:40 AM
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.