• Resolved armenkar

    (@armenkar)


    Hello,

    I am using WooCommerce and created a shop page and pagination (1,2,3 etc)

    I want to allows not-logged-in users to be able to view only the first page of the shop, so that whey they click on 2nd page (via pagination) they see a message to login/register.

    Is this possible to do with your plugin? If yes, what would be the best way?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @armenkar – Hmm, interesting. Never tried to be honest. I know checking for a WooCommerce shop page is easy, but the plugin has no conditions currently to check for specific pagination. Added it to our issue tracker: https://github.com/JunglePlugins/Content-Control/issues/20.

    Thread Starter armenkar

    (@armenkar)

    @danieliser thanks. Then I got another question: I have restricted Product pages for WooCommerce, however the plugin also restricts the Shop page – is this a standard behaviour? My setting in content restriction is :“Is a Product”.

    Basically, I want to restrict individual product pages, but have the Shop page open to everyone.

    Plugin Author Daniel Iser

    (@danieliser)

    @armenkar – Technically, though not ideal, this is how WP works. If you call is_post while on the blog index it also returns true.

    Since many of our conditions are mapped to core WordPress functions they have the same limits.

    In this case what you do is something like

    Is A Product AND Is Not Shop Page.

    Hope that helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Restrict access to shop pages (pagination)’ is closed to new replies.