• Resolved henrysonlaya

    (@henrysonlaya)


    the profiles of each seller can be hidden?

    I would like to be able to hide the sellers’ profiles from the web visitors, it is only visible to the people subscribed to each seller’s profile or product

Viewing 1 replies (of 1 total)
  • Hello @henrysonlaya ,

    Out of the box, such features are not available in Dokan. However, you can make it work with custom code. In this example, I have made sure the store page can be seen if only the user is logged in to the site –

    function my_page_template_redirect() {
        if ( dokan_is_store_page() && ! is_user_logged_in() ) {
            wp_redirect( home_url() );
            exit();
        }
    }
    add_action( 'template_redirect', 'my_page_template_redirect' );

    You need to add additional conditions to figure out if the user is subscribed to that seller. You can take a professional developer’s help if you are not comfortable with the code.

    Thank you ??

Viewing 1 replies (of 1 total)
  • The topic ‘the profiles of each seller can be hidden?’ is closed to new replies.