price up to 4 decimal point
-
sir i my question is, before my paypal page i select total quantity for ex:400 and its total price 69.63euro so at paypal page it should display total quantity 400 and total price 69.63 euro.but it multiply 400*69.63 and shows total price 27852 euro.that is wrong.
1.if you tell me where to change the code for multiplication. OR
2. an alternative for this instead of sending total price 69.63 i divided total price by quantity i get value 0.174075 for 1 quantity. so i am sending 0.174075 this value at paypal page where it should multiply total quantity and display total price 69.63. but it is not accepting
0.174075 .it accept only 0.17 and give total price 68.00euro. so i changed the
function $formatted_price = number_format($price, 2, ‘.’, ‘,’) to
$formatted_price = number_format($price, 4, ‘.’, ‘,’) but it shows me error.it is not accepting decimal point more than two point.so plz help me about solving this. its urgent.
- The topic ‘price up to 4 decimal point’ is closed to new replies.