Forums / Setup & design / Vat trouble in 3.7.5 shop

Vat trouble in 3.7.5 shop

Author Message

Petter Arneson

Friday 25 August 2006 8:15:37 am

Hi!
I have added two Vat types, one for books wich are 0% and a standard of 25%.
If I shop a book product with 0% Vat it still shows 25% Vat in orderview, and 25% is added to the price. Is this a bug?

www.vzt.no

Claudia Kosny

Sunday 27 August 2006 11:51:11 pm

Hi Petter

As far as I know that automatic Vat charging based n the product category is not available in EZ 3.7.x. Thus you have to assign the correct Vat type to each product when creating/editing it.
So make sure that your book product does have the Vat for books assigned. You can see that at the price attribute of your product object. If it looks fine in the admin view, check what your templates are seeing (although it should be the same).
To do this you can inspect the ezprice attribute of your object using the 'attribute' operator. The ezprice attribute has a property selected_vat_type whic tells you the name and the percentage of the applied vat.

So add something like this to your product template:
{$node.object.data_map.<the identifier of your price attribute here>.selected_vat_type|attribute('show', 2)}

Greetings from Luxembourg

Claudia

Petter Arneson

Tuesday 29 August 2006 9:45:43 am

Thanks Claudia!

My bad! Since there is no vat rules in 3.7.5, as you say, I added some code in kernel\classes\ezbasket. In Norway books are products that should not have vat for standard customers, but my shop also have a usergroup for resellers, and they have to pay vat. There was an error in my php code that messed it all up and added vat for standard users as well.

www.vzt.no