sean1688 Posted February 4, 2015 Share Posted February 4, 2015 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 Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 5, 2015 Share Posted February 5, 2015 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. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 5, 2015 Share Posted February 5, 2015 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. Quote Link to comment Share on other sites More sharing options...
sean1688 Posted February 5, 2015 Author Share Posted February 5, 2015 Thanks Brian. I did the change, it removed the shipping, but the sales tax part is still there. what we would like to do is to show the estimated shipping but not the sales tax. Quote Link to comment Share on other sites More sharing options...
bsmither Posted February 5, 2015 Share Posted February 5, 2015 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. Quote Link to comment Share on other sites More sharing options...
sean1688 Posted February 22, 2015 Author Share Posted February 22, 2015 Brian, Thanks again for your help. unfortunately. it did not seem to do anything. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.