Esempio n. 1
0
 /**
  * Remove all item delivery-addresses that are the same as the default
  * delivery address of the order
  *
  * @param ApiOrderInterface $order
  */
 protected function removeItemAddressesThatAreEqualToOrderAddress($order)
 {
     $deliveryAddressId = $order->getDeliveryAddress()->getContactAddress()->getId();
     foreach ($order->getItems() as $item) {
         $itemEntity = $item->getEntity();
         $this->removeOrderAddressIfContactAddressIdIsEqualTo($itemEntity, $deliveryAddressId);
     }
 }