瀏覽代碼

Correctifs

packProduct
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…
取消
儲存