• Resolved ubulab

    (@ubulab)


    Gentile assistenza,

    avrei bisogno di una mano per attivare il pagamento tramite paypall in quanto nonostante io abbia l’account pro non mi permette di abilitare l’opzione. Inoltre volevo chiedere se esiste un modo per modificare l’url degli affiliati con la possibilità di inserire il nome dell’utente invece dell’Id.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author iova.mihai

    (@iovamihai)

    Hey @ubulab,

    Thank you for reaching out! To be able to pay your affiliates with PayPal, please follow our guide on setting up the PayPal payouts feature, here: https://slicewp.com/docs/paying-affiliates-paypal-payouts/

    Also, please make sure that you have followed the prerequisites for PayPal Payouts described here: https://slicewp.com/docs/paying-affiliates-paypal-payouts/#prerequisites

    As for tracking referral visits via user’s login instead of unique ID, this can only be done with the help of this code snippet:

    function slicewp_custom_track_visit_by_user_login( $affiliate, $query_arg ) {

    // Return if we have an affiliate
    if ( ! is_null( $affiliate ) ) {
    return $affiliate;
    }

    $user = get_user_by( 'login', sanitize_text_field( $query_arg ) );

    if ( ! $user ) {
    return $affiliate;
    }

    return slicewp_get_affiliate_by_user_id( $user->ID );

    }
    add_filter( 'slicewp_tracking_get_affiliate_by_query_arg', 'slicewp_custom_track_visit_by_user_login', 25, 2 );


    function slicewp_custom_affiliate_url_referral_query_arg_value_user_login( $query_arg_value, $affiliate_id, $format ) {

    $affiliate = slicewp_get_affiliate( $affiliate_id );

    if ( is_null( $affiliate ) ) {
    return $query_arg_value;
    }

    $user = get_userdata( absint( $affiliate->get( 'user_id' ) ) );

    if ( ! $user ) {
    return $query_arg_value;
    }

    return $user->user_login;

    }
    add_filter( 'slicewp_affiliate_url_referral_query_arg_value', 'slicewp_custom_affiliate_url_referral_query_arg_value_user_login', 25, 3 );

    Please copy the code and add it to your website. If you’re not sure how to add code snippets to your site, you can use the Code Snippets plugin (https://ww.wp.xz.cn/plugins/code-snippets/).

    Finally, because you are a paying customer, please make sure to contact us directly via our website (here: https://slicewp.com/contact/) whenever you encounter any issues or have questions about SliceWP.

    Thank you and best wishes,

    Mihai

Viewing 1 replies (of 1 total)

The topic ‘Paypall payment activation’ is closed to new replies.