Taxing Specific Terms?

Posts: 78
Joined: 01/17/2008

How could I go about taxing specific product terms?

This is an example of what I need to do.

-------------------------------------------
Environmental Handling Fee - Desktop Printer $8.00
Environmental Handling Fee - Desktop/Server $10.00
Environmental Handling Fee - Computer Monitor $12.00
Environmental Handling Fee - Portable (notebook/tablet) computer $5.00
Environmental Handling Fee - TV 18" or less $15
Environmental Handling Fee - TV 19" - 29" $25
Environmental Handling Fee - TV 30" - 45" $30
Environmental Handling Fee - TV 46" or More $45
-----------------------------------------------------------------------

Those products have specific fees.

Anyone? Thanks!

Posts: 4368
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Hmm... I don't think there's a generic fee module available, but you may be able to do some reverse psychology in the discount module. Sticking out tongue See what happens if you set a negative discount for a product... perhaps that could function as a fee and you could tweak the display to set line items that add to the order total to be titled as fees instead of discounts.

Posts: 78
Joined: 01/17/2008

Hmm that could work, Would it be easier to add a "role" that can't be changed and that roll is on certain products causing the price to go down?

Posts: 4368
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

That could work... I'd definitely document that for posterity's sake, though. Eye-wink

(This would be principle 3 of Zen and the Art of Drupal.)

Posts: 78
Joined: 01/17/2008

Hey Ryan thanks for helping me out on this one, I got a few most questions though.

So I've found a few simple solves.

1) Add attributes to the products you want to add the fee's to.
Problems with this method: Repetitive / It taxes the fee at checkout.

2) Create different classes for each of my categories instead of vocabulary lists. Then add tax rules for the fees and click witch one goes with the corresponding classes / fees.

Problems: I Didn't do this from the start and now all my product types are in categories terms. Sad 250+ Products I might have to redo Sad Second problem: I have a custom node-product.tpl.php and it doesn't copy over when I make a new class.

So now I have some questions.

First Question: If I was going to create new classes and I wanted to keep my customized node-product.tpl.php would I have to create another node-"classname".tpl.php?

Second Question: Is there a way I can avoid redoing my whole site by being able to tax certain taxonomy terms?

If anyone has ideas please let me know! - Thanks Justin

Posts: 4368
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

You can just copy your node-x.tpl.php to node-y.tpl.php, or you may get away with creating a template for each class and including node-x.tpl.php w/ require() or something.

Posts: 78
Joined: 01/17/2008

Here this might help me describe what I want to be able to do.

Please view the image. I really don't want to redo all my terms into classes because that would make me have to rewrite a few weeks of products.

AttachmentSize
Look here to see my problem.380.63 KB
Posts: 4368
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

My hunch is you'd have to alter the way the tax module works, and I doubt that would be easier than coming up with a different solution.