I have an order_item object and I see a few methods to get the price specifically getUnitPrice() and getTotalPrice(), however each of these returns the numeric value with the currency code append (e.g., "9.99 USD"). I just need the value and would rather not do any regex or string replacement.
Comments
Comment #2
joegl commentedComment #3
joegl commentedI am apparently not a smart person. However, helping future people is worth more than my self-esteem so I'll leave the answer:
EDIT: This is the full code I used to get the rounded price: