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…