We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca9732d commit 889a3b6Copy full SHA for 889a3b6
app/code/Magento/SalesRule/Model/Quote/Discount.php
@@ -198,7 +198,7 @@ public function collect(
198
continue;
199
}
200
201
- switch ($rule->getSimpleAction()) {
+ switch ($rule->getSimpleAction()) {
202
case Rule::BY_PERCENT_ACTION:
203
case Rule::BY_FIXED_ACTION:
204
if ($rule->getDiscountStep() > $item->getQty()) {
dev/tests/integration/testsuite/Magento/SalesRule/Model/Quote/DiscountTest.php
@@ -656,7 +656,8 @@ public function testFixedAmountDiscountForWholeCartOnSimpleProductWhenStepQtyIsS
656
'price' => 123,
657
'sku' => 'p1',
658
'category_ids' => ['$c1.id$']
659
- ], 'p1'
+ ],
660
+ 'p1'
661
),
662
DataFixture(
663
RuleFixture::class,
0 commit comments