Ubercart Taxonomy Tax

Contrib type: 
Module
Status: 
Initial upload
Moderation: 
Awaiting moderation

Downloads

Latest version: 
6.x-1.x-dev
Compatibility: 
Ubercart 2.x

Allows Ubercart tax rates to be assigned to taxonomy terms.

After installing this module, you will be able to select taxonomy terms from the tax rate edit screen to apply product tax to.

Please note that line item tax will show up separately on the order. So you may want to create separate tax rates to provide appropriate titles (e.g. Shipping tax, Discount tax adjustment etc).

Related discussion: http://www.ubercart.org/issue/15097/conditionally_tax_products_based_tax...


PreviewAttachmentSize
uc_taxonomy_tax.zip5.16 KB
pcambra's picture
Offline
Bug Finder
Joined: 01/23/2008
Juice: 251
Hi I will need this module

Hi

I will need this module for several sites and I think I will have to make changes on it, can you contribute & mantain it in drupal.org?
If this is not possible, could you please allow me to contribute it?

Thanks for the module!

leonk's picture
Offline
Joined: 01/15/2010
Juice: 128
Hi pcambra, I applied for a

Hi pcambra,

I applied for a cvs account to upload this to drupal contrib over 2 months ago. The application can be found here: http://drupal.org/node/789342

There's not been much progress made on it, which I think is down to...

a) not enough demand appearing for it (leaving a comment on the application thread might help it).
b) Moderators are busy with Drupal 7/migration to git
c) The functionality of the module is somewhat obscure, making it difficult to test.

But yes I'd very much like to see it up on drupal contrib, but for the time being if you make any changes post them back here. I'm not going to be able to work on it for quite a while so would be happy for you to take things further.

Thanks
Leon

shinz83's picture
Offline
Joined: 07/28/2010
Juice: 56
To Tax or Not To Tax - Based on a Attribute Option

Leon, you appear to be the go-to for Ubercart.

I am currently doing event registration with a ton-o attributes w/options. I want to make the final attribute a way for users to identify whether or not they should be taxed on the order.

I have tried to alter conditional actions for taxing to very little success.

Any advice or guidance would be greatly appreciated! I'm under a gun, not 'the gun'.

leonk's picture
Offline
Joined: 01/15/2010
Juice: 128
Re: To Tax or Not To Tax - Based on a Attribute Option

You should be able to use conditional actions to check whether the order has a particular attribute option, and then decide whether or not to apply tax to the entire order.
It will work on the entire order, so you could not just conditional add tax for one item in the order (this is generally enough in most cases).

If you need to tax on a per-product basis, one way you could do it, is have two separate products for taxed and non-taxed.
These could both be referenced to a base product (where all the description, image etc is stored).
Then using uc_taxonomy_tax you could assign different terms to each sub-product, the user could then decide which one to 'add to cart' and be taxed non-taxed.

Or you could look into hook_calculate_tax to apply your own tax logic.

Hope that helps.
Leon

shinz83's picture
Offline
Joined: 07/28/2010
Juice: 56
Attribute Option setting

I was trying to trigger calculate taxes with an attribute option selection. However, it was not working properly. It seemed to add or not add taxes fine when I clicked 'add to cart' but when I when to the next step "review order" - the tax settings disappeared.

So I ended up rigging it to trigger by postal code, and made the postal code to negate taxes a setting of "exempt". So, on the honor system, customers can enter "exempt" in what was the postal code box (edited to read differently). Once they enter "exempt" the taxes are eliminated.

It works, but... yuck.