ExpressionEngine Plug-in: Add VAT Jan 08. 095
I’ve just written a new ExpressionEngine plug-in called ‘Add VAT‘. This plug-in takes any numeric value and returns the value plus VAT. You also have to specify the VAT rate obviously.
Typical usage is as follows:
{exp:np_add_vat price="120" rate="15"}
I’m using the plug-in on a website I’m developing where I need to be able to display prices inclusive and exclusive of VAT. Currently the Simple Commerce module does not provide a facility to specify VAT or taxes.
Download: pi.np_add_vat.php.zip
If you have any further ideas as to how the plug-in could be developed do let me know. :)
If it were me, I’d be tempted to convert it into an extension so that you could control the VAT rate from one central setting, rather than having to update it in multiple places whenever it changes. You could still leave the rate parameter in the tag as an override.
Also, I guess the natural way to extend the plugin would be to make it possible to specify and use VAT rates for other countries, maybe by specifying an valid ISO two-letter country code in the tag:
{exp:np_add_vat price=â€120†country=â€nlâ€}