How to fix this: blank space instead of $0

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.

Posted in

Comments

7 responses to “How to fix this: blank space instead of $0”

  1. Hi,

    No fix yet??

    Cheers

    1. 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"]

      1. Thanks a lot…

  2. OzWellness Avatar
    OzWellness

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

  3. petranka Avatar

    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.

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

      thanks

  4. Hi, what shortcode do you use?

Share