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-bundle
Pricing
Render
FinalPriceBox.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Bundle\Pricing\Render
;
8
9
use
Magento\Bundle\Pricing\Price\FinalPrice
;
10
use
Magento\Catalog\Pricing\Price\CustomOptionPrice
;
11
use
Magento\Catalog\Pricing\Render
as
CatalogRender
;
12
16
class
FinalPriceBox
extends
CatalogRender\FinalPriceBox
17
{
23
public
function
showRangePrice()
24
{
26
$bundlePrice = $this->
getPriceType
(
FinalPrice::PRICE_CODE
);
27
$showRange = $bundlePrice->getMinimalPrice() != $bundlePrice->getMaximalPrice();
28
29
if
(!$showRange) {
30
//Check the custom options, if any
32
$customOptionPrice = $this->
getPriceType
(
CustomOptionPrice::PRICE_CODE
);
33
$showRange =
34
$customOptionPrice->getCustomOptionRange(
true
) != $customOptionPrice->getCustomOptionRange(
false
);
35
}
36
37
return
$showRange;
38
}
39
}
Magento\Bundle\Pricing\Render
Definition:
FinalPriceBox.php:7
Magento\Bundle\Pricing\Render\FinalPriceBox
Definition:
FinalPriceBox.php:16
Magento\Catalog\Pricing\Price\CustomOptionPrice\PRICE_CODE
const PRICE_CODE
Definition:
CustomOptionPrice.php:24
Magento\Catalog\Pricing\Render
Magento\Framework\Pricing\Render\PriceBox\getPriceType
getPriceType($priceCode)
Definition:
PriceBox.php:133
Magento\Bundle\Pricing\Price\FinalPrice
Definition:
FinalPrice.php:19
Magento\Catalog\Pricing\Price\FinalPrice\PRICE_CODE
const PRICE_CODE
Definition:
FinalPrice.php:20
Magento\Catalog\Pricing\Price\CustomOptionPrice
Definition:
CustomOptionPrice.php:19