It would be great to add VAT value (%) in configuration page, show it in product page and also possibility to show total VAT in checkout page.

Comments

alex dicianu’s picture

Status: Active » Postponed (maintainer needs more info)

Yes it would :)
The problem with VAT, and I'm by any means not an expert on this, is that it's different based on the country the purchase is made in http://en.wikipedia.org/wiki/Value_added_tax#Tax_rates. So by adding the VAT, a geolocation must be done in order to apply the right VAT (usualy the credit card processors use geolocation, I think there is a legislation somewhere indicating this).
So I'm afraid that, by implementing this, this module would no longer be "Basic Cart" but more complicated cart.
A simpler and faster solution would be to implement payment methods like paypal, google checkout, etc. This way we let them handle the VAT tax.

ctrnz’s picture

I was thinking about VAT as static single value in config page so you can show it for informative purposes.

That's for sure makes Basic cart more complicated but this options might be optional for those who do not need it.

ctrnz’s picture

I did some easy workaround regarding VAT value.
Added Computed field to content type which will take care of VAT value.
PHP section looks like this (i know it's not very pretty)
$entity_field[0]['value'] = $entity->price[LANGUAGE_NONE][0]['value']*0.22;

0.22 should be replaced with VAT value.

After this all you should do is theming.

dtrdewaele’s picture

I'll try to implement this.

alex dicianu’s picture

Status: Postponed (maintainer needs more info) » Fixed

Fixed on the 7.x-2.0-beta2 release.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.