Reputation:
How to get the item price without currency code in osclass? I need this value to send it to Paypal.
I want function to get 10 numbers only.
Upvotes: 1
Views: 394
Reputation: 8865
osc_item_price() is the correct funtion to use but you have to divide the returned number by 1000000. You can use the following function to do so:
function getItemPrice() {
return osc_item_price()/1000000;
}
Upvotes: 1