want to affect commission rate and commission amount decimal places

Posted in

Hi,

Need a tip on how to control decimal places shown on shortcode which show commission rate and commission amount.

Currently, it shows 6 decimal places like 100.000000 want it to be 100.00 .

Please advise.

Thanks,
-Sudd.

5 Responses to want to affect commission rate and commission amount decimal places

  1. Sudd December 15, 2017 at 7:42 pm #

    Antonio,

    Your tip on fixing the decimal places in Manage Affiliates is working.

    The affiliate woo commerce orders shortcode shows referral amount still shows 6 decimal places. How do we affect this part?

    Thanks for your assistance.

    -Sudd.

    • antonio December 18, 2017 at 8:10 am #

      Hi,
      There are some shortcodes that can not be limited to decimals, we have it pending for the following updates.
      Kind Regards,
      Antonio B.

  2. Sudd December 11, 2017 at 5:33 pm #

    Hi Antonio,

    I am also using affiliates_affiliate_profile short code by which showing referral Amount and referral Rate. These values is what I want to affect.

    On Woocommerce setup, if you mean the settings for Currency Decimal , it is set to 2. Which is showing 2 decimal places for product amount.

    Thanks,
    -Sudd.

    • antonio December 13, 2017 at 6:00 pm #

      Hi Sudd,
      Using this shortcode, I can not replicate this issue. Please check if editing the affiliate from Affiliates->Manager Affiliates, you can see the field with two or six decimals.
      If the problem persists, please send me dashboard admin access to antonio[at]itthinx[dot]com indicating this topic, and I’ll have a look at your settings.
      Kind Regards,
      Antonio B.

  3. antonio December 11, 2017 at 3:50 pm #

    Hi Sudd,
    I suppose you’re using the [ affiliates_woocommerce_orders ] shortcode. This uses the get_woocommerce_price_format() function, so the format is based on the woocommerce decimals (you can set this in Woocommerce->Settings)
    Kind Regards,
    Antonio B.

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share