Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello there,
    thanks for contacting us!

    Please try adding the following code in the functions.php file of your active theme and check if it solves the problem:

    if ( ! function_exists( 'get_referral_url_custom' ) ) {
    function get_referral_url_custom( $url, $ref_name, $token, $base_url ) {
    if( isset( $_REQUEST['base'] ) ) {
    $url = $_REQUEST['base'] . "?" . $ref_name . "=" . $token;
    }
    return $url;
    }
    add_filter( 'yith_wcaf_get_referral_url','get_referral_url_custom', 10, 4 );
    }

    Please let me know.

    Best regards.

    Thread Starter Allpinguins

    (@takisping)

    Works great! Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Url problem’ is closed to new replies.