Jump to content

When tax is applied


bkessler91

Recommended Posts

  • 2 weeks later...

I see two places where a test is made.

 

* If the shopping basket does not have a billing/delivery address country code (which it wouldn't if it didn't have a state code either), then use the store's country code -- as if the customer were in the same federal taxing district as the store, or the customer were to pick up the order at the store.

 

* When the cart object is first constructed, this same test is made, but nothing is done with the result. Must be residue from a much earlier version. (Near line 109)

 

This edit will cause the basket to not use the store's country code, which will cause the skin to not show a Tax: line, nor to add taxes to the Grand Total:*  until the basket has the customer's country code.

 

In the file /classes/cart.class.php, near line 608, find:

$GLOBALS['tax']->loadTaxes($tax_country);

A few statements above that, change:

$tax_country = $GLOBALS['config']->get('config', 'store_country');

to

$tax_country = 0; // Not gonna do this.$GLOBALS['config']->get('config', 'store_country');

* I do not know how the basket will calculate/show totals if there are taxes included as part of the price of the item. This is not a problem with USA, but for other countries - be advised.

 

Also, if there is a tax on shipping, more experiments are required.

Link to comment
Share on other sites

I have made an experiment by having an item with tax included in the price (that is, 17.50 +20% = displayed price of 21.00) has the Grand Total showing a pre-tax amount. Once the customer has entered or chosen a billing address, the tax line gets displayed in the "Your Shopping Basket" area and the Grand Total is correct.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...