File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
app/code/Magento/Catalog/view/frontend/templates/product/view/opengraph Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change 14
14
<meta property="og:image" content="<?= $ block ->escapeUrl ($ block ->getImage ($ block ->getProduct (), 'product_base_image ' )->getImageUrl ()) ?> " />
15
15
<meta property="og:description" content="<?= $ block ->escapeHtmlAttr ($ block ->stripTags ($ block ->getProduct ()->getShortDescription ())) ?> " />
16
16
<meta property="og:url" content="<?= $ block ->escapeUrl ($ block ->getProduct ()->getProductUrl ()) ?> " />
17
- <?php if ($ priceAmount = $ block ->getProduct ()->getFinalPrice ()):?>
17
+ <?php if ($ priceAmount = $ block ->getProduct ()->getPriceInfo ()-> getPrice (\ Magento \ Catalog \ Pricing \ Price \FinalPrice:: PRICE_CODE )-> getAmount ()):?>
18
18
<meta property="product:price:amount" content="<?= /* @escapeNotVerified */ $ priceAmount ?> "/>
19
19
<?= $ block ->getChildHtml ('meta.currency ' ) ?>
20
20
<?php endif ;?>
You can’t perform that action at this time.
0 commit comments