I found a lot of answers, but none works for a variable products. I would like to display both, sales price and regular price for variable products.
global $product;
if( $product->is_on_sale() ) {
$sale_price = $product->get_sale_price();
}
$regular_price = $product->get_regular_price();
This is working, but only if it is a normal product. I think there must be a possibility even for product variations, but I don't find it.
Any help is appreciated