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.
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.
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.
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.
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");