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

Tax on a commission fee

Started by vaistik, September 14, 2012, 10:37:16 AM

Previous topic - Next topic

vaistik

Greetings!

I'm trying to set up an e-shop for an art gallery which works on commissions. The tax I want to apply must be on the commission and not on the product price.

For example:

product price: 30
+10% commission: 33
+23% VAT on that commission: 30 + 3 + 0.69 = 33.69

Is there a way to set up taxation rules to achieve that or should I go hard on the classes and calculation scripts?

Cheers!

vaistik

So, nothing on that...

I managed to have the desired result by playing around in:
/administrator/components/com_virtuemart/helpers/calculationh.php

Not too happy about it but if anyone wants something similar he/she should look in that. Function getProductPrices() at line 223 returns the $prices array.

I added a value to the $prices[] array to calculate the amount to be taxed then changed the $prices['salesPrice'] with that. Seems to be working fine, although the sales price in the backend appears without the tax.