You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not strictly speaking a bug but so stupid it may as well be a bug, to get the base price of an order item on the first and third stage of checkout, you need call item.item.basePrice, where on the last stage, you need to call item.sum('basePrice')
The reason for this is that at the first and third stage, item is an array of data, where on the last stage, it's an instance of Order\Entity\Item\Row
How can this be replicated?
Related Issues / Trello Card / Code?
Anything else to add? (Screenshots, background context, etc)
The text was updated successfully, but these errors were encountered:
Bug description
Not strictly speaking a bug but so stupid it may as well be a bug, to get the base price of an order item on the first and third stage of checkout, you need call
item.item.basePrice
, where on the last stage, you need to callitem.sum('basePrice')
The reason for this is that at the first and third stage,
item
is an array of data, where on the last stage, it's an instance ofOrder\Entity\Item\Row
How can this be replicated?
Related Issues / Trello Card / Code?
Anything else to add? (Screenshots, background context, etc)
The text was updated successfully, but these errors were encountered: