Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author joost de keijzer

    (@joostdekeijzer)

    Hi Eric,

    This currently isn’t an option. The plugin would have to be changed.

    Maybe the round attribute should support additinal string values “up” and “down”?

    Thread Starter thepofo

    (@thepofo)

    Hey Joost,

    Good suggestion. I could do this via the ceil(x) functionality as well but how do I get the value only without any html markup. Does the plugin allow this?

    Plugin Author joost de keijzer

    (@joostdekeijzer)

    Hi Eric,

    You can always use ceil(do_shortcode('[shortcode with correct attributes to only return the number]'))

    see http://codex.ww.wp.xz.cn/Function_Reference/do_shortcode

    Plugin Author joost de keijzer

    (@joostdekeijzer)

    Re-reading your question and my answer, it’s not a correct answer!

    The shortcode will always output the currency and format the number localized (with thousands and decimal seperators).

    I’ll look into it…

    Plugin Author joost de keijzer

    (@joostdekeijzer)

    Hi Eric,

    I’ve updated the plugin so you can now call the convertor staticly from PHP. Not on ww.wp.xz.cn yet, but available at https://github.com/joostdekeijzer/wp_eurofxref/tree/static-convert

    <?php $process_later = EuroFxRef::convert( $amount, $from, $to ); ?>

    Could you please test it?

    Thread Starter thepofo

    (@thepofo)

    Hi Joost,

    Perfect Bedankt :), Thanks

    This works perfectly and exactly what I needed.

    Eric

    Plugin Author joost de keijzer

    (@joostdekeijzer)

    code is now in git master branch and published as version 1.3

    braincircus

    (@braincircus)

    hi Joost,
    i’m using <?php $process_later = EuroFxRef::convert( $amount, $from, $to ); ?> and it works fine.
    there are more parameters in the php version? i need the different dots and comma for the different currencies to round and paste it properly.
    thanx for your work, erich not eric 😉

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

The topic ‘Round up currency’ is closed to new replies.