Vat trouble in 3.7.5 shop

Vat trouble in 3.7.5 shop

Friday 25 August 2006 8:15:37 am - 2 replies

Author Message

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

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.