WooCommerce Tutorials
How To Setup Buy 3 Get 1 Free In WooCommerce

You are a store owner and you want to run a promotional campaign that gives your customer one product for free for every 3 (or any other number) items they buy in a single order. Obviously, WooCommerce doesn’t support this kind of setup by default. Luckily for us, there is a plugin that does this […]

Read More…

WooCommerce Tutorials
How To Get Product Type In WooCommerce

When developing plugins for WooCommerce, sometimes, knowing the product’s type is very important. The funny thing about WooCommerce is if you create a product from the class “WC_Product” and run: The result is always simple. This sounds confusing, doesn’t it? I feel the same way. Get WooCommerce Product Type Using WC_Product_Factory Since version 3.0, there […]

Read More…

WooCommerce Tutorials
How To Set Woocommerce Custom Shipping Cost Per Product

The goal Learn how to set custom shipping cost per product in WooCommerce. The method We are going to use WooCommerce shipping class to set different shipping cost per product. What is a WooCommerce shipping class This is the definition of shipping class on WooCommerce documentation. I think it’s clear enough: Shipping classes can be […]

Read More…

WordPress
How To Limit Max Order Quantity In WooCommerce

As a shop owner, you may want to sell as many items as possible. However, there are cases you want to limit the number of items a single customer can purchase. The reasons can vary: maybe you have limited stock, maybe you don’t want a single customer stocks many items and reseller it later with […]

Read More…