As a WooCommerce user, WooCommerce blogger and WooCommerce developer I often hear this question: “What’s the best hosting for WooCommerce?“.
Well, first and foremost, there is no “best” hosting for WooCommerce (and WordPress in general). There are so many choices out there that defining the “best” is impossible. Besides, if there were a “best” hosting platform, there would be only one hosting company left in business. Continue reading What’s the Best Hosting for a WooCommerce Website?
Ah, yet another million dollar question. If you have organized your WooCommerce products properly, you have “N” product categories and “M” product tags, where “M > N” (actually, if there were such a thing in algebra, it should be “M >>> N” as each product should be assigned to 1 category and multiple tags).
This means a lot of duplicate content. Even worse, if you have a product category called “Hats” and a product tag called “Hat”, what would you do if you were Google? Correct – it would probably not index either one as this is confusing in regard to user experience. Continue reading Should I Noindex WooCommerce Product Tag Pages?
I’ve been wanting to publish this guide for a long while. As a WooCommerce development freelancer, every day I repeat many operations that make me waste time… and one of them is indeed “How to get ____ if I have the $product variable/object?“.
For example, “How can I get the product SKU“? Or “How can I get the product short description“? Or maybe the product stock level, shipping class, tax class, price, regular price, sale price, and so on… hopefully this article will save you time.
Of course, not always you have access to the $product variable (I’m talking about WooCommerce hooks for example), so you’re also required to understand your case scenario and see if you can “get” that $product object in another way.
For example, you might know the $product_id. In this case, you have to find a way to “get the $product object from $product_id” – you find this example below.
Other examples might be the order or the cart pages. Once again, in here you don’t really have a $product available, so you have to loop through the order/cart items and “get” it. After that, you can then calculate and get any piece of information you require out of $product. Enjoy!