Timeline for How to get Product Cost from Order Items
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 19, 2021 at 16:05 | history | edited | Fabian Blechschmidt | CC BY-SA 4.0 |
added 164 characters in body
|
Aug 18, 2021 at 15:22 | comment | added | Dharam | It should be stored against the order item separately because the cost of product (item) could change when you are pulling this data. that's the reason the data of an order related to pricing, name and all that info should be stored against order item at the time of placing order. | |
Oct 6, 2016 at 17:54 | vote | accept | AJK | ||
Oct 6, 2016 at 17:54 | comment | added | AJK |
aha! $item->getProduct()->getCost() worked, did not know cost didn't get passed over to the order, thank you!
|
|
Oct 6, 2016 at 17:47 | history | answered | Fabian Blechschmidt | CC BY-SA 3.0 |