59 $this->_catalogHelper = $catalogData;
60 parent::__construct($context,
$data);
118 'is_percent' =>
$option->getPriceType() ==
'percent',
119 'pricing_value' =>
$option->getPrice(
$option->getPriceType() ==
'percent'),
146 if (
$value[
'pricing_value'] == 0) {
151 if (
$value[
'pricing_value'] < 0) {
158 $customOptionPrice = $this->
getProduct()->getPriceInfo()->getPrice(
'custom_option_price');
159 $context = [CustomOptionPriceInterface::CONFIGURATION_OPTION_FLAG =>
true];
160 $optionAmount = $customOptionPrice->getCustomAmount(
$value[
'pricing_value'],
null, $context);
161 $priceStr .= $this->
getLayout()->getBlock(
'product.price.render.default')->renderAmount(
168 $priceStr =
'<span class="price-notice">' . $priceStr .
'</span>';
183 if ($includingTax !==
null) {
200 return $this->pricingHelper->currencyByStore(
$price,
$store,
false);
getPrice($price, $includingTax=null)
setOption(\Magento\Catalog\Model\Product\Option $option)
_formatPrice($value, $flag=true)
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Framework\Pricing\Helper\Data $pricingHelper, \Magento\Catalog\Helper\Data $catalogData, array $data=[])
setProduct(\Magento\Catalog\Model\Product $product=null)