VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: PeterG on May 21, 2014, 18:06:02 PM

Title: Calculate VAT in cart based on a dropdown to choose from
Post by: PeterG on May 21, 2014, 18:06:02 PM
Hello,

I'm looking for a solution to handle VAT in my cart. I live in Belgium and I must give the buyer the oppotunity to select his VAT for his order.

Vat is calculated article based

I must choose from 0% VAT (medecontractant) 6% (renovation) and 21% (nieuwbouw)

Anyone who can point me into the wright direction how to handle this issue ?

I don't know of any plugin, but I'like to know where the cart is recalculatedand where the tax rules are stored (is this a SESSION ?)

Thnx for the help.

Peter
Title: Re: Calculate VAT in cart based on a dropdown to choose from
Post by: GJC Web Design on May 21, 2014, 22:27:02 PM
the rules that are applied and therefore the product price are calculated in the monster administrator/components/com_virtuemart/helpers/calculationh.php 1650 lines long

basically   public function getProductPrices()  &  public function calculateCostprice()

I doubt you could configure a "voluntary" choice in VM - so would need to be coded