I have a method with create a shipping rate, but I need to add shipping tax on this specific rate, how can i do this? My class:
$method = $this->rateMethodFactory->create(); $method->setCarrier($this->_code); $method->setCarrierTitle($this->getConfigData("title")); $method->setMethod("ddr"); $method->setMethodTitle($response['messages']['result']['service'] . " - " . " Delivery time " . $response['messages']['result']['totalTransitDays'] . " day(s)"); $shippingCost = (float)$response['messages']['result']['costFreight']; $method->setPrice($shippingCost); $method->setCost($shippingCost); $result->append($method);
i have already tried this, but didn't works:
I need that if the customer chooses my specific rate, the tax that I choose appears. in the summary.