Smile\ElasticsuiteCatalog\Model\Autocomplete\Product\ItemFactory::renderProductPrice PHP Method

renderProductPrice() private method

Renders product price.
private renderProductPrice ( Magento\Catalog\Model\Product $product, string $priceCode ) : string
$product Magento\Catalog\Model\Product The product
$priceCode string The Price Code to render
return string
    private function renderProductPrice(\Magento\Catalog\Model\Product $product, $priceCode)
    {
        $priceRender = $this->getPriceRenderer();
        $price = $product->getData($priceCode);
        if ($priceRender) {
            $price = $priceRender->render($priceCode, $product, ['include_container' => false, 'display_minimal_price' => true, 'zone' => Render::ZONE_ITEM_LIST, 'list_category_page' => true]);
        }
        return $price;
    }