In the current article, we will review how to add a unique number issued by manufacturers to identify individual products – Manufacturer Part Number (MPN) – to your products in WooCommerce. We will describe how to add and save it for your products and variations in the backend; how to display MPNs for products and […]
Posted on by Tom Anbinder— 44 Comments
One of the reasons why WooCommerce is the most popular eCommerce platform is the great flexibility it offers. There is always a solution for whatever you are trying to achieve. There seems to be an API for almost anything that you want to do with WooCommerce. Have you ever wanted to add a custom fee […]
Posted on by Tom Anbinder— 21 Comments
Sometimes you need to hide a product or make it non-purchasable depending on the visitor’s user role, for example, make all products non-purchasable for not logged users, i.e. “guests”. You can use a plugin for that or add a PHP snippet to your (child) theme’s functions.php file. There is a number of ways we can […]
Posted on by Tom Anbinder— Leave a comment
Final Product Price Use this snippet, if you need to retrieve WooCommerce product’s final price by product’s (i.e. post’s) ID. For variable products, the snippet will return the lowest variation price. The returned price will be “raw”, i.e. not formatted, without currency symbol, etc. You can use the wc_price() function to format the final price. […]