• Resolved pimonda1

    (@pimonda1)


    Hi there,

    First of all brilliant plugin. However we share often url’s of the products to our users but now they cant see the product pages (product templates woocommerces) either. Is there anyway possible that guest users at least can see the product info pages? (but ofcourse not going through the checkout process without an account)

    Thanks

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

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

    (@rahmohn)

    Hi @pimonda1

    You can use the filter wflu_should_redirect_not_logged_in_user to add custom logic to prevent redirecting when the user is trying to access the product page. Example:

    add_filter(
    	'wflu_should_redirect_not_logged_in_user',
    	function( $should_redirect_not_logged_in_user ) {
    		if ( is_product() ) {
    			return false;
    		}
    
    		return $should_redirect_not_logged_in_user;
    	}
    );
    Thread Starter pimonda1

    (@pimonda1)

    Hi there,

    Thanks for your fast response,
    We are not very technical is this a snippet we should add as code snippet into function PHP? or what is the best way to implement?

    Sorry for the inconvenience and thanks a lot.

    Plugin Author Ramon Ahnert

    (@rahmohn)

    Hi @pimonda1

    Yes. You can add this code snippet to the functions.php file of your theme.

    ( No need to say sorry ?? )

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Product page (templates) visible for guests’ is closed to new replies.