You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/tutorials/guides/how-to-collect-product-variations.md
+13-25Lines changed: 13 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,8 +100,6 @@ In this tutorial, we will introduce you to the two use cases you may encounter f
100
100
**Use case 2**
101
101
<br>
102
102
We noticed that many e-commerce solutions understand product variation on only one level. This means that for Akeneo **a special recollection of the variations must be done to have them all on the same level.**
103
-
<br>
104
-
Stay tuned! Our teams are currently working on this specific use case and should release it very soon.
105
103
:::
106
104
107
105
### 0 - Initialization
@@ -340,24 +338,19 @@ function getProductModels(): array
340
338
341
339
$productModels = array_merge(...$productModels);
342
340
343
-
// Get variants from storage
344
-
$variants = getVariants();
341
+
$familyVariants = getFamilyVariantsFromStorage();
345
342
foreach ($productModels as $key => $productModel) {
346
-
foreach ($variants as $variant) {
347
-
if ($productModel['family_variant'] === $variant['code']) {
0 commit comments