Hello,
I'm trying to think of the best way to hook into the tax system and create a tax line item per product(s) that is shipped from the same state it is delivered to. Shipping addresses are per product, not per entire store. I'd like to do this without hacking Ubercart.
Some solutions I thought it would make sense are:
1) Creating a custom uc_taxes_action_apply_tax action. (how/where do I do this?)
2) Implementing hook_calculate_tax (this calls #1 above with entire $order which is used to calculate tax and unfortunately uses the subtotal instead of a specific product for taxable dollar amount.)
3) Create an entirely new trigger/action/predicate for my situation.
Example: If a person ships to California and buys 1 product from Florida, 1 product from New York, and 1 product from California, she would see 2 tax line items (Florida & New York) with appropriate tax amount for each.
Can someone with better knowledge of the Ubercart tax system please advise.
Thanks,
Edwin-
