We are currently a free user and if this is resolved we would like to become a paying customer.
Hey @wpsupacc,
Thank you for reaching out! I’m afraid that this system is integrated and the way it works cannot be modified easily.
However, as a workaround, you could redirect users that are logged-in, but are not affiliates, from the affiliate account page to another page, maybe the registration page via this code snippet:
function slicewp_custom_template_redirect_non_affiliate() {
if ( ! function_exists( 'slicewp' ) ) {
return;
}
if ( ! is_page() ) {
return;
}
if ( ! is_user_logged_in() ) {
return;
}
if ( get_the_ID() != slicewp_get_setting( 'page_affiliate_account', 0 ) ) {
return;
}
$affiliate = slicewp_get_affiliate_by_user_id( get_current_user_id() );
if ( ! is_null( $affiliate ) ) {
return;
}
wp_redirect( 'https://yourwebsite.com/some-page/' );
die();
}
add_action( 'template_redirect', 'slicewp_custom_template_redirect_non_affiliate', 100 );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://projectdmc.org/plugins/code-snippets/).
Also, please make sure to replace the “https://yourwebsite.com/some-page/” link to a link from your website.
Thank you and best wishes,
Mihai
