Sales Tax Issue

I am getting some issues with the sales tax calculation on some of my orders. On most of the orders it takes the subtotal plus the shipping can charges them the sales tax. On a couple of orders they are only being charged the sales tax for the shipping costs, and on other orders they are being charged a random number and I cannot figure out how it was calculated.



Here is and example of a random tax number:



Subtotal: $66.71

Shipping cost: $8.49

Including discount: $5.94

Discount coupon: SLABS

Taxes:

· Sales Tax 7% $4.45

Total: $79.65



Here is an example of one where only shipping was taxed:



Subtotal: $22.62

Shipping cost: $7.99

Taxes:

· Sales Tax 7% $0.56

Total: $31.17



Here is an example of one that worked:



Subtotal: $41.75

Shipping cost: $7.99

Including discount: $4.50

Discount coupon: slabs

Taxes:

· Sales Tax 7% $3.48

Total: $53.22



Do you guys have any ideas on why this malfunction might be happening? It's meaning that I am having to pay for missing sales tax out of my own pocket.

It sounds like you don't have the Taxes box checked in the product options for some products. It is down in the Pricing/Inventory area, right above SEO/Meta data in the product admin area.

Untitled-1.jpg

That's what it was, thank you. Do you know how to set it so it applies by default to any new products?

Create a back up of this file and then edit as appropriate:



/skins/basic/admin/views/products/update.tpl

Find

```php



{$lang.taxes}:





{foreach from=$taxes item=“tax”}



{$tax.tax}

{foreachelse}



{/foreach}


```
Replace with:
```php

{$lang.taxes}:


{foreach from=$taxes item="tax"}

{$tax.tax}
{foreachelse}

{/foreach}


```
Change default:"6" to the ID number of the tax you want to apply as default. To find this, go to Shipping & Taxes > Taxes, then click the 'Edit' link for the tax you want to use. In your browser, the page URL will show you the tax ID, for example:
```php http://yourstore.com/youradmin.php?dispatch=taxes.update&tax_id=6 ```
In this instance, the tax ID I want to use as default is '6'. In your case, replace the instances of '6' in the code above to your desired tax ID.

This code will ensure the default tax I want to apply to products has the box checked as default when I add a new product.

For existing products, use the Bulk Editing tool to apply these values if you have not already done so.