VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: thefbi on April 13, 2019, 13:06:08 PM

Title: VAT for diferents country and price layout
Post by: thefbi on April 13, 2019, 13:06:08 PM
Hello,

i use VM 3.4.3 and Joomla 3.9.5.

I use VAT taxe for my store country, Switzerland, 7.7% and for others country, 0%.
The problem is when i am in the shop, before i log in the cart, the price are displayed without taxe. I want the price with taxe (7.7%) by default.
I can fond the parameter to do that.

Url of site (under construction) : https://fwqguzge.preview.infomaniak.website/fr/

Title: Re: VAT for diferents country and price layout
Post by: jenkinhill on April 13, 2019, 13:48:36 PM
See http://forum.virtuemart.net/index.php?topic=138233.msg484798#msg484798
Title: Re: VAT for diferents country and price layout
Post by: thefbi on April 13, 2019, 14:18:05 PM
Hello,
thank you, i have buy the vm localise, publish the plugin, install the database of component (it localise me in Switzerland), but it still dosent apply tax by default in the shop...

I have try to add the "anonymous" group to the 7.7% tax (i dont have any Guets group), but it dosent work.

The price change ONLY if i add a product in cart, but not before.
Title: Re: VAT for diferents country and price layout
Post by: thefbi on April 13, 2019, 14:47:08 PM
Is there a parameter to put ?
I dont understund this field ??? (see screenshot).
Title: Re: VAT for diferents country and price layout
Post by: jenkinhill on April 13, 2019, 15:26:24 PM
I have never used this plugin, it is supported by iStraxx (Milbo) by ticket  - https://extensions.virtuemart.net/ticket

Although someone else here may have used it and be able to advise.
Title: Re: VAT for diferents country and price layout
Post by: jjk on April 15, 2019, 17:33:22 PM
If I understand you correctly, you should be able to configure your 7.7% VAT without an additional plugin.
1. In your 7,7% TVA rule setting select 'VAT tax per product', select only 'Switzerland' in the Country field and leave 'Shopper Groups' and 'States' empty.
2. Disable your 0% TVA rule.
3. In the 'Configuration' > 'Pricing' tab, select only 'Final Sales Price'.
4. Select the 7,7% TVA rule in each Product.

Now the default price incl. TVA should be displayed and the Tax should be subtracted in the cart view if a customer selects a different country.
Title: Re: VAT for diferents country and price layout
Post by: thefbi on April 15, 2019, 18:05:02 PM
Hello,
YES, it work like this, thank you !

If i force VAT 7.7% in the product, it work. But for now, all the products have been entered with "default rule", so it dosent work.

My question is, is there a way to modify this rule for all the products, with database for example, or have i to do manually product by product... ?
Title: Re: VAT for diferents country and price layout
Post by: thefbi on April 15, 2019, 18:46:07 PM
It is OK, i have modified manually the prices :)
Title: Re: VAT for diferents country and price layout
Post by: Studio 42 on April 16, 2019, 00:20:25 AM
https://shop.st42.fr/en/products/vm-be-pro-batch-product-edit.htm can mass change tax
Title: Re: VAT for diferents country and price layout
Post by: thefbi on April 16, 2019, 06:55:44 AM
OK thank you for the link. (je le garde de côté au cas ou).

Regards
Title: Re: VAT for diferents country and price layout
Post by: Milbo on April 17, 2019, 23:34:39 PM
Quote from: thefbi on April 15, 2019, 18:05:02 PM
Hello,
YES, it work like this, thank you !

If i force VAT 7.7% in the product, it work. But for now, all the products have been entered with "default rule", so it dosent work.

It is absolutly correct to let them on "default rule". The whole system works so, that the localiser sets the country in the cart. The cart selects then the correct tax which fits to the userdata. So you just need to set your 7.7% tax to swizz and thats it. The localiser automatically sets the country, that is the trick. Really do not overwrite the tax system by using the fixed tax setup.
Title: Re: VAT for diferents country and price layout
Post by: thefbi on April 17, 2019, 23:50:03 PM
It dosent work with the localiser. The ticket system on VM dosent work too. I have posted a ticket support last monday, no response...

As you mention, if i undurstand, it work ONLY when you are in the cart. I dosent work if you are just in the frontend and check the products. It will be work here, just when you come in the shop, the system must be localise you and apply the good product tax.

Or i have another problem, thats why i have open a ticket...

Regards
Title: Re: VAT for diferents country and price layout
Post by: Milbo on April 24, 2019, 18:25:09 PM
I think the main problem arises here with your used vm version 3.4.3.10020. I worked there in the cart on the defaults of userfields. So the localiser in the store does not work, because the files in the store are usually just for the official releases like 3.4.2. So in your case the solution is a bit special.

First you should update to the last RC http://dev.virtuemart.net/attachments/1160/com_virtuemart.3.4.5.10045_package_or_extract.zip

It is our current release candidate and so long only 2 really minor bugs got fixed. All versions of vm3.4.3 have known bugs.

Why does the localiser does not work? The reason is the new feature of default values in userfields. They are now really actually into the address array (cart->BT) of the cart and so the localiser wont override the set data. It even does not set it, when there is just an array. But the new core has always an array set for the BT data.