Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog
view
frontend
templates
product
view
opengraph
general.phtml
Go to the documentation of this file.
1
<?php
7
// @codingStandardsIgnoreFile
8
10
?>
11
12
<meta
property
=
"og:type"
content=
"product"
/>
13
<meta
property
=
"og:title"
content=
"<?= $block->escapeHtmlAttr($block->stripTags($block->getProduct()->getName())) ?>"
/>
14
<meta
property
=
"og:image"
content=
"<?= $block->escapeUrl($block->getImage($block->getProduct(), 'product_base_image')->getImageUrl()) ?>"
/>
15
<meta
property
=
"og:description"
content=
"<?= $block->escapeHtmlAttr($block->stripTags($block->getProduct()->getShortDescription())) ?>"
/>
16
<meta
property
=
"og:url"
content=
"<?= $block->escapeUrl($block->getProduct()->getProductUrl()) ?>"
/>
17
<?php
if
($priceAmount =
$block
->getProduct()->getFinalPrice()):?>
18
<meta property=
"product:price:amount"
content=
"<?= /* @escapeNotVerified */ $priceAmount ?>"
/>
19
<?=
$block
->getChildHtml(
'meta.currency'
) ?>
20
<?php
endif
;?>
$block
$block
Definition:
block.php:8
endif
endif
Definition:
404.phtml:116