A WooCommerce extension that allows you to exclude specific products and categories from being counted towards the free shipping threshold. It ensures that certain products do not contribute to the total cost required for free shipping, allowing you to control shipping costs more effectively.
- Download the zip file of the plugin from this repository.
- Upload and install the plugin through the 'Plugins' menu in WordPress:
- Go to 'Plugins' > 'Add New'.
- Click on 'Upload Plugin'.
- Choose the downloaded zip file and click 'Install Now'.
- Alternatively, you can clone the repository into your WordPress plugins directory.
- Activate the plugin through the 'Plugins' menu in WordPress.
- After activation, go to 'Products' in WordPress admin.
- Click on any product that you wish to exclude from free shipping calculation.
- Scroll down to the 'Product Data' section.
- Click on the 'Shipping' tab.
- You will see a checkbox to exclude this product from free shipping.
- Check the box to exclude this product from free shipping.
- Save the changes.
- Go to 'Products' > 'Categories' in WordPress admin.
- Click on any category you wish to exclude from free shipping calculation (or create a new one).
- You will see a checkbox labeled 'Exclude from free shipping'.
- Check the box to exclude all products in this category from free shipping threshold calculations.
- Save the changes.
- All products belonging to this category will now be excluded from the free shipping calculation.
Steps to test:
- Initiate a Playground instance by clicking the link above
- The test site has a Free Shipping method set for delivery within California, US. The threshold amount is USD 100
- Add one of two numbers of the
Non-free Shippingproduct to the cart - Go to checkout and observe that there is a flat rate shipping applied for any California test address.
- Add a few other products to the cart, the flat rate shipping fee will continue to show until the value of other products except Non-free Shipping goes above 100
- Create a category - say
No Free Shipping. Make sure you check theExclude from free shippingcheckbox. - Apply the category to any product, and repeat the above tests to see if its cost is excluded from free shipping threshold calculation.
Contributions are welcome! Please feel free to fork and submit a pull request or open an issue for any improvements or bug fixes.
This plugin is licensed under the GPLv2