No item name in dashboard referral

Hi again!

My first question is why this thread is closed https://www.itthinx.com/topic/referrals-items-not-showing/ though I’ve still asked for help?

Will try to explain again what’s wrong:

Installed:

Affiliates enterprise 4.4.0
Affiliates Permanent 1.5.0
Affiliates Stats Filters Order Details 1.0.2 by By George Tsiokos (to test pending se topic https://www.itthinx.com/topic/display-referrals-in-affiliate-area/ )
Affiliates woocommerce integration 3.1.0
Woocommerce 3.8.1

Tiers
Multi-tiered referrals is enable with 10 levels

When an order is placed, all levels in Tiers looks good in Admin -> Affiliates -> Referrals

My Question was:

I’ve got some issue with [affiliates_dashboard_referrals] shortcode.
it doesn’t show the ITEMS name when a order is PENDING or ACCEPTED in Affiliate Area (see printscreen)

I’ve triple checked your doc’s and my settings, maybe i’ve missed something and would be great to get some directions.

I also checked referrals-entry.php and one thing i’m wondering over is this part.


case 'status' :
switch( $entry->status ) {
case affiliates_referral_status_accepted :
$status = __( 'unpaid', 'affiliates' );
break;
case affiliates_referral_status_closed :
$status = __( 'paid', 'affiliates' );
break;
case affiliates_referral_status_pending :
$status = __( 'pending', 'affiliates' );
break;
case affiliates_referral_status_rejected :
$status = __( 'rejected', 'affiliates' );
break;
default :
$status = __( 'unknown', 'affiliates' );
}
echo esc_html( $status );
break;

As I understand it would also show up in the list when status is pending which it doesn’t?

So I did go a step further and found this thread with Georges free addon “affiliates-stats-filters-order-details” and did som test and then the ITEMS name shows.

Testing pending: [affiliates_affiliate_stats type=”stats-referrals” show_post=”false” show_pending=”true” show_currency_id=”false”]
Testing accepted: [affiliates_affiliate_stats type=”stats-referrals” /]

So why doesn’t the ITEM name shows with [affiliates_dashboard_referrals] shortcode?

Please take a look on my print screen with explaining.

Regards
Jonas

6 Responses to No item name in dashboard referral

  1. George January 15, 2020 at 4:53 pm #

    Hey Jonas,

    You’re welcome, if you decide to stick with the older shortcode because of the referral status, that would be fine by me. FYI, on this repo you will find another implementation to get hints and ideas.
    Regarding the staging site that would be great to check the situation, just a hint on this make sure to update all the plugins to their latest versions. The current version of Affiliates Enterprise is 4.4.0 and Affiliates WooCommerce Integration is 3.1.0 and you should not use the light version for this.

    Kind regards,
    George

    • CMzKonsult January 15, 2020 at 5:20 pm #

      Hi again

      I’ll go for the older shortcode though I need some extra to show.

      I’m gonna usethis one you created though I can see it already have if ( class_exists( ‘Affiliates_Multi_Tier’ ) ) which will be useful. Already started to play around and found alot to be useful. I only need to understand affiliates_affiliate_stats_renderer_data_output and affiliates_affiliate_stats_renderer_data

      As I wrote yesterday I’ll set up a dev site for you to dig into.

      /Jonas

  2. George January 14, 2020 at 6:10 pm #

    Hi Jonas,

    You’re welcome!

    May I have a look at your dashboard please? You may send us temp admin credentials to george at itthinx dot com.

    The issue shouldn’t occur especially for items involved in a referral this seems to be weird. Regarding which referrals are displayed and which don’t in Affiliates Dashboard Referrals section, pending referrals are omitted, only referrals accepted and closed are shown.

    It would also be useful for this support session to enable WP debugging. If you’re not aware how to do so, edit your wp-config.php file and do the following:
    Replace this line: 

    define( ‘WP_DEBUG’, false );

    with these lines:

    define( ‘WP_DEBUG’, true );
    define( ‘WP_DEBUG_LOG’, true );
    define( ‘WP_DEBUG_DISPLAY’, false );

    All log messages will be stored in wp-content/debug.log file.

    Kind regards,
    George

    • CMzKonsult January 14, 2020 at 7:12 pm #

      “Regarding which referrals are displayed and which don’t in Affiliates Dashboard Referrals section, pending referrals are omitted, only referrals accepted and closed are shown.”

      Oh I see, thought it would show up as Pending also.

      My client want that feature Pending features so I probably have to rethink and maybe work on rebuilding this code by you as the customer also has more requirements on what to display.

      I’m on localhost with my test server so can I setup a demo on my current installation tomorrow so that you can get in and dig around bit regarding why ITEM name not showing. Will send you an email with the link.

      Thank for great support so far.

      Regards
      Jonas

  3. CMzKonsult January 14, 2020 at 3:42 pm #

    Hi George

    Thanks for your reply

    Pages
    These pages containing Affiliates shortcodes have been detected : Earnings

    I only created a page called Earnings and implemented [affiliates_dashboard_referrals] and all test shortcodes with [affiliates_affiliate_stats type=”stats-referrals” /]

    Regards
    Jonas

    No I don’t have modified any template.

  4. George January 14, 2020 at 3:32 pm #

    Hi Jonas,

    I’ve checked your other topic and seems to be open for new comments but there’s nothing wrong with submitting a new one.

    Regarding the request itself, do you use Affiliates Dashboard or Affiliate Area page for your affiliates? I’m asking this because there is a difference in the approach as these two are implemented in a different way. Also, do you by any chance use a modified template for Affiliates Dashboard Referrals?

    I’ll check the situation on my end but if you actually use a modified template you may send me a copy to george at itthinx dot com.

    Kind regards,
    George

Only authorized members can comment on this topic.

Log in

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