I have a few line item scripts that all happen on the checkout page. The one that is giving trouble is a coupon line item.

Whether I store a negative value or positive, it doesn't affect the tax that is calculated. It is always calculated on the subtotal, which is the total of the products.  This includes visiting the confirmation page and going "back".
Tax should be calculated on the subtotal minus the coupon amount.
My only clue is that Ubercart Taxes might expect line items before the checkout page??? (All my line items are written on submit of the checkout page, before the confirm page.
Should I write my line items on the checkout page with AJAX? That  doesn't even make sense in the light of how hook_order is written.

Sure appreciate any help if there is anyone who has a clue. This is a production site and I wouldn't blame my client for getting antsy.



--


Kindest regards, Dayton Perkins Dayton
                Perkins

Good News Design

Intelligent Web Programming for Business
Dayton Perkins: Recent American Expat in Hong Kong

dayton@goodnewsdesign.com dayton@goodnewsdesign.com
Phone Me U.S Phone (rings me in HK) 616-795-9039

http://goodnewsdesign.com
GND Logo