@@ -567,7 +567,7 @@ class OrderShopBuilder | |||
} | |||
// setDeliveryAddress | |||
public function initDeliveryAddress(OrderShopInterface $orderShop, AddressInterface $address):void | |||
public function initDeliveryAddress(OrderShopInterface $orderShop, AddressInterface $address = null):void | |||
{ | |||
$orderShop->setDeliveryAddress($address); | |||
$orderShop->setDeliveryInfos($address ? $address->getDeliveryInfos() : null); |
@@ -61,10 +61,10 @@ abstract class OrderProductModel implements PriceInterface, EntityInterface | |||
} | |||
// isOrderProductAvailable | |||
public function isAvailable() | |||
/*public function isAvailable() | |||
{ | |||
return $this->getProduct()->isAvailable($this->getQuantityOrder()); | |||
} | |||
}*/ | |||
// isOrderProductAvailableAddCart | |||
// @TODO : à remettre en place si nécessaire |