• Resolved devoidf

    (@devoidf)


    Hello I am using this plugin and it works great but i need to exclude the checkout page for guest to order and i can’t find any settings for it. what i can do to achieve it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter devoidf

    (@devoidf)

    ok i got the condition
    `is_woocommerce() || is_cart() || is_checkout()

    Plugin Author Ramon Ahnert

    (@rahmohn)

    Hi @devoidf

    You can add an action that removes the redirect_not_logged_users function when a condition is true. For example, to allow Checkout page to not logged in users, you can add the code below:

    add_action('template_redirect', function () {
       if (is_checkout()) {
          remove_action('template_redirect', 'redirect_not_logged_users');
       }
    }, 5);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to exclude checkout page from the restriction’ is closed to new replies.