To block certain shipping methods for specific products in WooCommerce, you can use the Conditional Shipping and Payments plugin. Here are the steps to follow:
1. Install and Activate the Plugin
1. Install the Plugin: Go to your WordPress dashboard and navigate to Plugins > Add New.
2. Upload the Plugin: Click Upload Plugin and select the Conditional Shipping and Payments plugin file.
3. Activate the Plugin: Once uploaded, click Activate to activate the plugin.
2. Configure the Plugin
1. Navigate to the Plugin Settings: Go to WooCommerce > Settings > Shipping.
2. Enable Conditional Shipping: Toggle the Conditional Shipping switch to On.
3. Add a New Rule: Click Add New under Conditional Shipping Rules.
3. Create a Rule to Block Shipping Methods
1. Select the Condition: Choose Product from the condition list.
2. Select the Product: Enter the name of the product you want to block shipping methods for.
3. Select the Shipping Method: Choose the shipping method you want to block.
4. Set the Action: Select Hide as the action to hide the shipping method for the selected product.
Example Configuration
Here is an example of how to block the Standard Shipping method for a specific product named "Product A":
1. Navigate to the Plugin Settings: Go to WooCommerce > Settings > Shipping.
2. Enable Conditional Shipping: Toggle the Conditional Shipping switch to On.
3. Add a New Rule: Click Add New under Conditional Shipping Rules.
4. Select the Condition: Choose Product from the condition list.
5. Select the Product: Enter "Product A" in the product name field.
6. Select the Shipping Method: Choose Standard Shipping from the shipping method list.
7. Set the Action: Select Hide as the action to hide the shipping method for Product A.
Additional Tips
- Multiple Products: You can block shipping methods for multiple products by adding multiple rules.
- Product Categories: You can also block shipping methods for products within specific categories.
- Product Tags: You can block shipping methods for products with specific tags.
By following these steps, you can effectively block certain shipping methods for specific products in WooCommerce using the Conditional Shipping and Payments plugin[1][2][3].
Citations:[1] https://octolize.com/blog/disable-woocommerce-shipping-method-for-certain-products/
[2] https://aovup.com/woocommerce/disable-shipping-for-certain-products/
[3] https://www.thedotstore.com/disable-woocommerce-shipping-for-certain-products/
[4] https://www.youtube.com/watch?v=GzkKeIPZ34A
[5] https://avada.io/woocommerce/docs/disable-shipping-methods-certain-products.html