user2692541
user2692541

Reputation:

How get item price without currency in osclass

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

Answers (1)

maxhb
maxhb

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

Related Questions