• Resolved jkpvs14

    (@jkpvs14)


    Hello,

    I have just downloaded your plugin and what a breeze to set it up! Well done.

    Once I enter an amount to convert with a decimal point (cents) $102.86 it says invalid format – is there something I’m missing or does your premium plugin allow for cents to also be converted?

    Thank you in advance.

    Regards,
    Jhorene

    https://ww.wp.xz.cn/plugins/cbcurrencyconverter/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Sabuj Kundu

    (@manchumahara)

    Hi,

    Did you use the $ sign ? just try to put 102.86 without $

    Plugin Author Sabuj Kundu

    (@manchumahara)

    Are you trying with $102.86 or 102.86

    Tips: don’t use currency sign in amount field.

    Hi Sabuj,

    I’m having the same problem, but I’m not inputing any currency signs. The only characters I’m entering are numbers and the decimal point, yet I get “Input in wrong format” every time.

    Any ideas?

    Plugin Author Sabuj Kundu

    (@manchumahara)

    Can you give me the value you are entering ? or contact us via http://codeboxr.com/contact-us/ I can give you skype support to understand or fix this.

    Hey! Thanks for responding. I actually fixed it. Looks like your regex filter wasn’t allowing decimals.

    In currencyconverter_widget.js, on line 40, I changed:
    /^\+?(0|[1-9]\d*)$/
    to:
    /^(\d{1,3}(\,\d{3})*|(\d+))(\.\d{2})?$/

    And now it works great.

    Plugin Author Sabuj Kundu

    (@manchumahara)

    New version pushed in wp.org, please test. also compatible with it’s pro addon http://codeboxr.com/product/cbx-currency-converter-for-wordpress/

    Thanks! I’ve actually *heavily* modified the plugin at this point to get it to do what I want, so I won’t be updating it. However, I might need to roll it out on another website shortly, so I’ll use the new version there and test it out of the box. I’ll let you know!

    Plugin Author Sabuj Kundu

    (@manchumahara)

    Closing this issue as I didn’t hear anything lately. thank you for using this plugin

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Decimal Amount Gives Error’ is closed to new replies.