• Resolved Allpinguins

    (@takisping)


    Dear friends we use your plugin….

    But we get an error “Page not found” when we regenarate affiliate links….
    For an example this the right link

    And we get this link

    We did save the permalinks many times…..

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    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)
  • You must be logged in to reply to this topic.