|
|
|
|
|
|
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function isDone(OrderShopInterface $orderShop): bool |
|
|
|
|
|
{ |
|
|
|
|
|
if ($orderShop->getOrderStatus() && $orderShop->getOrderStatus()->getAlias() == OrderStatusModel::ALIAS_DONE ) { |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// getProductQuantityMaxAddCart |
|
|
// getProductQuantityMaxAddCart |
|
|
public function getProductQuantityMaxAddCart(OrderShopInterface $orderShop, ProductInterface $product) |
|
|
public function getProductQuantityMaxAddCart(OrderShopInterface $orderShop, ProductInterface $product) |
|
|
{ |
|
|
{ |