WooCommerce Tutorials
WooCommerce Developer Cheat Sheet

This post is for WordPress/WooCommerce developer only. If you have problem implementing what I’m going to show you, please drop me a message. How to get WooCommerce attribute label There is a function for this purpose: wc_attribute_label($attribute_name) For example, the attribute name is pa_color, your name for this attribute is Color. The code above outputs […]

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. If you want the get_type method to return the correct […]

Read More…