VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: vmfyelloq19 on July 03, 2020, 13:44:32 PM

Title: Find out if current customer pays VAT
Post by: vmfyelloq19 on July 03, 2020, 13:44:32 PM
Hi folks,

I have an internatioanl shop, set up without fixed VAT rates for products but with VAT product categories and rules to allow international customers to shop w/o VAT as described in the documentation.

How can I find out (in template and plugin) whether the customers pays VAT or not?

TIA!
Title: Re: Find out if current customer pays VAT
Post by: GJC Web Design on July 03, 2020, 15:59:28 PM
not enough information .. HOW are u filtering who pays VAT?

there are different possibilities
Title: Re: Find out if current customer pays VAT
Post by: vmfyelloq19 on July 03, 2020, 16:11:25 PM
Hi GJC Web Design

Tax & Calculation Rule
-> Rule:
Calculation Rule name: 19% VAT
Type of Arithmetic Operation: vat tax per product
Math Operation +%
Value 19
Currency EUR
Product Category tax_19
Shopper Groups: Default Shopper Group
Country: [list of countries]

And another one for 7% VAT

For the products:
- Product Categories contains "tax_19"
- Apply default rules (says: "Tax Affecting: 19% VAT" in admin UI)
- Apply generic rules

Product Categories:
tax_19: only name set, all defaults, not publish (as it's not supposed to be visible by customer)

Got this setup as the recommended way from the VM documentation somewhere (cannot find the link right now)

TIA.[/list]
Title: Re: Find out if current customer pays VAT
Post by: GJC Web Design on July 03, 2020, 17:03:08 PM
and how does this let "international" customers ( I assume outside the EU) not be charged VAT?

where are u detecting the country and moving them into a non VAT shopper group?

or are u only applying these rules to EU countries?  or?
Title: Re: Find out if current customer pays VAT
Post by: pinochico on July 03, 2020, 17:30:53 PM
Pls use OPC from Rupostel with MOSS plugin. That's all. Easy setup and install. Don't think already done

You can try there - www.svicky.biz and select Slovakia country and as company with valid VAT ID - all product are without VAT now in cart and in eshop.

Title: Re: Find out if current customer pays VAT
Post by: vmfyelloq19 on July 03, 2020, 17:53:04 PM
Hello GJC Web Design,

> or are u only applying these rules to EU countries?  or?

>> Tax & Calculation Rule
>> -> Rule:
[...]
>> Shopper Groups: Default Shopper Group
>> Country: [list of countries]

The [list of countries] contains all EU contries.

So as far a I understand rules, this rule is applied to any customer with the list of countries, while any customer not within the list of countries does not get the rule applied.

> where are u detecting the country and moving them into a non VAT shopper group?
The country is not "detected." The customer selects the country when ordering.

Thanks.



[/list][/list]
Title: Re: Find out if current customer pays VAT
Post by: vmfyelloq19 on July 03, 2020, 17:54:35 PM
Hello pinochico,

how would installing theses plugins allow me to find out wether a customer is going to pay VAT in my template and own plugins?

TIA!
Title: Re: Find out if current customer pays VAT
Post by: pinochico on July 03, 2020, 18:06:04 PM
How? What is this a question?

by installing and setup sure only :)  (I don't understand why do you ask, before read info about these plugins...)

Maybe you can read more info about MOSS plugin there - https://www.rupostel.com/one-page-checkout-component/features/eu-vat-and-mini-one-stop-shop-tax-system-for-virtuemart-moss
Title: Re: Find out if current customer pays VAT
Post by: GJC Web Design on July 03, 2020, 18:48:00 PM
so you have the Vat rules only applying to EU countries

so to know if the client is paying tax ( this depends WHERE your trying to find this out ) see if the shoppers country id is in the EU country array
or see if the tax rule is applied
or if the product price tax is filled ...
so any of the above but i think a bit more explanation would help

the above are all in the $cart
Title: Re: Find out if current customer pays VAT
Post by: jjk on July 03, 2020, 22:19:03 PM
Quote from: vmfyelloq19 on July 03, 2020, 17:53:04 PM
The country is not "detected." The customer selects the country when ordering.

Since you wrote that you have VAT tax rules for 19% and 7%, I assume you are located in Germany. If you are selling physical goods to consumers, VM normally would be configured to display the final price including VAT unless the customer selects a non-EU country, in which case the VAT will be subtracted in the cart view. In case an already registered/previous non-EU customer is logged into the frontend, VM would show the net price (without VAT), both in the product details view and in the cart view.

Do you need something different?
Title: Re: Find out if current customer pays VAT
Post by: pinochico on July 03, 2020, 23:28:25 PM
QuoteIn case an already registered/previous non-EU customer is logged into the frontend, VM would show the net price (without VAT), both in the product details view and in the cart view.

With MOSS plugin do you don't need register, only select country in cart. Then all prices changed by MOSS plugin (with or without price) automatically and show right price in cart or category or product detail.
And of course, you can setup EU VAT ID user filed and setup in cart.