Answer the question
In order to leave comments, you need to log in
How to display the price of each variation, both regular and discounted?
I'm trying this way, but it doesn't work correctly. The minimum and maximum are displayed in general in the entire product, and not for each variation.
$min_regular_price = $product->get_variation_regular_price( 'min', true );
$min_sale_price = $product->get_variation_sale_price( 'min', true );
$max_regular_price = $product->get_variation_regular_price( 'max', true );
$max_sale_price = $product->get_variation_sale_price( 'max', true );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question