Simple Products in WooCommerce — a practical guide to WooCommerce simple products with clear examples you can reuse in real projects.
WooCommerce Plugin Development Series (25/101). Prefer one article? Read the complete WooCommerce plugin development tutorial.
Short description
Simple products have one price and inventory track. Most custom fields start here.
Load simple product
$product = wc_get_product($id);
if ($product && $product->is_type('simple')) {
echo $product->get_price();
}