Tax calculation in the US per state?
Posted: 26 Aug 2016, 00:16
i am currently using aimeos 2016.04.3
i read this:
https://aimeos.org/docs/User_Manual/Setup_B2B_shop
now setting in my shop.php
does not seem to change a thing.
e.g. the tax is not added to the total price.
Furthermore: in the US they have a sales tax (not vat tax, but i seem to fail to see how to change that bit). The sales tax actually depends on the US state people do live in.
So:
New york has a different tax rate than say california.
Now to enable the state selection I thought I do this:
https://aimeos.org/docs/Configuration/C ... ess/states
So my shop.php has this:
but the state selection does not surface in the checkout process.
So my question is: how should I implement a salestax that depends on each single state of the US? that is, the tax is hidden from the price, e.g. the price entered in the backend is the net price. Once the client reaches the payment process and enters his state, he will get shown the new price, with sales tax included that depends on the state he lives in. Further thing:
The salestax includes the shipping cost.
So lets say he buys a product for 90 dollars. Then he chooses a shipping for 10 dollars. He livs in NY so he has, lets just assume, 10 % sales tax
That will show him a subtotal and total of 110 usd of price that he will have to pay saying "sales tax".
If he lives in california he pays 5% sales tax, so a total of 105 usd will be presented.
How can i do that?
If he lives outside of the US, he gets no tax added.
i read this:
https://aimeos.org/docs/User_Manual/Setup_B2B_shop
now setting in my shop.php
Code: Select all
'mshop' => array(
'price' => array(
'taxflag' => 0
)
),
Code: Select all
1 $ 39.95 $ 39.95
Sub-total $ 39.95
Total $ 39.95
+ 8.63% VAT $ 3.45
Total quantity 1 article
Furthermore: in the US they have a sales tax (not vat tax, but i seem to fail to see how to change that bit). The sales tax actually depends on the US state people do live in.
So:
New york has a different tax rate than say california.
Now to enable the state selection I thought I do this:
https://aimeos.org/docs/Configuration/C ... ess/states
So my shop.php has this:
Code: Select all
'client' => array(
'html' => array(
'checkout' => array(
'standard' => array(
'address' => array(
'states' => array(
'US' => array(
'AL'=>'ALABAMA',
'AK'=>'ALASKA',
'AS'=>'AMERICAN SAMOA',
'AZ'=>'ARIZONA',
'AR'=>'ARKANSAS',
'CA'=>'CALIFORNIA',
'CO'=>'COLORADO',
'CT'=>'CONNECTICUT',
'DE'=>'DELAWARE',
'DC'=>'DISTRICT OF COLUMBIA',
'FM'=>'FEDERATED STATES OF MICRONESIA',
'FL'=>'FLORIDA',
'GA'=>'GEORGIA',
'GU'=>'GUAM GU',
'HI'=>'HAWAII',
'ID'=>'IDAHO',
'IL'=>'ILLINOIS',
'IN'=>'INDIANA',
'IA'=>'IOWA',
'KS'=>'KANSAS',
'KY'=>'KENTUCKY',
'LA'=>'LOUISIANA',
'ME'=>'MAINE',
'MH'=>'MARSHALL ISLANDS',
'MD'=>'MARYLAND',
'MA'=>'MASSACHUSETTS',
'MI'=>'MICHIGAN',
'MN'=>'MINNESOTA',
'MS'=>'MISSISSIPPI',
'MO'=>'MISSOURI',
'MT'=>'MONTANA',
'NE'=>'NEBRASKA',
'NV'=>'NEVADA',
'NH'=>'NEW HAMPSHIRE',
'NJ'=>'NEW JERSEY',
'NM'=>'NEW MEXICO',
'NY'=>'NEW YORK',
'NC'=>'NORTH CAROLINA',
'ND'=>'NORTH DAKOTA',
'MP'=>'NORTHERN MARIANA ISLANDS',
'OH'=>'OHIO',
'OK'=>'OKLAHOMA',
'OR'=>'OREGON',
'PW'=>'PALAU',
'PA'=>'PENNSYLVANIA',
'PR'=>'PUERTO RICO',
'RI'=>'RHODE ISLAND',
'SC'=>'SOUTH CAROLINA',
'SD'=>'SOUTH DAKOTA',
'TN'=>'TENNESSEE',
'TX'=>'TEXAS',
'UT'=>'UTAH',
'VT'=>'VERMONT',
'VI'=>'VIRGIN ISLANDS',
'VA'=>'VIRGINIA',
'WA'=>'WASHINGTON',
'WV'=>'WEST VIRGINIA',
'WI'=>'WISCONSIN',
'WY'=>'WYOMING',
'AE'=>'ARMED FORCES AFRICA \ CANADA \ EUROPE \ MIDDLE EAST',
'AA'=>'ARMED FORCES AMERICA (EXCEPT CANADA)',
'AP'=>'ARMED FORCES PACIFIC'
)
),
)
),
),
...
So my question is: how should I implement a salestax that depends on each single state of the US? that is, the tax is hidden from the price, e.g. the price entered in the backend is the net price. Once the client reaches the payment process and enters his state, he will get shown the new price, with sales tax included that depends on the state he lives in. Further thing:
The salestax includes the shipping cost.
So lets say he buys a product for 90 dollars. Then he chooses a shipping for 10 dollars. He livs in NY so he has, lets just assume, 10 % sales tax
That will show him a subtotal and total of 110 usd of price that he will have to pay saying "sales tax".
If he lives in california he pays 5% sales tax, so a total of 105 usd will be presented.
How can i do that?
If he lives outside of the US, he gets no tax added.