Esempio n. 1
0
 /**
  * @param \Magento\Quote\Model\Quote $quote
  * @param Address\Total $total
  * @return array|null
  */
 public function fetch(\Magento\Quote\Model\Quote $quote, \Magento\Quote\Model\Quote\Address\Total $total)
 {
     if ($total->getShippingInclTax()) {
         return ['code' => 'shipping', 'shipping_incl_tax' => $total->getShippingInclTax()];
     }
     return null;
 }