goodspark Posted January 12, 2014 Share Posted January 12, 2014 When using a coupon code in CC5, the sales tax is being charged at the full retail price of a product instead of the discounted price from a coupon. Shouldn't the tax be charged at the product total price, including discounts? Let's assume sales tax is 5%. For example, if a dress is $50 but a coupon makes it 10% off, the new product price is $45 so the sales tax should be $2.25. Instead, the sales tax calculates at $2.50 (the original, non-couponed price). I found this commented out in the cart class, inside the _applyDiscounts function: // reduce tax value for coupon // $taxdiscount = $this->basket['total_tax']*($data['value']/100); // $this->basket['total_tax'] = $taxdiscount; // $GLOBALS['cart']->set('order_taxes', $taxdiscount); I tried uncommenting it, but it isn't updating the tax amount. Any ideas? Quote Link to comment Share on other sites More sharing options...
goodspark Posted January 14, 2014 Author Share Posted January 14, 2014 Anyone? This seems like it is a pretty big accounting issue, and we are looking to resolve it as soon as possible. Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 14, 2014 Share Posted January 14, 2014 I'm not finding that code in CC511, CC514, CC522, CC524, or CC525 Cart->_applyDiscounts(), so you might not be running a version where this has been resolved, or you may be mistaken as to where these commented lines are located. Would you please remind us of the exact version of CubeCart you are running? And the line numbers where these lines are located. Quote Link to comment Share on other sites More sharing options...
goodspark Posted January 14, 2014 Author Share Posted January 14, 2014 I am using 5.2.5. I just looked at a fresh install, and it isn't there. Someone else working on our site must have added it. Sorry for the confusion, but the issue is in place on the clean install as well and also on the Cubecart.com demo store. Tax is calculated from the full price, not discounted price. Quote Link to comment Share on other sites More sharing options...
bsmither Posted January 14, 2014 Share Posted January 14, 2014 To narrow down what code to trace, would you please let us know if the coupon (10%) specifically applies to a particular product(s), generally applies to any product (the whole basket), specifically does not apply to any product(s), applies only to shipping, etc. Also, is your shipping charges taxable? Also realize, until CubeCart has the customer's delivery address, taxes may reflect those in effect at your store's location. I will assume it applies to all the items in general, that is, for each and every item in the basket, the 10% is applied. Quote Link to comment Share on other sites More sharing options...
goodspark Posted January 14, 2014 Author Share Posted January 14, 2014 The test I am running is just 10% off the whole basket. Shipping is not taxed. This is on the final step, with all delivery info added. Quote Link to comment Share on other sites More sharing options...
rmoss3475 Posted July 19, 2014 Share Posted July 19, 2014 Same problem for me. Did you manage to solve this? Quote Link to comment Share on other sites More sharing options...
rmoss3475 Posted July 22, 2014 Share Posted July 22, 2014 Anyone? Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 22, 2014 Share Posted July 22, 2014 Please let us know the exact version of CubeCart you are using where you are experiencing this. Quote Link to comment Share on other sites More sharing options...
rmoss3475 Posted July 22, 2014 Share Posted July 22, 2014 It's cubecart 5.2.12Simply: Cubecart is charging sales tax on the full cost of the items (and shipping), not the amount after the discount coupon is applied. Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 23, 2014 Share Posted July 23, 2014 I have confirmed this situation. Even when all settings seem to state that a coupon will be applied to the subtotal only, and to apply to all products EXCEPT the ones listed (which there are none listed), and that the coupon will not apply to shipping, the amount of the coupon will still be deducted from the Grand Total - post-tax - giving a new Grand Total. For example, a $60 item taxed at 7.5% with shipping at $10 will have a tax of $5.25, the Grand Total of $75.25. Currently, if a $10 general coupon is used, the Grand Total is $65.25. If the coupon were to be correctly applied to the sub-total only: ($60 less coupon $10)=$50 item taxed at 7.5% ($3.75) with shipping at $10 (tax of $0.75) will have a tax of $4.50, the Grand Total of $64.50. I will submit a ticket and hope to have a response. Quote Link to comment Share on other sites More sharing options...
rmoss3475 Posted July 24, 2014 Share Posted July 24, 2014 Thank you. Quote Link to comment Share on other sites More sharing options...
rmoss3475 Posted July 29, 2014 Share Posted July 29, 2014 More problems along the same lines: If I buy a sale item + a retail item then the sales tax is calculated on the retail prices, ignoring the sale price. Please tell me when I can expect these things to be addressed as my online shop is extremely important to my business, and I've already had to spend hour upon hour configuring the 'upgrade' to work like it did before. Quote Link to comment Share on other sites More sharing options...
rmoss3475 Posted July 29, 2014 Share Posted July 29, 2014 ...and how do I change the page title tag? I've altered the text in 'settings, search engines' and nothing's changing! Tearing my hair out here! Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 29, 2014 Share Posted July 29, 2014 "How do I change the page title tag?" Please note the setting you have for Store Settings, Search Engines tab, Global Meta Data Behaviour. The choices are Disabled, Merged, and Replaced. If Replaced, then any meta data setting fields you are given for individual products, documents, and categories will replace the meta data fields given in the Store Settings - even if the individual item's fields are blank. I am assuming you are using, for the time being, a stock CubeCart skin. Quote Link to comment Share on other sites More sharing options...
rmoss3475 Posted July 29, 2014 Share Posted July 29, 2014 Thanks for that, bsmither. Sorry I drifted away from the main topic. Any idea how long it might take to get the tax on discount codes and sale prices addressed? Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 29, 2014 Share Posted July 29, 2014 You may wish to also submit a ticket. I cannot say if Devellion has ever responded to a ticket with a definite "will be fixed by" date. Quote Link to comment Share on other sites More sharing options...
rmoss3475 Posted July 30, 2014 Share Posted July 30, 2014 Do you think I need to just try and get hacking the code myself in order to get it sorted within a sensible timeframe? Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 30, 2014 Share Posted July 30, 2014 I would enjoy talking with someone who is into hacking the code. Quote Link to comment Share on other sites More sharing options...
rmoss3475 Posted July 31, 2014 Share Posted July 31, 2014 I'd love to, but for me the hacking is very much a last resort. Support have replied to my ticket very quickly though, and it looks like they might just have sorted out the problem, restoring my faith in humanity! Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 31, 2014 Share Posted July 31, 2014 Well, if it appears that Devellion has found a solution, then I will stop looking at the program flow that causes this. 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.