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
+125-1Lines changed: 125 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -278,4 +278,128 @@ function getProductVariants(): array
278
278
279
279
```
280
280
281
-
Again, treat each product like a simple product. Please refer to the guided tutorial <ahref="/tutorials/how-to-get-families-and-attributes.html"target="_blank"rel="noopener noreferrer">How to get families and attributes</a>
281
+
Again, treat each product like a simple product. Please refer to the guided tutorial <ahref="/tutorials/how-to-get-families-and-attributes.html"target="_blank"rel="noopener noreferrer">How to get families and attributes</a>
282
+
283
+
### Use case 2: Collect product variation information - set it all on 1 level
284
+
285
+
#### 1. Collect product models
286
+
287
+
##### 1.1 You are following the App workflow?
288
+
289
+
In the guided tutorial <ahref="/tutorials/how-to-get-families-and-attributes.html"target="_blank"rel="noopener noreferrer">How to get families and attributes</a>, we have stored a **family_code_list**. It’s time to use it!
##### 1.2 - You are not following the App workflow?
345
+
346
+
::: warning
347
+
Make sure to get the list of your family variants before continuing like in <ahref="/tutorials/how-to-get-families-and-attributes.html"target="_blank"rel="noopener noreferrer">How to get families and attributes</a>
Parse and store the product model like in [**2.1. Parse and store the product model**](/tutorials/how-to-collect-product-variations.html#21-parse-and-store-the-product-model)
402
+
403
+
##### 2.2. Collect its product variants
404
+
405
+
Collect product variants the same way than in [**2.2. Collect its product variants**](/tutorials/how-to-collect-product-variations.html#22-collect-its-product-variants)
0 commit comments