• Resolved fidgeter

    (@fidgeter)


    I was testing this plugin out for a client on a test server but unfortunately it doesn’t seem to be working as I thought it would.

    If I try to restrict specific products or product categories it still loads the products and categories. I know I could just “hidden” the products on the site but I wanted to be able to see the products in their categories as an admin during development and remove the restriction when going live.

    I tried using:

    IS A selected product “Test Product AC”

    —-

    I also tried one I saw on another thread:

    IS A product selected “Test Product AC”
    AND
    IS NOT A selected page “Shop”

    —-

    I also tried:

    IS A product with Category “Another Category”

    —-

    I also tried:

    IS Product Categories “Another Category”

    —-
    At this point I’m at a loss for what I’m doing wrong here.

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

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

    (@danieliser)

    @fidgeter – Sorry for the delay, just to confirm what are your other settings for that restriction, and does your sandbox use any caching currently?

    Thread Starter fidgeter

    (@fidgeter)

    It wasn’t using any caching and those were the only other settings. I ended up just using the functions.php file to restrict access to the shop pages until we were ready. I did come across another bug while working though. One of the links was hard-coded in the text on a page and went to HTTP instead of HTTPS. The result was it went to a 404 error page instead of redirecting to the custom URL. So good news is it blocked access, bad news is it didn’t forward where I had wanted it to.

    Plugin Author Daniel Iser

    (@danieliser)

    @fidgeter – Can you elaborate where you found this broken link? In our code, or in your settings? In general most of the urls the plugin would generate would use WP core URL generation functions unless it was user submitted content.

    Let me know. Glad you got it worked out.

    Thread Starter fidgeter

    (@fidgeter)

    I believe this was the case, although I haven’t had a chance to reproduce it and my sandbox doesn’t have HTTPS.

    The site is set up HTTPS. In wordpress settings both the admin and site URL are HTTPS. The pages were blocked. On one page a link that had in the WYSIWYG editor been inserted as HTTP for one of those blocked pages was sitting there. When clicking on that link it was going to a 404 error page instead of the redirected “Coming Soon” page. That’s my theory anyway.

    @danieliser
    Do you know if this was ever resolved? I am attempting to hide my store, but hiding the page “Shop” isnt working, nor is selecting the product, or categories. Can you look into this? The plugin is hiding specific pages for me, but not the store function for some reason. https://prnt.sc/si9k5c

    Thread Starter fidgeter

    (@fidgeter)

    I did not. I ended up using another plugin that allows you to limit product visibility based on login account access level but that basically just added a display:none to those products and caused other problems. Fortunately we’ve moved beyond the need for that plugin and this one is still being used for certain pages.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not working on product pages Woocommerce’ is closed to new replies.