Skip to content

Commit

Permalink
ENGCOM-4340: [Backport] Issue fix #20010 Wrong price amount in opengr…
Browse files Browse the repository at this point in the history
…aph #21202

 - Merge Pull Request #21202 from mage2pratik/magento2:2.2-develop-PR-port-20011
 - Merged commits:
   1. 85cdc9d
  • Loading branch information
magento-engcom-team committed Feb 20, 2019
2 parents 88ad7a6 + 85cdc9d commit 2e1676d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<meta property="og:image" content="<?= $block->escapeUrl($block->getImage($block->getProduct(), 'product_base_image')->getImageUrl()) ?>" />
<meta property="og:description" content="<?= $block->escapeHtmlAttr($block->stripTags($block->getProduct()->getShortDescription())) ?>" />
<meta property="og:url" content="<?= $block->escapeUrl($block->getProduct()->getProductUrl()) ?>" />
<?php if ($priceAmount = $block->getProduct()->getFinalPrice()):?>
<?php if ($priceAmount = $block->getProduct()->getPriceInfo()->getPrice(\Magento\Catalog\Pricing\Price\FinalPrice::PRICE_CODE)->getAmount()):?>
<meta property="product:price:amount" content="<?= /* @escapeNotVerified */ $priceAmount ?>"/>
<?= $block->getChildHtml('meta.currency') ?>
<?php endif;?>

0 comments on commit 2e1676d

Please sign in to comment.