src/Eccube/Service/PurchaseFlow/Processor/SaleLimitMultipleValidator.php 1 location
|
@@ 63-69 (lines=7) @@
|
| 60 |
|
continue; |
| 61 |
|
} |
| 62 |
|
$total = 0; |
| 63 |
|
foreach ($Items as $Item) { |
| 64 |
|
$total += $Item->getQuantity(); |
| 65 |
|
if ($limit < $total) { |
| 66 |
|
return ProcessResult::warn(trans('cart.over.sale_limit', |
| 67 |
|
['%product%' => $this->formatProductName($ProductClass)])); |
| 68 |
|
} |
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
return ProcessResult::success(); |
src/Eccube/Service/PurchaseFlow/Processor/StockMultipleValidator.php 1 location
|
@@ 67-73 (lines=7) @@
|
| 64 |
|
['%product%' => $this->formatProductName($ProductClass)])); |
| 65 |
|
} |
| 66 |
|
$total = 0; |
| 67 |
|
foreach ($Items as $Item) { |
| 68 |
|
$total += $Item->getQuantity(); |
| 69 |
|
if ($stock < $total) { |
| 70 |
|
return ProcessResult::warn(trans('cart.over.stock', |
| 71 |
|
['%product%' => $this->formatProductName($ProductClass)])); |
| 72 |
|
} |
| 73 |
|
} |
| 74 |
|
} |
| 75 |
|
|
| 76 |
|
return ProcessResult::success(); |