Closed (fixed)
Project:
Inline Entity Form
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 May 2013 at 16:48 UTC
Updated:
17 Jul 2013 at 06:11 UTC
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
Comment #1
bojanz commentedIt 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.
Comment #2
Kazanir commentedSorry 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.
Comment #3
bojanz commentedOkay, understood. The latest -dev has that fixed.