Is IEF supposed to generate an accurate "total price" field on each line item added to an order? (I'm attempting to use IEF on the admin/commerce/orders/add form, or a similar form, and hitting the UX snag of not actually seeing the line item total.)

As near as I can determine this functionality isn't actually implemented because the commerce_total field is only calculated as part of the ->save method on the line item controller class, and not anywhere else.

Basically what I'm trying to determine is if this feature a) doesn't exist or b) is broken in some way I haven't figured out yet. Thoughts?

Comments

bojanz’s picture

Status: Active » Fixed

It exists and works for me.
The line item controller's save method is called on each saved line item (when the order is saved).

EDIT: Committed a fix today that is probably related to what you saw. Try tomorrow's dev release.

Kazanir’s picture

Sorry I should have been more clear, I meant in an on-the-fly fashion, which doesn't happen because that ->save method isn't called on the line items before the whole order is submitted -- so one ends up with a bunch of line items that have their unit price, but no price components or computed commerce_total fields etc.

bojanz’s picture

Okay, understood. The latest -dev has that fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.