Skip to content

Commit

Permalink
- Added the shipping origin based on WFA rules back for shipping meth…
Browse files Browse the repository at this point in the history
…ods that use the origin to determine shipping costs, the addres of the warehouse remains an estimation
  • Loading branch information
24198 committed Jul 31, 2020
1 parent 1f44fe2 commit f230508
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ public function create($order)
->setCurrency($order->getCurrency());

$convertedLineItems = $this->shippingLineItemConverter->convertLineItems($orderItems);

$this->orderWarehousesProvider->setEstimation($this->estimation);
$shippingOrigin = $this->getShippingOrigin($order);
if (null !== $shippingOrigin) {
$shippingContextBuilder->setShippingOrigin($shippingOrigin);
}
if (null !== $order->getShippingAddress()) {
$shippingContextBuilder->setShippingAddress($order->getShippingAddress());
}
Expand Down

0 comments on commit f230508

Please sign in to comment.