• 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mra13

    (@mra13)

    Thread Starter Mahendra9546

    (@mahendra9546)

    hi mra13 thanks for replying,
    but i am not asking abount country code or sign my problem is when i change the function $formatted_price = number_format($price, 2, ‘.’, ‘,’) to
    $formatted_price = number_format($price, 4, ‘.’, ‘,’) it shows me error. i want to display price at 4 decimal point but i can’t change the function any other function for this eg.round not working.so please help me about this.
    OR i am doing this because at paypal page the price is multiplied by total quantity but i am already sending total price it doesn’t need to be multiply.i am not getting file or code where it is multiplying therefore i need to send price upto 4-5 decimal point.any idea about both this problem?please help.

    Plugin Author mra13

    (@mra13)

    I am not sure what you are trying to do with teh total price. The individual item price will always get multiplied with the quantity. If it is 1 quantity then it will just be whatever the individual item price is. You shouldn’t have to make any modification for that. What currency is this for?

    Thread Starter Mahendra9546

    (@mahendra9546)

    sir i explain you briefly, 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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘price up to 4 decimal point’ is closed to new replies.