Jump to content

how to get rid of estimated sales tax


sean1688

Recommended Posts

Hello,

 

on our site http://www.mastechpowersupply.com, whenever a customer add an item to basket, the CA sales tax will be added to the total. this sales tax goes away when a customer put in an address that's not in California. my question is, is it possible to not add the sales tax when an item is added to basket, and only include the sales tax when the address customer put in is inside California?

 

Best regards,

 

Sean

Link to comment
Share on other sites

There is a conversation on these forums, maybe about 6-9 months ago, that discussed a way to suppress the display of taxes and shipping estimates until CubeCart has a confirmed delivery address.

 

Maybe a search will find it. I can look for it later.

Link to comment
Share on other sites

I found the discussion. Please start reading from here:

http://www.cubecartforums.org/index.php?showtopic=18064&view=findpost&p=74214

and make sure to read through to the end.

 

You can read the entire thread, to get the gist of what was being developed.

 

That was 18 months ago, so in the later versions of CC5, the line numbers may have changed.

Link to comment
Share on other sites

Ok, the code got a bit more complicated since that article 18 months ago.

 

In the file /classes/cart.class.php, near line 624 (in CC5213), a test is made that if the $tax_country is 'empty', which it will be if there is no user-supplied address, then use the store's country. Try making this edit:

Was:
$tax_country = $GLOBALS['config']->get('config', 'store_country');
 
Now:
$tax_country = 0; // $GLOBALS['config']->get('config', 'store_country');

I haven't tried this.

Link to comment
Share on other sites

  • 3 weeks later...

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...