Introduction
The Hide Payment & Shipping Method plugin is a WooCommerce extension that provides control over payment and shipping methods. With this plugin, administrators can restrict specific payment and shipping options based on user roles, products, cart totals, and more, tailoring the checkout experience for different customer groups.
Features
- Rule-Based Restrictions: Create rules to hide payment or shipping methods based on a variety of conditions.
- User Role-Based Control: Customize available methods for different user roles (e.g., Customers, Administrators, Subscribers, etc.).
- Product and Category Restrictions: Apply rules to specific products or categories.
- Country-Specific Restrictions: Hide payment or shipping methods based on the customer’s location.
- Cart-Based Restrictions: Set minimum and maximum cart quantities or totals to control method availability.
- Flexible Selection: Choose whether to restrict payment methods, shipping methods, or both.
- Product-Level Implementation: Apply restrictions directly to individual products.
Benefits
- Improved Checkout Experience: Show only relevant payment and shipping methods to customers.
- Compliance with Policies: Restrict methods based on regional or business policies.
- Streamlined Operations: Automate restrictions to reduce manual intervention.
- Enhanced Customer Targeting: Tailor payment and shipping options based on user roles, cart totals, and more.
Installation
Steps to Install
- Log in to your WordPress dashboard.
- Navigate to Plugins > Add New.
- Click on the Upload Plugin button.
- Select the plugin ZIP file and click Install Now.
- Once the installation is complete, click Activate to enable the plugin.
Configuration
Accessing Plugin Settings
- Navigate to WooCommerce > Settings > Hide Payment & Shipping Method.
- Click on the Rule Settings tab to create and manage rules.
Creating a New Rule
- Rule Title: Provide a unique and descriptive title for the rule.
- Hide Payment & Shipping Method Settings:
- Select User Role: Choose the user roles to which the restriction applies.
- Products: Select specific products where the restriction will be enforced.
- Categories: Choose categories to apply the restriction.
- Select Customer: Specify individual customers to apply the rule.
- Select Country: Choose one or multiple countries for the restriction.
- Cart-Based Restrictions:
- Minimum Quantity: Set the minimum quantity in the cart for the rule to apply.
- Maximum Quantity: Set the maximum quantity in the cart for the rule to apply.
- Method Selection:
- Select Payment or Shipping Method: Specify whether to restrict payment methods, shipping methods, or both.
- Select Payment Method: Choose from options such as Direct Bank Transfer, Check Payment, Invoice Payment, etc.
- Select Shipping Method: Choose shipping options such as Free Shipping.
- Save the rule to activate the restriction.
Product-Level Implementation
- Go to the product page in the Products section.
- Scroll to the Hide Payment & Shipping Method settings.
- Configure the rules specific to that product.
- Save the product to apply the changes.
Scenarios and Use Cases
Scenario 1: User Role-Based Restrictions
Example: Hide specific payment methods for guest users.
- Create a rule targeting the “Guest” user role.
- Select the payment methods to hide.
- Save and test the settings.
Scenario 2: Country-Specific Restrictions
Example: Disable free shipping for customers in specific countries.
- Create a rule targeting the “Free Shipping” method.
- Select the restricted countries.
- Save and test the configuration.
Scenario 3: Cart-Based Restrictions
Example: Restrict payment methods based on cart total.
- Define a rule with a minimum cart total of $50.
- Restrict specific payment methods.
- Save and verify the behavior during checkout.
Scenario 4: Product-Level Control
Example: Hide payment methods for specific products.
- Open the product settings and configure the rule to restrict payment methods.
- Save the product to apply the rule.
FAQs
Q1: Can I apply restrictions to multiple payment methods at once?
A1: Yes, you can select multiple payment methods in the rule settings.
Q2: Does the plugin support guest users?
A2: Yes, restrictions can be applied to the “Guest” user role.
Q3: Can I hide methods for specific products only?
A3: Yes, the plugin allows product-level implementation of restrictions.
Q4: What happens if no rules are applied?
A4: All payment and shipping methods remain visible unless explicitly restricted.
Q5: Does the plugin support custom payment methods?
A5: Custom payment methods can be restricted if they are configured in WooCommerce.
Q6: How do I troubleshoot issues with rule application?
A6: Verify that the rule settings are correctly configured and saved. Check for caching issues or plugin conflicts.