VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: lanthan on June 21, 2014, 13:59:02 PM

Title: Show price with VAT by default but without VAT in cart for export deliveries
Post by: lanthan on June 21, 2014, 13:59:02 PM
Hi,
I have searched the forum for hours but didn´t find a solution for my following problem. VM2.6.6, J2.5.22, PHP 5.31

I want to display by default the product price with my current VAT on product page and product detail page. If the goods will be exported (delivery country outside EU) no VAT should be calculated in the cart/invoice.

I have a VAT rule 19% for all EU countries (+%). The product price are set as net prices, see screenshot. Tax rule is set to default rule for both setting.

As long as the customer did not choose his delivey country in the cart the product price will be displayed as net price on the product page/ product detail page. If he choosed an EU country in the cart the price on the product page is displayed like I want. But I need this from default. Background is that most customers are from EU and they are used with prices including VAT and not calculating the VAT at the checkout.

If I change the VAT rule from default to the EU VAT rule then the price shows up correct but the cart does not work correct because the VAT is calculated even the delivery is outside the EU.

Probably I´m just blind to see the right way. Any ideas would be great. Probably setting the default country to an EU country?

Thanks

[attachment cleanup by admin]
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: GJC Web Design on June 21, 2014, 17:49:54 PM
have a look here and see if this works as you want it -

http://www.bombereyewear.eu/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=1170&virtuemart_category_id=3&Itemid=121&lang=en

if so will dig thru and see how I did it  (can't remember - but know displays with vat - but if you reg outside (Switz for example  - the vat is deduced in cart)
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: lanthan on June 22, 2014, 10:21:44 AM
This would be exactly what I want to, but it does not work on your reference either. The company is located in Swiss, so all deliveries outside Swiss should be without tax, but if I change the country for e.g. to Germany in the cart the tax is still included in the cart.

I set the default country to an EU country (by userfield menu and by editing database) but this did not help either, because the session for the cart is created with adding the first product. If the session would be created from the beginning once you open the site (for e.g. product site), it would work.

The questions is, how to open a session once (cart) when the website is opened?
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: GJC Web Design on June 22, 2014, 12:52:10 PM
The client want's it this way ... as for tax purposes his company is EU based ..

I just build em..  ;)

but do u say the functionality works (ignoring the above?)
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: lanthan on June 22, 2014, 17:52:45 PM
On your clients website the functionality works! I didn´t see that the tax is calculated for every country different. That would be the way I need. But I need zero for all countries outside the EU. Don´t understand why your client calculates the VAT the specific VAT, except he has a branch in every country and sends the good from the specific country. But that´s not my business anyway ;-)

A work around soultion could be the following (not programmed until now, because I have to have a look to the joomla session handler).

1. Checking on the index.php if virtuemart has set the [__vm][cart] session array.
2. If not, you have to set manually the [__vm][cart] session array with [BT] => Array
        (
            [virtuemart_country_id] => 81 (for e.g. for Germany)
        )
I don´t know if it is enough to just set the country id or if I have to set the whole array.

3. If session array is set the correct VAT will be displayed.

Then it works.

Probably the VM developers should add a vendor country field which would the base for the tax calculation on prices as long as the BT isn´t changed by a customer.
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: jenkinhill on June 22, 2014, 17:57:21 PM
Would this help?  http://extensions.virtuemart.net/vm-orders/eu-vat-id-checker-detail
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: lanthan on June 22, 2014, 18:07:09 PM
This could be interesting for B2B sales but at the moment I´m selling only B2C.
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: GJC Web Design on June 22, 2014, 19:35:56 PM
So - I set Bomber up as follows -- works for what the client wants..  :)





[attachment cleanup by admin]
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: lanthan on June 22, 2014, 22:08:22 PM
Thank you for your efforts. I will try your solution tomorrow and let you know if it works or not. I slighty think that the OPC I´m using is buggy :-(

Meanwhile I found an easy way. I just used the product override price on my productdetail page and category page and it works either (of course still disabled). But I would prefer your solution!

echo (str_replace(".", ",", round($this->product->product_override_price,2))).' '."€ "; (productdetail page)
and
echo (str_replace(".", ",", round($product->product_override_price,2))).' '."€ "; (category page)

Thanks again!
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: lanthan on June 24, 2014, 09:37:28 AM
@GJC
It didn´t work out with my shop but I think this is an OPC bug (3rd party solution). I contacted them. Thanks for your efforts!
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: tunasashimi on June 29, 2014, 17:18:49 PM
@lanthan

did you get a solution  for this matter?

I have the same problem.
http://forum.virtuemart.net/index.php?topic=123839.0
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: lanthan on June 29, 2014, 18:14:37 PM
I am still using the price override solution see above.This works for me. But I would recommend this only if you have just a few products.
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: tunasashimi on June 29, 2014, 21:02:58 PM
Thanks for the quick reply

It seems that VM rather promotes their own solutions (B2B as mentioned),
This sucks really

For me, your solution is not what I am looking for (too many products)

I'm sure, a lot of Swiss Shop owners would be happy to buy a solution, if available

Still looking for a solution, thank you
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: lanthan on June 30, 2014, 10:38:38 AM
Well, the solution of them is more for B2B checking if a VAT is valid and so on and includes a solution for our problem. I think, the modul is still good, even they would improve VM. On the other hand I understand the VM developer to earn money because meanwhile VM is free and it got really good.

Look at my first written solution. If you can create a VM session once your shop is opend, it should work. I didn´t follow this idea, because I have only a few products. I will check, if I can do it within the next weeks, as my current solution works, but is costly. I will let you know.
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: slammy on June 30, 2014, 17:29:04 PM
Quote from: jenkinhill on June 22, 2014, 17:57:21 PM
Would this help?  http://extensions.virtuemart.net/vm-orders/eu-vat-id-checker-detail

This is exactly what you need for b2b within europe with valid vat-id and b2c within and without EU (like Swiss, san marino, liechtenstein ect.), we are using it. See also this thread: http://forum.virtuemart.net/index.php?topic=119917.msg413782#msg413782
regards jens
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: tunasashimi on July 01, 2014, 09:32:35 AM
@slammy
I know this extension...

But we need the exact opposite.
Vat Tax for CH --> NO Vat for EU countries

Shop is located in Switzerland.
Therefore no Vat for buyers outside Switzerland (b2c)
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: lanthan on July 02, 2014, 14:12:20 PM
Hi Slammy,
I read your thread. Exact same problem. The EU VAT Checker is in my point of view a B2B plugin, because it checks, if the VAT-ID entered is valid because you are responsible for the VAT if the ID is invalid. And sure you can buy it and it solves this problem, too. 99% of my customers are are B2C and the B2B customers will be checked by me and get an individual login, so they can buy without tax.

The tax calculation rules obviously don´t work like they should or we interpretate them (anonymous, default). I made a work around currently and it works for me, but I am searching for a general solution.

If you didn´t go to the cart the default country is not set (even empty). If you do so, the country is set and the tax rule works like it should.

One solution would be to set up the cart once you reach any virtuemart site. Because I don´t have too much time and do not exactly know the structure of VM it will cost me hours. For an VM developer it would be just some minutes I guess. I would prefer a field, where you can choose your shop country and which is related to the prices.
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: slammy on July 02, 2014, 15:52:14 PM
Hi Lanthan,

I am sure you´re wrong. We are using this plugin, see our webshop suite9.de. With this plugin it is possible that:

- customers outside EU don´t pay tax
- customers inside eu pay tax
- Business inside eu (in my case inside eu but outside germany) with vat-id don´t pay tax
- Business outside eu with our without vat-id don´t pay tax

Therefore the plugin creates 2 shoppergroups, one to pay tax, another one who do not have to pay tax
The plugin itself does the rest.

To reproduce at suite9.de, try 
- put an article in the cart
- edit deliveryadresse with fake data and choose for example switzerland
- cart will be reloaded without tax

I believe - using this plugin - I can remember that it is important to create only tax-rules for product-view and that you do assign "standard-rules" and not assign the named tax-rule in the product-edit-mode, then it works.

You can contact istraxx if you want to confirm your qeustion btw. my information ...
regards jens
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: lanthan on July 02, 2014, 16:05:24 PM
I was talking about "without using this plugin" ;-)

By the way, the session idea didn´t work, but I will have a look at the calc now.
Title: Re: Show price with VAT by default but without VAT in cart for export deliveries
Post by: slammy on July 02, 2014, 16:34:42 PM
Hi Lanthan again,

I did overread that you are searching for standard-rules-solution to solve this. sry for that.

I
Quotebelieve - using this plugin - I can remember that it is important to create only tax-rules for product-view and that you do assign "standard-rules" and not assign the named tax-rule in the product-edit-mode, then it works.

Be aware, I meant my last sentence only for a solution when using the plugin! As far as I know, I bought the plugin because it didn´t work regular (it worked before vm 2.0.8e) ...
let me know if you find a solution for your Needs without the plugin, okay!
best regards jens