This php snippet shows you how to get the sales price of a WooCommerce product price via php
$product_id = 123; $product = wc_get_product( $product_id ); echo $product ? $product->get_sale_price() : '';
Do you need any of the code in this post customized or packaged into a plugin? Get a free quote
Referral Note: When you purchase through a referral link (if any) on this page, we may earn a commission.
If you're feeling thankful, you can buy me a coffee or a beer