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 71a02bd commit c9e3847Copy full SHA for c9e3847
setup/src/Magento/Setup/Fixtures/ConfigurableProductsFixture.php
@@ -624,7 +624,7 @@ public function execute()
624
$pathSize = count($structure);
625
if ($pathSize > 1) {
626
$path = [];
627
- for ($i = 0; $i < $pathSize; $i++) {
+ for ($i = 1; $i < $pathSize; $i++) {
628
$path[] = $category->load($structure[$i])->getName();
629
}
630
array_shift($path);
@@ -645,7 +645,7 @@ public function execute()
645
return $result[$index % count($result)][0];
646
};
647
$productCategory = function ($index) use ($result) {
648
- return $result[$index % count($result)][1];
+ return $result[$index % count($result)][2] . '/' . $result[$index % count($result)][1];
649
650
651
/**
0 commit comments