• Hello ladies and gentlemen,

    Best wishes for 2018! And please forget my poor english…

    I’m using your excellent plugin for French products with some Advanced Custom Fields.

    By the way, in France, we are using the “,” as floating decimal, not the “.”.

    So, i’m using ACF to indicate the price of the item (like 3,00) and in my page template, I get the ACF value to insert it in the Simple PayPal shortcode, in the price=”xxx”.

    But when adding the item to the cart, the “,” is not understood as the floating decimal and the price becomes 300…

    Do you have any suggestion to help me with that point?

    I have searched how to modify the floating decimal in the shortcode to switch the “,” to a “.” but did not find out how…

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, Happy New Year to you too ??

    Please read the following documentation. Let me know if this helps you.

    Kind regards

    • This reply was modified 6 years, 10 months ago by mbrsolution.
    Thread Starter philos1964

    (@philos1964)

    Hello mrbsolution and thanks a lot for your help ??

    It’s almost good but not exactly what I need (unfortunately).

    Not so easy to explain…

    – In the ACF field I write 3,00
    – Before adding your suggestion to functions.php, when calling the ACF field to populate the “price” in your plugin I get 300
    – After adding the “filter” I get 300,00

    The floating decimal is the right one, but not at the right place.

    I have tried to play with number_format() but my PHP knowledge doesn’t look good enough…

    In the Simple Paypal Shopping Cart, there is options to define the currency symbol, but nothing to define the decimal separator, that could be of some help ??

    Plugin Contributor mbrsolution

    (@mbrsolution)

    Hi, I have submitted a message to the developers to investigate further your issue.

    Thank you

    Thread Starter philos1964

    (@philos1964)

    Thanks a lot mbrsolution, I appreciate your support.

    Have a nice day!

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