VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: winzor on June 01, 2012, 05:17:05 AM

Title: tax based on state/shipping address
Post by: winzor on June 01, 2012, 05:17:05 AM

Is it currently possible in VM 2, to have tax calculated based on state or shipping address?
Title: Re: tax based on state/shipping address
Post by: John2400 on June 01, 2012, 09:19:00 AM
winzor,

yes - there are new versions of VM - I'm using 2.0.7 'D' test version - in that you have country and state based taxes.

You should always state the version you are using.
Title: Re: tax based on state/shipping address
Post by: winzor on June 02, 2012, 19:43:57 PM
I'm testing J2.5.4 and VM 2.0.2.  Is it in there somewhere?
Title: Re: tax based on state/shipping address
Post by: John2400 on June 02, 2012, 23:32:46 PM
2.0.6 is the stable version and will run well on 2.5.4 joomla - I cannot see a reason why you are still on 2.0.2

2.0.7 versions are unstable and have some issues - however you may test all you like.

http://dev.virtuemart.net/projects/virtuemart/files
Title: Re: tax based on state/shipping address
Post by: winzor on June 07, 2012, 05:20:27 AM
So your answer is, no it's not currently available on the current release?
Title: Re: tax based on state/shipping address
Post by: John2400 on June 07, 2012, 07:08:00 AM
My answer is update to a more stable version.

2.0.2 is nearly 20 versions back?  In 2.0.6 I can't remember when the taxes by state can in but I think
you should update,   test - save and then If you don't like replace your site with a back up??

I'm not being rude I just can't remember when the tax by state appeared.

Title: Re: tax based on state/shipping address
Post by: winzor on June 07, 2012, 21:33:22 PM
I have updated to the latest, 2.0.6 and I do not see it anywhere unless its some place I'm not looking.
Title: Re: tax based on state/shipping address
Post by: John2400 on June 09, 2012, 04:07:48 AM
then 2.07 ? test versions

the version I'm using has taxes per state.
Title: Re: tax based on state/shipping address
Post by: winzor on June 09, 2012, 06:45:03 AM
I have discovered tax by state is in VM 2.0.2.  What is/was confusing is that tax is calculated and added even in the guest cart. Once a user logs in or registers with a state then the correct tax is applied.  It was confusing to me because I did not understand why a guest would see the tax without having entered their state information. So now I have to figure out the best way to eliminate the tax displayed to guests at checkout.
Title: Re: tax based on state/shipping address
Post by: gg1 on June 10, 2012, 05:06:43 AM
This has been frustrating me too--is there any way to show no tax anywhere until a shopper adds a ship-to address?  I'm looking to set it up so that:

No ship-to address = no tax shown anywhere
Ship-to address = tax only shown in cart

I want to allow guest checkout as an option.  I'm on version 2.0.6.

Thanks in advance for any help you can offer!

Title: Re: tax based on state/shipping address
Post by: John2400 on June 10, 2012, 09:00:25 AM
Showing and hiding taxes?

this option is available In the tax area? it says show and hide from shopper.

there are also new options in regards to price display and overrides in every product now

and there is options in configuration in pricing -

* really the tax should only apply at a state level when they type there address in,, so There must be a confiuration setting somewhere in your set up that applies to everything.?
again I'm testing 2.0.7 d versions
Title: Re: tax based on state/shipping address
Post by: gg1 on June 10, 2012, 10:58:59 AM
Thanks for replying, but it does not appear to be that simple for applying it to only the cart of folks who have submitted ship-to addresses in a taxed region in the current stable version.

When I put in a tax rate only for a specific state & country, it shows in the calculation in the sidebar and in the shopping cart when no state or country has been entered by the customer yet.  It shows up for anyone just browsing and adding items to the cart. 

Not only does it add tax, it adds tax for the two different regions I collect for, which makes it look like I am taxing the order two times when most of my customers won't be taxed even once when checking out. 

After I add a a ship-to address, the tax works just fine--only one tax rate is ever applied at one time and the rates match the states I put in for the buyer's ship-to address (tax rate A, tax rate B or no tax).

For anonymous shoppers I have checked to show "Baseprice", "Final salesprice" and "Salesprice without tax", yet the tax is still in both the sidebar and the cart page. 

I don't want folks outside my taxing region to think I might be charging them tax. :(
Title: Re: tax based on state/shipping address
Post by: John2400 on June 11, 2012, 13:07:24 PM
mmmm?

works perfectly for me? version 2.0.7 so lets have a look at the configuration.

I went to taxes and calculations and set a country and a state - gave it 10% vat tax.

Then I put a few products in the cart.  I then went to the address and changed the state 4 times..

It only showed the tax --only when I put or changed a particular state.   so no problem.

[attachment cleanup by admin]
Title: Re: tax based on state/shipping address
Post by: winzor on June 11, 2012, 13:13:15 PM
All of us are using stable versions, not 2.0.7. Try your version as a guest checkout without a state and not logged in. Does the the tax show?
Title: Re: tax based on state/shipping address
Post by: John2400 on June 11, 2012, 13:19:48 PM
I do not use registered uses on this site just guests?

so the site is open.

they come - they put in the cart what they like and then add the address _ perfect? sorry.

I'm wondering what other taxes you are using or have you added to products groups - can you see I have no groups at all in my shop.? these can affect taxes.
Title: Re: tax based on state/shipping address
Post by: winzor on June 11, 2012, 13:23:36 PM
Try your cart with registered users and see if tax shows in the guest cart. I'm using no groups and only one tax for one state.
Title: Re: tax based on state/shipping address
Post by: John2400 on June 11, 2012, 13:33:23 PM
OK I logged in as my test user- he has a specific address.

He had no tax.

Then I changed his address to that state and he received the tax?
Title: Re: tax based on state/shipping address
Post by: winzor on June 11, 2012, 13:37:20 PM
Don't log in at all and add something to your cart. Does any tax show?
Title: Re: tax based on state/shipping address
Post by: John2400 on June 11, 2012, 13:43:34 PM
No, 

I can add as many products to my cart as a guest and there is no tax..

It only appears when I add that state in the address as I'm checking out to buy.

Look I do hope we get this right ?

Turn off all taxes and add a tax just like mine.
Title: Re: tax based on state/shipping address
Post by: winzor on June 11, 2012, 13:45:22 PM
It must be fixed in 2.0.7, I wonder how long before its stable?
Title: Re: tax based on state/shipping address
Post by: John2400 on June 11, 2012, 13:50:50 PM
OK - there are few odd things in 2.0.7 -

Have a look in http://forum.virtuemart.net/index.php?board=136.0

this forum and see some of the issues being worked upon- some may not affect you.

Most stores can still run well on the test versions unless you have heavy tax issues or 1000s of attribute settings.

a simple buy and sell store really will have little issue in 2.0.7 test versions
Title: Re: tax based on state/shipping address
Post by: winzor on June 12, 2012, 04:21:59 AM
I just tested J2.5.4 and VM2.0.7 using both Atomic and Beez5 and still the same issue with tax showing on guest cart. 

Here are my steps.


According to senior developer alatak, this is how it is suppose to function.
http://forum.virtuemart.net/index.php?topic=103594.msg344663#msg344663 (http://forum.virtuemart.net/index.php?topic=103594.msg344663#msg344663)

I would like to know how to have it not do that.
Title: Re: tax based on state/shipping address
Post by: John2400 on June 12, 2012, 09:03:49 AM
5. set this to ''Price modifier for profit Range.''

no tax should appear. but price will show

Title: Re: tax based on state/shipping address
Post by: gg1 on June 12, 2012, 21:56:33 PM
Since I have the same set up and preference for how it should work as winzor, I tested your suggestion for #5, but I still got tax in the cart & sidebar.

I then scrolled through all the options for "Type of Arithmetic Operation", and while some of the options changed the tax rate displayed, none of the option removed the tax from the cart & sidebar for an anonymous user.

Thanks for trying! 


Quote from: Milbo
The value and the mathematical operation say whats todo with the given price.

In VM2 we follow always the rule, that when you do not enter anything specific it is not used.
Source:  http://forum.virtuemart.net/index.php?topic=98642.0 (http://forum.virtuemart.net/index.php?topic=98642.0)

The second statement there is very backwards to me and seems to be what causes this issue--if the customer doesn't enter a specific address, then all tax rules apply.

It that's true for all of VM2, then I don't know that it would be changed in 2.0.7 unless they specifically changed the way VM2 works.
Title: Re: tax based on state/shipping address
Post by: John2400 on June 12, 2012, 23:17:01 PM
My settings:

I have no groups set anywhere in the shop - don't set default - leave them blank as this is the shops original settings. 

You can set up default for users but customers who do not register can simply purchase without being set to anything. That includes products - leave them blank.

from here - my settings are shown below -  I am using 2.0.7 E version
* images the tax set turned on * the settings for showing prices * the cart with one state * the cart with a new state.  ( showing no tax showing in the cart but the state changed the price)

[attachment cleanup by admin]
Title: Re: tax based on state/shipping address
Post by: winzor on June 13, 2012, 04:23:22 AM
I tried your settings and the tax did not show for guest but it also did not show for logged in user now.
Title: Re: tax based on state/shipping address
Post by: hazer26 on June 14, 2012, 04:52:30 AM
This may go without saying but I did find a work around...

When setting up your tax rule (Configuration >> Taxes and Calculation Rules), set the "Shopper Group" field to "default".

This will apply the rule to only those users who have registered (and therefore also have selected a state). When I'm not logged in, there's no tax...when I login under my account (Texas address), my tax rule for Texas applies.

Anyone who is not registered will not see tax applied anywhere.... The catch...guest checkout will never get taxed... so I force registration at checkout...

(I only have two shopper groups, Ananymous and Default)

Is there anyway we can have virtuemart look at the ship-to address of the guest shopper to calculate/add tax at checkout?
Title: Re: tax based on state/shipping address
Post by: winzor on June 14, 2012, 05:04:57 AM
This is what I want but it does not work for me. What math calculation are you using?

Quote from: hazer26 on June 14, 2012, 04:52:30 AM
This may go without saying but I did find a work around...

When setting up your tax rule (Configuration >> Taxes and Calculation Rules), set the "Shopper Group" field to "default".

This will apply the rule to only those users who have registered (and therefore also have selected a state). When I'm not logged in, there's no tax...when I login under my account (Texas address), my tax rule for Texas applies.

Anyone who is not registered will not see tax applied anywhere.... The catch...guest checkout will never get taxed... so I force registration at checkout...

(I only have two shopper groups, Ananymous and Default)

Is there anyway we can have virtuemart look at the ship-to address of the guest shopper to calculate/add tax at checkout?
Title: Re: tax based on state/shipping address
Post by: hazer26 on June 14, 2012, 05:11:41 AM
see attached. Tax per product +% 8.25

[attachment cleanup by admin]
Title: Re: tax based on state/shipping address
Post by: dsrpmedia on June 16, 2012, 21:23:17 PM
so the consensus is that you cannot use guest checkout in VM 2.0.6 without having EVERY tax rate applied before the shipping address is selected?

that`s pretty unfunctional - I think most peple who go to the cart & see every tax under the sun being applied to their order are going to just abandon the cart before going through the bother of adding their billing info & seeing the correct tax.

has anyone found a fix for 2.0.6?

if not, how bug-ridden / unstable is 2.0.7 - is it suitable for a live environment?
Title: Re: tax based on state/shipping address
Post by: John2400 on June 17, 2012, 00:46:45 AM
2.0.7 F ,

that depends on how many options you have set in your shop.
* Australian stores do not need tax rules.
* The shop does not have complicated - dropdown variants of related items - If you just buy and sell individual items without keeping stock. ( no issues)

* but is you are trying multiple - variants , keeping exact stock and have taxes for country and state , federal and shipping then yes it may have  afew bugs.

Simple shop - no issues.

Again I have no shopper groups set and the state tax works perfectly - ( but in Australia we have no state taxes)

* at this present time - after updating to F I have an issue with the default shopper - after he logs into the shop.
There is no issue with a guest - I have reported this elsewhere.
http://forum.virtuemart.net/index.php?topic=104036.0
Title: Re: tax based on state/shipping address
Post by: esilk on June 20, 2012, 21:07:31 PM
OK, after many hours and countless forums I have found a solution for Canadian taxes in Joomla 2.5.4 and Virtuemart 2.0.6

This requires at least 2 Shopper Groups. I used "anonymous" and "default" that were set up when I installed Virtuemart.

Here is what I did:

1. Set up a new Tax Calculation Rule for each province with the following settings:
    Type of Arithmetic Operation: Tax per Product
    Math Operation: +%
    Value: number - for 12% enter 12.00
    Shopper Groups: default
    Country: Canada
    State / Province / Region: province name
    Visible: Yes for both

2. Add a product or products and set Pricing/Tax to "Apply default tax"

That is it. Plain and simple.

Anonymous visitors to the site will not see any tax.

Once a user logs in correct taxes are applied.

Hope this helps someone.


   
Title: Re: tax based on state/shipping address
Post by: dsrpmedia on June 20, 2012, 22:02:22 PM
that works if you don `t plan on using the 'guest checkout' feature.

if you want to let guests purchase without registering  I found a fix:
  - set up yuor tax rates as described in your post, then go to the default_pricelist.php file & use the code

<?php if (!empty($this->cart->BT)){ ?>
remove whatever until billing address is entered
<?php ?>


wherever it references the tax rate (I also removed any reference to shipping)

this will remove all refernces to tax (and shipping if desired) in the cart until a billing address has been entered

it`s a bit of a pain as it will have to be re-done with every upgrade, but it work - this should be part of the core without having to hack!!!

(I can `t think of any instance when a potential client would want to see EVERY tax rate set up in the shop all applied at once, which is what VM2 currently does)