News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Allmost there

Started by nickson, December 20, 2012, 20:57:38 PM

Previous topic - Next topic

nickson

Well, It seems like version 2.0.16 makes the shop better and better. All I wanted was the tax to work correct on discount coupons.
That seems sorted out now.

Well allmost that is. The thing is when I set the tax to Vat tax per product, witch is needed for the coupon discount to work correct for me, additional costs (for product options) are now displayed without tax.
That is really not what I want. Because on my site prices are all including taxes.

What to do?

Milbo

oh, interesting. Tomorrow then. I think I am just missing the vat tax for the customs. Strange that no one saw that before :-)
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

Please edit calculationh.php,

replace the function around line 1090 with this

function calculateCustomPriceWithTax($price, $override_id=0) {

$taxRules = $this->gatherEffectingRulesForProductPrice('Tax', $override_id);
$vattaxRules = $this->gatherEffectingRulesForProductPrice('VatTax', $override_id);
$rules = array_merge($taxRules,$vattaxRules);
if(!empty($rules)){
$price = $this->executeCalculation($rules, $price, true);
}

$price = $this->roundInternal($price);

return $price;
}
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

nickson

Works like a charm! Thanks a lot!

Is this going to be inserted in any next release?
Then I wont have to add it to my list of adjustments on any update ;)

Thanks again!

Milbo

Will be added, I think even with vm config setting.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

Is now in the new uploaded version. We did not fix really bugs, so same version number.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/