CodeExplorer buildCombinations example
$ruleIds =
$this->
getIds('rule'
);
$manufacturers =
$this->
getIds('product_manufacturer'
);
$tags =
$this->
getIds('tag'
);
$instantDeliveryId =
$this->
getInstantDeliveryId();
$combinations =
[];
for ($i = 0;
$i <= 20; ++
$i) { $combinations[] =
$this->
buildCombinations($properties);
} $max =
max(min($count / 3, 200
), 5
);
$prices =
[];
for ($i = 0;
$i <=
$max; ++
$i) { $prices[] =
$this->
createPrices($ruleIds);
} $payload =
[];
for ($i = 0;
$i <
$count; ++
$i) { $product =
$this->
createSimpleProduct($taxes,
$manufacturers,
$tags);