Skip to content

Commit

Permalink
ENGCOM-3767: Issue fix #20010 Wrong price amount in opengraph #20011
Browse files Browse the repository at this point in the history
 - Merge Pull Request #20011 from opencommerce/magento2:2.3-issue-20010
 - Merged commits:
   1. 5ee1d42
  • Loading branch information
magento-engcom-team committed Dec 28, 2018
2 parents 2b27bc0 + 5ee1d42 commit fb627f7
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 fb627f7

Please sign in to comment.