Skip to content
This repository has been archived by the owner on Sep 23, 2021. It is now read-only.

Commit

Permalink
ShippingHydratorPlugin should map shipping address instead of billig …
Browse files Browse the repository at this point in the history
…address (#3)

ShippingHydratorPlugin should map shipping address instead of billing …
  • Loading branch information
msecker authored Feb 11, 2020
1 parent ff96dd7 commit cb162e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ShippingHydratorPlugin extends AbstractHydrator implements HydratorPluginI
public function hydrate(array $order, ChannableOrderTransfer $channableOrderTransfer): ChannableOrderTransfer
{
$channableAddressTransfer = new ChannableAddressTransfer();
$channableAddressTransfer->fromArray($order['data']['billing'], true);
$channableAddressTransfer->fromArray($order['data']['shipping'], true);

$channableOrderTransfer->setShipping($channableAddressTransfer);

Expand Down

0 comments on commit cb162e6

Please sign in to comment.