WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. reinout1991
    Member
    Posted 1 year 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:)

    http://wordpress.org/extend/plugins/woocommerce/

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

  2. Moritz
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    see this discussion: here

  4. royho
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    there is an extension just this purpose: Catalog Visibility Options
    http://www.woothemes.com/products/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.
    -etc...

  6. Moritz
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags