What's the deal with Deno? We talk with a major contributor to find out. Listen now.

New answers tagged

0

public function collect( \Magento\Quote\Model\Quote $quote, \Magento\Quote\Api\Data\ShippingAssignmentInterface $shippingAssignment, \Magento\Quote\Model\Quote\Address\Total $total ) { $this->clearValues($total); if (!$shippingAssignment->getItems()) { return $this; } $x= $quote->getItems(); if (isset($x)...


0

I rewrite the collect() method. The below code works for me. public function collect( \Magento\Quote\Model\Quote $quote, \Magento\Quote\Api\Data\ShippingAssignmentInterface $shippingAssignment, \Magento\Quote\Model\Quote\Address\Total $total ) { $this->clearValues($total); if (!$shippingAssignment->getItems()) { return $...


1

I rewrite the Tax classname and it works for me. <preference for="Magento\Tax\Model\Sales\Total\Quote\Tax" type="BA\Vertex\Rewrite\Magento\Tax\Model\Sales\Total\Quote\Tax"/> Rewrite class public function collect( \Magento\Quote\Model\Quote $quote, \Magento\Quote\Api\Data\ShippingAssignmentInterface $shippingAssignment, ...


Top 50 recent answers are included