• Resolved dplsig100

    (@dplsig100)


    Hello,

    I run a WordPress site with WooCommerce which can only be accessible to logged-in customers. The information and contents cannot be allowed to be scraped by search engines or accessed by non-authorised users. As such, the site is set to Private mode in the WordPress settings:


    I can’t stress enough, we cannot set the site to Public / Live. My users use a secure link to automatically login to the site (for obvious reasons I can’t share here).

    When the update to add Site Visibility to WooCommerce was added to our account, we found that the Coming Soon setting which had been added, was redirecting users after their successful login to the Page Template ‘Coming Soon’ and seeing the message there and were stuck there. Prior to this, users would successfully hit the homepage where they should be re-directed to.

    Naturally, the logical thing to do would be to activate the ‘Live’ setting on the Site Visibility on the WooCommerce and keep the WordPress privacy setting to ‘Private’.


    However, this causes a major problem. Because when ‘Live’ is set in the WooCommerce Site Visibility setting, this overrides the WordPress privacy setting to ‘Public’. For us, this cannot be allowed to happen. The two features/settings stand in conflict with each other. I’m sure this is a problem for any users who have ‘Private’ logged-in only sites, operating the WooCommerce plugin. It’s a massive oversight I believe.

    @shameemreza – I know you’ve been answering some similar topics on this and thank you for your work. I’d like to clarify that I don’t want to hide the Site Visibility setting, I don’t want it at all. Or at the very least, the Site Visibility setting cannot be allowed to override the WordPress Privacy settings. Can you please advise how we can keep our site Private for logged-in users and prevent the ‘Coming Soon’ page from appearing? I am happy to share some more helpful confidential information via email if that is possible, but I can’t share certain links/info here. If necessary, please feel free to add this incident report to the Github repository, as I do not have a login there.

    Regards,
    DPL

    • This topic was modified 2 months, 2 weeks ago by dplsig100.
Viewing 1 replies (of 1 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @dplsig100

    Thank you for explaining the situation in detail. I understand the priority is maintaining a private, logged-in user environment without redirecting to a Coming Soon page. Let’s explore how we can achieve this while keeping your privacy settings intact.

    First, set the WooCommerce Site Visibility to “Live” to prevent the Coming Soon page from displaying. This will override WordPress’s default privacy setting. After that, you can add a custom filter to restrict access to logged-in users only. This way, logged-in users can bypass the Coming Soon page and be directed to their intended page after login:

    add_filter( 'woocommerce_coming_soon_exclude', function( $is_excluded ) {
        if ( is_user_logged_in() ) {
            return true;
        }
        return $is_excluded;
    }, 10 );

    You can also try using this small plugin to disable the “Coming Soon” mode entirely, which may help prevent users from being redirected: https://gist.github.com/adrianduffell/8792c104401aaf2aa4fd7c43986d5e54

    If you need further assistance, I suggest reviewing this guidance from our developer team:

    Additionally, considering the nature of your setup, I’d recommend submitting this feedback as an enhancement request to enhance functionality and control over the Coming Soon mode on private sites.

    I hope this helps! Please let me know how it goes or if you need further assistance.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.