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

Getting standard VATtax

Started by moped, February 26, 2016, 09:32:00 AM

Previous topic - Next topic

moped

Hello together,

I'm looking for the function, that grabs the standard VAT for a product, if nothing (no VAT rule, use standard) is selcted.
If you create a new product with no rules, the value in virtuemart_product_prices -> product_tax_id is "0".
But there is no foreign key "0" in virtuemart_calcs. So where or how is the standard VAT to calculate selected?
I try to get order informations about text and value of the used tax and don't find it for a customized xml export.
Hope you can help me.

moped

Edit: I forgot, using VM 2.6.22


moped

Thank you for this link, but I still do not see how to get the values, if nothing is selected in Product -> Taxes & Calculation Rules.
Where or how is stored the standard value (product_tax_id = 0)? Or did I miss something in the linked page?

moped

studio42

If this is for a personal use, why you simply do not add it yourself when nothing is set?
Standard rules can depend on category,manufacturer,shoppergroups using VM selected price. So it's hard to know and export directly the tax applied(and discount) or if you have always same rules, then provide a way to apply a default tax name+rate
free virtuemart tools : shop.st42.fr

moped

Ok, thank you for this information.
So there is no "easy" way to get these values and it's stored nowhere like in config or something.
I thought I can find a way to generate export files for different countries.

moped