• Hi,

    I’ve just installed the plugin, at the moment the affiliate link is just set to the affiliate ID e.g. domain.com/?ref=1, I want the affiliate to be able to have a link more relevant to their user e.g. domain.com/?ref=JOHN . How do I change this and how do I allow the affiliates to manage their link, I cant see any options in the WP-admin area or the affiliate dashboard, is this a premium feature?

    Thanks,
    Matt

Viewing 1 replies (of 1 total)
  • Hello Matt,
    we hope you’re doing well!

    With our premium version it is possible to change that parameter in each of your affiliates, unlike this free version.

    Anyway, by adding this code inside the functions.php file of your active child theme you will be able to generate your affiliates token from your username instead of the user id, but it will only have effect on your new affiliates:

    if ( ! function_exists( 'yith_wcaf_change_default_affiliate_token_algorithm' ) ) {
        function yith_wcaf_change_default_affiliate_token_algorithm( $algorithm ) {
            $algorithm = 'username';
    
            return $algorithm;
        }
    
        add_filter( 'yith_wcaf_affiliate_default_token_algorithm', 'yith_wcaf_change_default_affiliate_token_algorithm' );
    }

    Check it out and tell us any doubt, please.

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Cant change the affiliate link/ID?’ is closed to new replies.