Guillaume преди 3 години
родител
ревизия
41078a04e9
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. +1
    -1
      Builder/Order/OrderShopBuilder.php
  2. +2
    -2
      Model/Order/OrderProductModel.php

+ 1
- 1
Builder/Order/OrderShopBuilder.php Целия файл

@@ -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);

+ 2
- 2
Model/Order/OrderProductModel.php Целия файл

@@ -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

Loading…
Отказ
Запис