The payment amount is constructed by totalling order products only, but an order can have shipping, etc as well.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | payment_ubercart_1827006_02.patch | 4.67 KB | xano |
| #1 | payment_ubercart_1827006_01.patch | 4.15 KB | xano |
The payment amount is constructed by totalling order products only, but an order can have shipping, etc as well.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | payment_ubercart_1827006_02.patch | 4.67 KB | xano |
| #1 | payment_ubercart_1827006_01.patch | 4.15 KB | xano |
Comments
Comment #1
xanoThe attached patch is based on existing Ubercart code and replaces the Payment line item type provided by this module with four new ones:
Three line items for when the order is paid entirely
- Products
- Order line items
- hook_uc_order('total', $order) results ("Other")
One line item for when the order is being paid partly
- Order balance
Comment #2
xanoAdd Payment >1.0 dependency, because this patch requires #1831496: Add line item callback for prefixed line item names.
Comment #4
xanoComment #6
xano