How to fix this: blank space instead of $0

Posted in

I don’t know if it’s just me or that’s the way the affiliate page is setup by default but when I use shortcodes to display affiliate statistics if there’s no commissions for example nothing is displayed which I find confusing. For example:

Commissions pending payment:

If there are no commissions pending payment I’d like to display:

Commissions pending payment: $0

Right now it looks like this:

Commissions pending payment:
Commissions paid:
Number of sales referred:

How can I fix this? Thanks.

7 Responses to How to fix this: blank space instead of $0

  1. upper August 30, 2013 at 7:57 pm #

    Hi,

    No fix yet??

    Cheers

    • antonio August 31, 2013 at 8:22 am #

      Sorry,

      yes, you can use the attribute “if_empty” in the “affiliates_referrals” shortcode. For example:

      [affiliates_referrals show="total" status="accepted" if_empty="$0"]

      • upper August 31, 2013 at 8:39 am #

        Thanks a lot…

  2. OzWellness May 12, 2013 at 8:26 am #

    Great if you could fix this issue as it does look a bit silly 🙂

  3. petranka April 19, 2013 at 6:43 pm #

    Hi, I’m using the following:

    [affiliates_referrals show="total" status="accepted"]
    [affiliates_referrals show="total" status="closed"]

    That’s all I get when I use them:

    Commissions pending payment:
    Commissions paid:

    I’d like to display:

    Commissions pending payment: $0
    Commissions paid: $0

    Thanks.

    • antonio April 21, 2013 at 7:06 am #

      Hi,
      true! , we will look to add in next updates.

      thanks

  4. antonio April 19, 2013 at 8:44 am #

    Hi, what shortcode do you use?

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