Pārlūkot izejas kodu

Correctifs

packProduct
Guillaume pirms 3 gadiem
vecāks
revīzija
41078a04e9
2 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +1
    -1
      Builder/Order/OrderShopBuilder.php
  2. +2
    -2
      Model/Order/OrderProductModel.php

+ 1
- 1
Builder/Order/OrderShopBuilder.php Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt