• Resolved phocasgardens

    (@phocasgardens)


    Our website has a dealer login, where dealers can go to buy products. Dealers have to login in order to see the wholesale products, which is why this plugin is used. Our client now wants to offer a retail store as well, where non-logged in users can see products. Is there a way to disable the forced login for certain product categories?

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

Viewing 1 replies (of 1 total)
  • Plugin Author Ramon Ahnert

    (@rahmohn)

    Hi @phocasgardens

    Yes, you can use the filter wflu_should_redirect_not_logged_in_user to implement your custom logic. Example:

    <?php
    add_filter(
    	'wflu_should_redirect_not_logged_in_user',
    	function( $should_redirect_not_logged_in_user ) {
    		return is_product_category( 'YOUR_CATEGORY' ) || $should_redirect_not_logged_in_user;
    	}
    );

    References:

Viewing 1 replies (of 1 total)
  • The topic ‘Private & Public Store’ is closed to new replies.