File tree 1 file changed +10
-2
lines changed
app/code/Magento/GroupedProduct/view/base/templates/product/price 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,19 @@ $minProduct = $block->getSaleableItem()
17
17
->getMinProduct ();
18
18
19
19
if ($ minProduct ) {
20
+ $ finalPrice = $ minProduct ->getPriceInfo ()->getPrice ('final_price ' );
21
+ $ finalPriceValue = $ finalPrice ->getAmount ();
20
22
$ amountRender = $ block ->getRendererPool ()
21
23
->createAmountRender (
22
- $ minProduct -> getPriceInfo ()-> getPrice ( ' final_price ' )-> getAmount () ,
24
+ $ finalPriceValue ,
23
25
$ minProduct ,
24
- $ minProduct -> getPriceInfo ()-> getPrice ( ' final_price ' ) ,
26
+ $ finalPrice ,
25
27
['include_container ' => true ]
26
28
);
29
+ $ currencyCode = $ amountRender ->getDisplayCurrencyCode ();
30
+ } else {
31
+ $ finalPriceValue = 0 ;
32
+ $ currencyCode = '' ;
27
33
}
28
34
?>
29
35
<div class="price-box" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
@@ -32,4 +38,6 @@ if ($minProduct) {
32
38
<span class="price-label"><?php /* @escapeNotVerified */ echo __ ('Starting at ' )?> </span><?php echo $ amountRender ->toHtml ();?>
33
39
</p>
34
40
<?php endif ?>
41
+ <meta itemprop="price" content="<?php /* @noEscape */ echo $ finalPriceValue ; ?> " />
42
+ <meta itemprop="priceCurrency" content="<?php /* @noEscape */ echo $ currencyCode ; ?> " />
35
43
</div>
You can’t perform that action at this time.
0 commit comments