• Resolved stefvanriet

    (@stefvanriet)


    Dear AAM Support,

    I’m trying to hide the shop page of my WooCommerce shop with your plugin. I’m able to hide regular pages just fine. But the shop page stays visible no matter what kind of restriction method I use. I tried the Limit, Read and Redirect options at the bottom of the shop page in the dashboard. I can use List to remove it from the menu but that’s not really what I’m looking for. Do you have any suggestions as to what more I can try?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Noel

    (@noelalvarez)

    hi @stefvanriet,

    when you say shop pages? Do you meant just the one “Shop” page or are you referring to the category pages for the shop? coz both may require different actions.

    For the single SHOP page since it is a regular page it should be manage just like regular pages though.

    Thread Starter stefvanriet

    (@stefvanriet)

    Dear Noel,

    There is just one page (https://www.henzo.nl/shop/products/). If we can hide this page for not-registered-users than that would be enough for us. It doesn’t manage like regular pages.

    Noel

    (@noelalvarez)

    I thought so. So that page seemed to be displaying all the items with products as a category in you woocommerce.

    Managing Terms ( or Categories ) that includes the shop categories should be a feature in the AAAM Plus Package. The free version doesnt allow us to control/manage the categories/terms.

    Plugin Author AAM Plugin

    (@vasyltech)

    Hi @stefvanriet,

    Thank you for the detailed explanation to your question.

    WordPress is not as simple as it appears. Internally pages may can different way depending on how they are setup. It can be a single page or it can be a collection of pages (for example “archive”). Unfortunately “Products” page for WooCommerce typically is “archive” that is why it does not have true identity and can’t be managed on Posts & Terms page.

    As the option you can restrict access to you https://www.henzo.nl/shop/products/ page on URI Access tab.

    Please let us know if anything.

    Regards,
    Vasyl

    P.S. @noelalvarez please note this answers as it is quite common question.

    Thread Starter stefvanriet

    (@stefvanriet)

    Dear Vasyl,

    I could not get it to work using your URI access strategy.

    For people running into the same problem as me:

    As an alternative or temporary route you can add the following code to your functions.php file. Thus redirecting the shop page to another page on which you put your ‘no access’ text.

    function custom_redirect() {
    if( (is_shop() || is_product() || is_product_category() ) && ! is_user_logged_in() ) { 
    wp_redirect( site_url( '/ name of page with no access message ' ) );
    exit();
    }
    }
    add_action("tempate_redirect","custom_redirect");
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘AAM with WooCommerce’ is closed to new replies.