windsurfer Posted April 20, 2020 Share Posted April 20, 2020 I have setup the sales tax and when i go to my basket it calculates the sales tax but the sales tax is not listed. Link to comment Share on other sites More sharing options...
bsmither Posted April 20, 2020 Share Posted April 20, 2020 There should be tax shown. To show tax: You have created tax rules that apply. In admin, Store Settings, Features tab, Misc section, the setting "Disable initial shipping & tax estimates" is not checked, or the customer is logged in and has a Delivery Address. The product being sold is taxable. If the above is as it should be, we need to look elsewhere. Link to comment Share on other sites More sharing options...
windsurfer Posted April 20, 2020 Author Share Posted April 20, 2020 Customer is logged in and has a delivery address which would be myself by the way. I have a customer account setup. Link to comment Share on other sites More sharing options...
bsmither Posted April 20, 2020 Share Posted April 20, 2020 Ok, so the sub-total is 10.95 and Grand Total is 12.37. The difference is 1.42, which is assumed to be the tax. So, we need to look at the template. First, however, with CubeCart's debug mode enabled, you should see the '__basket' => 'order_taxes'. You should see an array: 0 => 'tax_id' => a number 'amount' => a number If there is a tax in the __basket, then we try to find why the template is not showing it. Link to comment Share on other sites More sharing options...
windsurfer Posted April 20, 2020 Author Share Posted April 20, 2020 Hi I am not sure where i should see the '__basket' => 'order_taxes'. You should see an array: 0 => 'tax_id' => a number 'amount' => a number If there is a tax in the __basket, then we try to find why the template is not showing it. But i don't see that. and yes you are correct the difference is the GST/HST at 13% The debug mode is enabled however. As you can see that when i select the Expedited shipping it does show the taxes and it calculates properly. Link to comment Share on other sites More sharing options...
bsmither Posted April 20, 2020 Share Posted April 20, 2020 With CubeCart's Debug mode enabled, all pages that show in the browser will have a large grey section below the end of the regular content. Just scroll down the page. Link to comment Share on other sites More sharing options...
windsurfer Posted April 20, 2020 Author Share Posted April 20, 2020 Which page ? Home page, basket, checkout ? Basket free shipping __basket' => 'contents' => '0279a0f27b9e3a6398db040f48298ed4' => 'product_id' => 5 'status' => 1 'live_from' => 0 'product_code' => MEDS8XH010 'quantity' => 1 'description' => Basket with expedited shipping __basket' => 'contents' => '0279a0f27b9e3a6398db040f48298ed4' => 'product_id' => 5 'status' => 1 'live_from' => 0 'product_code' => MEDS8XH010 'quantity' => 1 'description' => Link to comment Share on other sites More sharing options...
bsmither Posted April 20, 2020 Share Posted April 20, 2020 All pages. After 'contents' will be 'weight', 'subtotal', 'total_tax', and others, a 'billing_address' and 'delivery_address', 'shipping' (if selected), and 'order_taxes', and any number of other array elements. Link to comment Share on other sites More sharing options...
windsurfer Posted April 20, 2020 Author Share Posted April 20, 2020 __basket' => 'contents' => '0279a0f27b9e3a6398db040f48298ed4' => 'id' => 5 'quantity' => 1 'digital' => 0 'cost_price' => 0 'option_line_price' => 0 'total_price_each' => 3.00 'description' => The previous one was with the free shipping selected This one is with the expedited shipping selected which does show the sales taxes __basket' => 'contents' => '0279a0f27b9e3a6398db040f48298ed4' => 'id' => 5 'quantity' => 1 'digital' => 0 'cost_price' => 0 'option_line_price' => 0 'total_price_each' => 3 'description' => Link to comment Share on other sites More sharing options...
bsmither Posted April 21, 2020 Share Posted April 21, 2020 In the Foundation skin template content.checkout.medium-up.php, near lines 91-97, make sure these statements exist: {foreach from=$TAXES item=tax} <tr> <td colspan="4"></td> <td>{$tax.name}{$CUSTOMER_LOCALE.mark}</td> <td class="text-right">{$tax.value}</td> </tr> {/foreach} If your template has these statements, we will next have Smarty show us a diagnostic. At the very end of the template, add {debug}. Then have CubeCart clear its internal cache. When you next fetch this checkout page in the browser, you may be asked to allow for a popup window to be shown. Allow this to happen (you may need to make another request for this checkout page.) Looking through the debug popup, scroll down to near the bottom and look for TAXES in the left pane. The corresponding value in the right pane should show an array of taxes. Link to comment Share on other sites More sharing options...
windsurfer Posted April 21, 2020 Author Share Posted April 21, 2020 The previous one was with the free shipping selected This one is with the expedited shipping selected which does show the sales taxes __basket' => 'contents' => '0279a0f27b9e3a6398db040f48298ed4' => 'id' => 5 'quantity' => 1 'digital' => 0 'cost_price' => 0 'option_line_price' => 0 'total_price_each' => 3 'description' => {foreach from=$TAXES item=tax} <tr> <td colspan="4"></td> <td>{$tax.name}{$CUSTOMER_LOCALE.mark}</td> <td class="text-right">{$tax.value}</td> </tr> {/foreach} At the very end of the template, add {debug}. Then have CubeCart clear its internal cache. Do you mean in the content.checkout.medium-up.php file ? Link to comment Share on other sites More sharing options...
bsmither Posted April 21, 2020 Share Posted April 21, 2020 Yes. Link to comment Share on other sites More sharing options...
windsurfer Posted April 21, 2020 Author Share Posted April 21, 2020 I did that And i see 2 places with Taxes as in the images. BTW, it still didn't show the taxes with the free shipping selected. When i select expedited shipping it shows this at the very very bottom Link to comment Share on other sites More sharing options...
windsurfer Posted April 23, 2020 Author Share Posted April 23, 2020 Now after i turned the debugging off it isn't calculating sales taxes at all. What happened ??? Sorry, i take that back. i wasn't logged in. But it still doesn't calculate taxes other than the expedited selected. Link to comment Share on other sites More sharing options...
bsmither Posted April 23, 2020 Share Posted April 23, 2020 Viewing the grey debug section below the checkout page, at the '__basket' => 'contents' array, for each item, there will be the following: For example: 'product_code' => CC-S1 'product_weight' => 16 'product_width' => 0.0000 'product_height' => 0.0000 'product_depth' => 0.0000 'tax_each' => 'tax_id' => 6 'amount' => 6.75 'tax_inclusive' => 'tax_name' => State (Standard Tax 7.5%) 'tax_percent' => 7.5000 When editing the product, Pricing tab, have you assigned a Tax Class? Link to comment Share on other sites More sharing options...
windsurfer Posted April 23, 2020 Author Share Posted April 23, 2020 Yes sales tax has been assigned, as a reminder the tax does display when i select Expedited shipping. Link to comment Share on other sites More sharing options...
bsmither Posted April 23, 2020 Share Posted April 23, 2020 This item is 3.00. At 13% tax, that should equal 0.39. (Unless there is an option that raises the price.) Or maybe the Pricing table shown is not for the product you've shown in debug's __basket=>contents. Link to comment Share on other sites More sharing options...
windsurfer Posted April 23, 2020 Author Share Posted April 23, 2020 Ya sorry. I pasted that from the wrong item. This is the correct one. This is the same item where i selected Expedited shipping and the taxes do show up on the checkout page. Link to comment Share on other sites More sharing options...
windsurfer Posted April 24, 2020 Author Share Posted April 24, 2020 Should i assume there is no fix for this ? Link to comment Share on other sites More sharing options...
bsmither Posted April 24, 2020 Share Posted April 24, 2020 I see that something has an 'inherited' tax. I've not explored that. So, please make another choice where that is used. Link to comment Share on other sites More sharing options...
windsurfer Posted April 24, 2020 Author Share Posted April 24, 2020 I have no idea what you mean by that. There are no items where the tax is listed on the checkout page. The only time tax is showing is when i select a different shipping method. Link to comment Share on other sites More sharing options...
bsmither Posted April 24, 2020 Share Posted April 24, 2020 Please look at the settings page for the All-in-One Shipping module. On the General tab, check the value chosen for Tax Type. I do not know how this will affect the outcome. Link to comment Share on other sites More sharing options...
windsurfer Posted April 24, 2020 Author Share Posted April 24, 2020 That absolutely solved the problem, so what does inherit mean ? What is it inheriting from ? It was calculating the taxes properly it was just not displaying them with selecting a different shipping method. Link to comment Share on other sites More sharing options...
bsmither Posted April 24, 2020 Share Posted April 24, 2020 I do not (yet) know what 'inherit', as a tax type, means. Link to comment Share on other sites More sharing options...
harrisorganic Posted April 26, 2020 Share Posted April 26, 2020 I ran into a similar issue. Changing the tax in AIOS shipping solved it. I dont know what inherit means, but my guess would be it is the default until one sets up the Taxes tab. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.