WooCommerce 3.3 added a new "uncategorized" category that is now required as a default category. This means any products without a category assigned to it will be automatically assigned to this default category. You can rename the category, and I recommend doing so and using it. But if you would like to hide the default […]
Category: Snippets
Rename WooCommerce Shipping Labels
Shipping methods in WooCommerce can only have one title / label. But what if you need the title to change conditionally based on the actual cost of the shipping method? Consider the following flat rate shipping method. If a “Large Item” is in the cart, shipping will cost $10. Otherwise, the flat rate method will actually […]
Chain coupons together in WooCommerce
Problem I recently got asked if it was possible to have two discounts built into one coupon code in WooCommerce. The store owner had an add-on service for products that costs $5. So in a mailer, they wanted to send out a flat $5 discount coupon code to encourage sales of this add-on service. But they […]
Modify Variable Product Prices in WooCommerce
By default in WooCommerce, if a variable product has multiple prices available, the price will show a range like this: Before WooCommerce 2.1, this was shown a bit differently, with just “From: $x.xx”: In some cases, it may be best to not show your customers the highest possible price. In fact, if you go over […]
Hide shipping information on product pages in WooCommerce
By default, WooCommerce shows your product’s shipping information on the product page in the “Additional Information” tab. Sometimes this may not be appropriate or necessary for a product, so let’s find a way to remove it! On a default installation of WooCommerce with a Storefront theme, the product page will look something like this: This Additional Information […]