Skip to content

Commit 61f4aa6

Browse files
committed
ACPT-1408: Investigate 1m call on 1k rules
1 parent 0ba3177 commit 61f4aa6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

setup/src/Magento/Setup/Fixtures/CartPriceRulesFixture.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ public function execute()
123123
*/
124124
public function generateCondition($ruleId, $categoriesArray)
125125
{
126-
$value = $this->cartPriceRulesProductsFloor + $ruleId % 3;
127126
return [
128127
'conditions' => [
129128
1 => [
@@ -137,7 +136,6 @@ public function generateCondition($ruleId, $categoriesArray)
137136
'attribute' => 'total_qty',
138137
'operator' => '>=',
139138
'value' => $this->cartPriceRulesProductsFloor + $ruleId,
140-
// 'value' => $value,
141139
],
142140
'1--2' => [
143141
'type' => \Magento\SalesRule\Model\Rule\Condition\Product\Found::class,
@@ -149,8 +147,7 @@ public function generateCondition($ruleId, $categoriesArray)
149147
'type' => \Magento\SalesRule\Model\Rule\Condition\Product::class,
150148
'attribute' => 'category_ids',
151149
'operator' => '==',
152-
// 'value' => $categoriesArray[$ruleId % count($categoriesArray)][0],
153-
'value' => 2,
150+
'value' => $categoriesArray[$ruleId % count($categoriesArray)][0],
154151
],
155152
],
156153
'actions' => [
@@ -202,7 +199,7 @@ public function generateRules($ruleFactory, $categoriesArray)
202199
'discount_step' => '',
203200
'apply_to_shipping' => '0',
204201
'simple_free_shipping' => '0',
205-
'stop_rules_processing' => '0',
202+
'stop_rules_processing' => '1',
206203
'reward_points_delta' => '',
207204
'store_labels' => [
208205
0 => '',

0 commit comments

Comments
 (0)