WooCommerce - excelling eCommerce
I can't password protect my shop. (9 posts)

  1. reinout1991
    Posted 3 years ago #

    The problem is that i want to have a password on my shop so only my clients can see my shop products and prices.

    Only if i click the password protect option on my shop page it does'nt protect it at all only show's the page and states that the page is password protected.

    Any help would be appreciated:)


    [ Please do not bump, that's not permitted here. ]

  2. Moritz
    Posted 3 years ago #

    I have the same problem: actually the shop page is not a wordpress page, but transformed into a "custom post type" (see here)
    I found the code to password protect a post type (see here). More info is on the woocommerce documentation.
    However I dont know how to implement this in wordpress. I tried several plugins but it doesnt seem to work.
    I think we could frame the questions as: how do you password protect a custom post type in wordpress and how do you hide the content on that kind of post?

  3. Moritz
    Posted 3 years ago #

    see this discussion: here

  4. royho
    Plugin Author

    Posted 3 years ago #

    Well if you want to only target certain post type you can always use:

    if ( get_post_type() == 'product' && ! is_user_logged_in() ) { //do something }
  5. ManusH
    Posted 3 years ago #

    there is an extension just this purpose: Catalog Visibility Options

    It has some features as:
    -Provides the ability to hide prices, or show prices only to authenticated users.
    -Allows configuration of alternate price content, when prices are disabled or shown only to logged in users.

  6. Moritz
    Posted 3 years ago #

    thx @royho and @ManusH. that helps! the extensions sounds good, even though it does not exactly what i need (which is password protect the shop with a global password, without a login needed). will check it out. thanks!

  7. TechDaddyK
    Posted 2 years ago #

    Moritz, were you able to figure this out? This is exactly what I'm trying to do as well (one global password without need to login).

    Thanks in advance for sharing!

  8. Moritz
    Posted 2 years ago #

    Hi TechDaddyK,
    we continued the discussion here and actually (more or less) resolved the problem. Take a look: http://wordpress.org/support/topic/woocommerce-shop-page-visbility-for-members-only?replies=3
    Does that help?

  9. TechDaddyK
    Posted 2 years ago #

    Thanks for replying, Moritz! Actually, after discussing other requirements of the project, we went another direction.

    I created a subdomain with it's own installation of WordPress. We password-protected that subdomain and modified the original theme to make the store have a different menu and slightly different look.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic