how to echo Variations price only, for every variation
I need to display a price table based on variations.
material-A quatity from 1-20 price is 20$ per piece quantity from 21+ price is 16$ per piece.
material-B quatity from 1-20 price is 30$ per piece quantity from 21+ price is 23$ per piece.
How to echo such thing?
I think I need to glue these together…
$available_variations = $product->get_available_variations();
get_variation_attributes( ) // gets variation name e.g "material-A quatity from 1-20"
get_price_html( ) // gets price e.g. "price is 20$"
But do not know how.
Thanks for any help.
- The topic ‘how to echo Variations price only, for every variation’ is closed to new replies.