I'd like to output the price and special price for configurable products. How do I achieve this?

I'd like to output the price and special price for configurable products. How do I achieve this?

The required behavior can be achieved with the price attribute for price and final_price for special price.



This way, the price of the simple product, belonging to a configurable product, with the smallest value will be output as a price, and the special price of the smallest value will be output as a special price.