File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Bundle/view/base/templates/product/price
Catalog/view/base/templates/product/price Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ $productId = $block->getSaleableItem()->getId();
16
16
$ finalPriceModel = $ block ->getPrice ();
17
17
$ minimalPrice = $ finalPriceModel ->getMinimalPrice ();
18
18
$ maximalPrice = $ finalPriceModel ->getMaximalPrice ();
19
- /** @var \Magento\Bundle\Pricing\Price\BundleRegularPrice $regularPriceModel */
19
+ /** ex: \Magento\Bundle\Pricing\Price\BundleRegularPrice */
20
+ /** @var \Magento\Framework\Pricing\Price\PriceInterface $regularPriceModel */
20
21
$ regularPriceModel = $ block ->getPriceType ('regular_price ' );
21
22
$ maximalRegularPrice = $ regularPriceModel ->getMaximalPrice ();
22
23
$ minimalRegularPrice = $ regularPriceModel ->getMinimalPrice ();
Original file line number Diff line number Diff line change 13
13
14
14
$ productId = $ block ->getSaleableItem ()->getId ();
15
15
16
- /** @var \Magento\Catalog\Pricing\Price\RegularPrice $priceModel */
16
+ /** ex: \Magento\Catalog\Pricing\Price\RegularPrice */
17
+ /** @var \Magento\Framework\Pricing\Price\PriceInterface $priceModel */
17
18
$ priceModel = $ block ->getPriceType ('regular_price ' );
18
19
19
20
/* @escapeNotVerified */ echo $ block ->renderAmount ($ priceModel ->getAmount (), [
Original file line number Diff line number Diff line change 13
13
14
14
$ productId = $ block ->getSaleableItem ()->getId ();
15
15
16
- /** @var \Magento\Catalog\Pricing\Price\RegularPrice $priceModel */
16
+ /** ex: \Magento\Catalog\Pricing\Price\RegularPrice */
17
+ /** @var \Magento\Framework\Pricing\Price\PriceInterface $priceModel */
17
18
$ priceModel = $ block ->getPriceType ('regular_price ' );
18
19
19
- /** @var \Magento\Catalog\Pricing\Price\FinalPrice $finalPriceModel */
20
+ /** ex: \Magento\Catalog\Pricing\Price\FinalPrice */
21
+ /** @var \Magento\Framework\Pricing\Price\PriceInterface $finalPriceModel */
20
22
$ finalPriceModel = $ block ->getPriceType ('final_price ' );
21
23
$ idSuffix = $ block ->getIdSuffix () ? $ block ->getIdSuffix () : '' ;
22
24
$ schema = ($ block ->getZone () == 'item_view ' ) ? true : false ;
You can’t perform that action at this time.
0 commit comments