Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Tax Free Threshold


Guest

Recommended Posts

I have a small problem. In New York there is a basic tax on almost everything except for clothing which is only taxed if the purchase is greater than $100. Does anyone know how to do this in OSC.

 

Would anyone be interested in creating a module for this? Im willing to pay for it if need be.

 

Thanks

Craig

Link to comment
Share on other sites

You could have it calculate the tax and only enable the tax if the price is > 100

 

example:

 

if ($cart->show_total()) >=100

$add_tax=true;

}

 

Then recalculate the total with the tax.

Link to comment
Share on other sites

Linda,

This would probably work quite well except:

 

Its only on clothing. I have setup a separate tax class for clothing. Once the total clothing order reaches $100 then tax is added. If the order is $100 but consists of clothing and other items then the other items are charged the normal tax rate and clothing remains untaxed. I really need this to only work on one tax class. Everything else on the site is taxed at the basic tax rates.

 

Thanks

Craig

Link to comment
Share on other sites

And you make a nice function to calculate the cart based on the clothing products. Then you figure out should there be tax on that portion. If not, that portion gets reduced from the total before the tax is added.

 

If it should be added, then just proceed normally.

Link to comment
Share on other sites

Well ... you'd need a function or something to check the total of products in the cart that are clothing and see if that total is over $100

 

Then, if true, you need to recalculate the whole cart with tax for all products based on the tax settings defined.

 

If false, you need a modification to how the tax is calculated, a function or edit of the existing calculation, to not tax the clothing things and tax the other things based on their tax definitions.

 

Having a field in the products_info table for this would help.

 

I am not sure if the tax definitions could possibly be utilized here to manipulate this feature for you as I have not fussed a lot with variations to on and off. Currently, you have tax definitions. What you need to try is how specific can you get here.

 

I'd have to really fool with this a bit.

 

Perhaps someone who is into the tax thing might know off the top of their head if this can be done just with a tax group vs having to re-write the world.

 

I would need to play a bit and see what options/variations are available in the tax groups.

Link to comment
Share on other sites

Linda,

 

 

I'll try to be as specific as possible for you.

 

I have 2 tax classes. Clothing and Other

 

Other is taxed at 7% flat rate

Clothing is zero tax until total for clothing reaches $100 then charged at 7%

 

Eg: Customer order eqauls $350 of which $98 is clothing. The tax is only calculated on none clothing items.

 

Same order of $350 but clothing is $102 then tax is calculated on entire order.

 

Hope this helps to clarify things better for you.

 

Thanks

Link to comment
Share on other sites

I understand the conditions for when you tax and that there are settings involved.

 

What you need is a function to know when to do this and a modification to the cart totals and tax preparation on an order to accomodate the additional condition of if products in one of the tax groups total $100 or more that the tax is applied.

 

As I do not see this as being automatic, then this needs to be customized.

 

This can be done through a few peices of additional code to test the totals for the clothing group to see if it has yet reached $100 to know if the tax should be applied.

 

I do not know if anyone has created an add-on for this. But this could be customized to do this using osC ... it is just a matter of taking the time to make the modifications and changes for the shopping cart and the checkout process to utilize these conditions.

 

Without sitting down and writting it, I cannot tell you off the top of my head just how long this might be.

 

Looking at the /classes/shopping_cart.php file, I can see where the changes need to be made.

 

Basically a function to total clothing is needed. Then, if that function results in a total >= 100 the new additions would need to be used in the calculations for the final totals.

 

You have defined your products for the two tax groups. This can be used to help determin if the total has been reached and if the tax is active on clothing for a particular order.

 

This is not a difficult program to write, just might take some time to do it.

 

You might check the contributions to see if this has been addressed yet.

 

I do not recall seeing it, but I have not had a need to do so either ... :D

 

If you cannot find a contribution for this, it can be customized to suit your needs.

Link to comment
Share on other sites

Linda,

 

I have scoured the contributions and have found nothing that even comes close to what I need.

 

And since I'm only a learner...I wouldnt really know where to start.

 

Craig

Link to comment
Share on other sites

If I get some time I will see what all needs to be done to address this.

 

If there are any other conditions other than if clothing is >=100 charge tax on all otherwise charge tax on all but clothing, email me about it.

 

Thanks! :D

Link to comment
Share on other sites

Linda,

I am willing to make a donation to your cause if you want. Could you let me know when you might have a chance to look at this issue for me.

 

Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...