Commit 59e8d909d6d777ea255202b8ad1a3403bb71a480
1 parent
c5695499
-Hot fix with stock in basket
Showing
1 changed file
with
7 additions
and
8 deletions
Show diff stats
models/Basket.php
... | ... | @@ -198,14 +198,13 @@ |
198 | 198 | * @var Variant $model |
199 | 199 | */ |
200 | 200 | $model = Variant::find() |
201 | - ->where([ 'variant.id' => $variant_id ]) | |
202 | - ->andWhere( | |
203 | - [ | |
204 | - '>', | |
205 | - 'variant.stock', | |
206 | - 0, | |
207 | - ] | |
208 | - ) | |
201 | + ->where([ 'variant.id' => $variant_id ])// ->andWhere( | |
202 | + // [ | |
203 | + // '>', | |
204 | + // 'variant.stock', | |
205 | + // 0, | |
206 | + // ] | |
207 | + // ) | |
209 | 208 | ->joinWith('lang') |
210 | 209 | ->one(); |
211 | 210 | if (empty($model)) { | ... | ... |