See my ready «Price Format» extension for Magento 2.
$priceCode is final_price on a catalog product view.
$type is a product type (e.g. configurable).
$renderClassName may be \Magento\Catalog\Pricing\Render\FinalPriceBox.
$price may be \Magento\ConfigurableProduct\Pricing\Price\FinalPrice.
$priceInfo may be Magento\Framework\Pricing\PriceInfo\Base.
$priceCollection may be \Magento\ConfigurableProduct\Pricing\Price\Collection:
$renderBlock may be \Magento\Catalog\Pricing\Render\FinalPriceBox.
The result may be Magento_Catalog::product/price/final_price.phtml.
$priceModel supports the \Magento\/Framework\Pricing\Price\PriceInterface interface and may be, for example, an instance of the \Magento\ConfigurableProduct\Pricing\Price\ConfigurableRegularPrice class.
$amountBlock could be an instance of the \Magento\Framework\Pricing\Render\Amount class.
The result could be Magento_Catalog::product/price/amount/default.phtml.
dmitrii_fediuk
(Dmitrii Fediuk)
Split this topic
2
dmitrii_fediuk
(Dmitrii Fediuk)
Split this topic
3