private function getValue()

in Controller/Pixel/ProductInfoForAddToCart.php [52:61]


    private function getValue($product)
    {
        if ($product && $product->getId()) {
            $price = $product->getFinalPrice();
            $price_helper = $this->_fbeHelper->getObject(\Magento\Framework\Pricing\Helper\Data::class);
            return $price_helper->currency($price, false, false);
        } else {
            return null;
        }
    }