Woocommerce Hide Product and Variation Documentation

Introduction

The Hide Product and Variation plugin is a powerful WooCommerce extension that enables store administrators to hide specific products or variations based on a set of flexible rules. With this plugin, you can manage product visibility based on user roles, countries, dates, times, and other parameters, offering a tailored shopping experience for your customers.


Features

Key Features

  • Rule-Based Product Visibility: Define rules to hide products or variations based on specific criteria.
  • Granular Control: Apply restrictions on product, category, or tag levels.
  • User Role-Based Restriction: Hide products for specific user roles (e.g., customers, subscribers, administrators, etc.).
  • Country-Based Visibility: Restrict product visibility for users from specific countries.
  • Date and Time Range: Set visibility rules based on specific date and time ranges.
  • Day-Based Control: Restrict visibility on particular days of the week.
  • Product-Level Implementation: Easily apply the rules directly to individual products or variations.

Installation

Steps to Install

  1. Log in to your WordPress dashboard.
  2. Navigate to Plugins > Add New.
  3. Click on the Upload Plugin button.
  4. Choose the plugin ZIP file and click Install Now.
  5. Once installed, click Activate to enable the plugin.

Configuration

Accessing Plugin Settings

  1. Go to WooCommerce > Settings > Hide Product and Variation.
  2. Click on the Rule Settings tab to begin creating rules.

Creating a New Rule

  1. Rule Title: Provide a descriptive name for the rule.
  2. Restriction Settings:
    • Product: Select specific products to hide.
    • Category: Choose categories where the restriction applies.
    • Tag: Specify product tags for targeted restriction.
    • Select Countries: Choose one or multiple countries where the rule applies.
    • Roles: Select user roles (e.g., Guest, Subscriber) to hide products for.
    • Date Range: Define a start and end date for the rule.
    • Time Range: Set the active hours for the rule.
    • Select Days: Choose days of the week for the rule.
  3. Quantity Restriction Tab:
    • Hide Product: Enable the checkbox to hide products or variations.
  4. Save the rule to activate the restriction.

Product-Level Implementation

  • Navigate to the specific product in the Products section.
  • Scroll down to the Hide Product and Variation settings.
  • Configure restrictions for the individual product or variation.
  • Save the product to apply the rules.

Scenarios and Use Cases

Scenario 1: Country-Based Restriction

Example: Hide a product from customers in certain countries.

  • Create a rule targeting the product.
  • Select the countries where the product should not be visible.
  • Enable the Hide Product checkbox.

Scenario 2: User Role-Specific Visibility

Example: Hide variations for guest users.

  • Define a rule targeting the specific variation.
  • Restrict visibility to only logged-in users.
  • Save and test the settings.

Scenario 3: Time-Sensitive Promotions

Example: Temporarily hide a product after a sale ends.

  • Set a date range for when the product should remain hidden.
  • Apply the rule to the product.

Benefits

  • Enhanced Customer Experience: Show products only to relevant audiences.
  • Targeted Marketing: Tailor product visibility based on customer location, role, or behavior.
  • Operational Efficiency: Automate product visibility rules to save time.

FAQs

Q1: Can I hide multiple products with a single rule?

A1: Yes, you can select multiple products, categories, or tags in the rule settings.

Q2: What happens if no rules are applied to a product?

A2: The product will remain visible to all users unless explicitly hidden.

Q3: Can I hide variations of a product separately?

A3: Yes, variations can be hidden individually using product-level settings.

Q4: Does this plugin affect SEO?

A4: Hidden products or variations will not appear on the front end but remain indexed unless excluded via robots.txt or meta tags.

Q5: How do I troubleshoot if a rule is not working?

A5: Ensure the rule settings are correctly configured and saved. Check for plugin conflicts or caching issues.