<?php

namespace Autogedal\Extend\Plugin;

use Magento\CatalogWidget\Block\Product\ProductsList;

class MirasvitCmsPricePlugin
{
    public function aroundGetProductPriceHtml(
        ProductsList $subject,
        \Closure $proceed,
        \Magento\Catalog\Model\Product $product,
        $priceType = null,
        $renderZone = \Magento\Framework\Pricing\Render::ZONE_ITEM_LIST,
        array $arguments = []
    ) {
        try {
            return $proceed($product, $priceType, $renderZone, $arguments);
        } catch (\Throwable $e) {
            return '';
        }
    }
}
