0

Code:

class MinimalTierPriceCalculator extends \Magento\Catalog\Pricing\Price\MinimalTierPriceCalculator
{

 private $calculator;

 public function __construct(CalculatorInterface $calculator)
{
    $this->calculator = $calculator;
}

public function getAmount(SaleableInterface $saleableItem)
{
    $value = $this->getValue($saleableItem);

    return $value === null
        ? null
        : $this->calculator->getAmount($value, $saleableItem,['weee', 'weee_tax', 'tax']);
}

}

i add $this->calculator->getAmount() 3rd parameter after adding 3rd parameter tax my price issue fix but styling not good price-including-tax class not adding auto as before.

  • what are you trying to achive? – Amit Bera Sep 3 at 12:04
  • actually there was issue in tier price i made changes in code after changes html styling change before my change it was bold and inc tax text show there – imtiazau Sep 3 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.