Yoast-SEO-for-Magento2 icon indicating copy to clipboard operation
Yoast-SEO-for-Magento2 copied to clipboard

OpenGraph Meta property product:price:amount does not show in product page

Open sarojpant opened this issue 6 years ago • 0 comments

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();

sarojpant avatar Nov 21 '18 04:11 sarojpant