48 $_product = $this->registry->registry(
'current_product');
53 $algorithm = $this->taxData->getCalculationAlgorithm();
54 $options[
'calculationAlgorithm'] = $algorithm;
56 if ($this->taxData->displayBothPrices()) {
57 $options[
'optionTemplate'] = sprintf(
59 .
'<%% if (data.finalPrice.value) { %%>' 60 .
' +<%%= data.finalPrice.formatted %%> (%1$s <%%= data.basePrice.formatted %%>)' 64 }
elseif ($this->taxData->priceIncludesTax() && $this->taxData->displayPriceExcludingTax()) {
65 $options[
'optionTemplate'] = sprintf(
67 .
'<%% if (data.basePrice.value) { %%>' 68 .
' +<%%= data.basePrice.formatted %%>'
elseif(isset( $params[ 'redirect_parent']))
execute(\Magento\Framework\Event\Observer $observer)
__construct(\Magento\Tax\Helper\Data $taxData, \Magento\Framework\Registry $registry)