Yoast-SEO-for-Magento2
Yoast-SEO-for-Magento2 copied to clipboard
OpenGraph Meta property product:price:amount does not show in product page
Product price is always null in view/frontend/templates/yoastseo.phtml line 8.
/** @var YoastSeo $block */
/** @var MetaProviderInterface $meta */
$meta = $block->getMetaProvider();
$finalPrice = $block->getFinalPrice();
should be
/** @var YoastSeo $block */
/** @var MetaProviderInterface $meta */
$meta = $block->getMetaProvider();
$finalPrice = $meta->getPrice();