call affiliates name [Solved]

i tried but failed:

[referrer_user direct=”true” display=”display_affiliate”]

[referrer_user direct=”true”]

[referrer_user direct=”true” display=”user_login”]

[referrer_user direct=”true” display=”user_nicename”]

[referrer_user direct=”true” display=”user_email”]

[referrer_user display=”user_url”]

[referrer_user direct=”true” display=”display_name”]

see screenshot for field i need to show please: http://awesomescreenshot.com/0f73mordf7


Comments

15 responses to “call affiliates name [Solved]”

  1. thank you it is working great.

  2. This would solve the problem above:
    howto call affiliate name via php, so it could be entered in WooCommerce checkout file? Please with examples.

    1. You can add to your theme functions.php file this code:

      add_action('woocommerce_after_checkout_billing_form', 'my_woocommerce_after_checkout_billing_form');
      function my_woocommerce_after_checkout_billing_form () {
      echo 'Distributor ID: ' . do_shortcode( '[aff_referrer_info show_name="" /]' );
      }

      cheers

  3. here is the WooCommerce code http://pastebin.com/LBJNRz1r
    see line 30 i added code from old affiliate software there.
    your plugin should write there.
    the show_name=”” should show then here:
    https://www.santegra-international.com/checkout/

    i tried to add the following code inside woocomerce fields but it was not exchanged with data:
    see here please: http://awesomescreenshot.com/0533ncezf3

    PS: Thanks working: Distributor ID: [aff_referrer_info show_name=”” show_direct=”” /]

  4. Hi,
    please share the code you are using in checkout page using pastebin.com
    1.- [referrer_user direct="true" display="display_name"] shortcode should show the affiliate name. You can try to add this to a page/post.
    >>> It shows my name!!!
    >>> https://www.santegra-international.com/test-aff/
    It is not possible to have a number in “Affiliate” or “name” field also if i change it in WP user management.

    2.- ‘Direct’ affiliate is created by default with id 1, so something is not right in your setup. In Affiliates->Options you can enable the Direct affiliate (maybe this is because your affiliate with id 1 is not working).
    >>>> http://awesomescreenshot.com/0fb3n5lh6d

    3.- Please share your code.
    cheers
    >>>> it was the code you gave me
    http://www.itthinx.com/plugins/affiliates-extra-fields/#comment-416505

    Please try to create a new affiliate and test the shortcode with this new affiliate.
    cheers
    >>>> done: https://www.santegra-international.com?partner=2
    https://www.santegra-international.com/test-aff/
    only shows the “-> Tobias Conrad <-" username


    here is the WooCommerce code http://pastebin.com/LBJNRz1r
    see line 30 i added code from old affiliate software there.
    your plugin should write there.
    the username(number) should show then here:
    https://www.santegra-international.com/checkout/

    Thank you very much for helping also during weekend.

    1. Hi,
      sorry I was doing the tests with the same user’s name and affiliate’s name, so did not see the problem.
      I have created Affiliates Referrer Info plugin with a shortcode, I hope this helps you. In your case: [aff_referrer_info show_name=”” /] if you need to show ‘Direct’ info add show_direct attribute.
      cheers

  5. i tried to add php you gave me to Woocommerce form-billing.php: still no view of data
    ID, AFFILIATES_EXTRA_FIELDS_META_LIST_NAMES, true);
    $extra_fields_meta = explode(“,”, $extra_fields_meta );
    $extra_fields = array();
    $extra_fields_labels = array();
    if ( count($extra_fields_meta) > 0 ) {
    foreach ( $extra_fields_meta as $name_field ) {
    $extra_fields[$name_field] = get_user_meta( $user->ID, $name_field , true);
    $extra_fields_labels[$name_field] = get_user_meta( $user->ID, AFFILIATES_EXTRA_FIELDS_META_LABEL_PREFIX . $name_field , true);
    }
    }
    ?>

    1. please use pastebin.com

  6. i tried to add code via code insertion but not viewing any data.
    http://awesomescreenshot.com/06b3n5c279

    1. Please try to create a new affiliate and test the shortcode with this new affiliate.
      cheers

  7. The affiliate “name” should be shown here.
    http://awesomescreenshot.com/0c73n5bd26

    please make it possible, i want to change to your affiliate software, the three points prevent the integration.

    1. Show Affiiate name, not Username, on pages
    2. show direct affliate name when user not referred through a link (may define direct affiliate)
    3. Show Affiiate name on WooCommerce checkout page please

    1. Hi,
      please share the code you are using in checkout page using pastebin.com
      1.- [referrer_user direct="true" display="display_name"] shortcode should show the affiliate name. You can try to add this to a page/post.
      2.- ‘Direct’ affiliate is created by default with id 1, so something is not right in your setup. In Affiliates->Options you can enable the Direct affiliate (maybe this is because your affiliate with id 1 is not working).
      3.- Please share your code.
      cheers

  8. new screenshot here it is very clear.
    http://awesomescreenshot.com/0293n5az63

  9. Your affiliate URL:
    https://www.santegra-international.com?partner=1
    ->here should be<- content from Affiliate see picture:
    http://awesomescreenshot.com/0f73mordf7
    It shows my name!!!
    https://www.santegra-international.com/test-aff/

    It should also work without visiting an affiliate link before. then it should show direct!?

  10. Hi,
    [referrer_user direct="true" display="display_name"] should work fine.
    Please be sure you have used before an affiliate link (otherwise shows nothing).
    cheers

Share