9 use Magento\Catalog\Api\Data\ProductRender\FormattedPriceInfoInterfaceFactory;
21 private $priceCurrency;
26 private $formattedPriceInfoFactory;
35 FormattedPriceInfoInterfaceFactory $formattedPriceInfoFactory
37 $this->priceCurrency = $priceCurrency;
38 $this->formattedPriceInfoFactory = $formattedPriceInfoFactory;
56 $formattedPriceInfo = $this->formattedPriceInfoFactory->create();
58 foreach ($priceInfo->getData() as $key =>
$value) {
60 $formattedValue = $this->priceCurrency
64 PriceCurrencyInterface::DEFAULT_PRECISION,
68 $formattedPriceInfo->setData($key, $formattedValue);
setFormattedPrices(FormattedPriceInfoInterface $formattedPriceInfo)