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