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
Before digging into the code you can find out more about these concepts in our [helpcenter](https://help.akeneo.com/pim/serenity/articles/what-about-products-variants.html#about-products-with-variants).
### Use case 1: Collect product variation information - all levels
125
131
126
132
#### 1. Collect product models
127
133
##### 1.1 You are following the App workflow?
128
134
129
-
In the guided tutorial [**"How to get families and attributes"**](/tutorials/how-to-get-families-and-attributes.html), we have stored a family_code_list. It’s time to use it!
135
+
In the guided tutorial [**"How to get families and attributes"**](/tutorials/how-to-get-families-and-attributes.html), we have stored a **family_code_list**. It’s time to use it!
130
136
131
137
```php [activate:PHP]
132
138
133
139
function getProductModels(): array
134
140
{
135
-
$client = getApiClient();
141
+
$client = buildApiClient();
136
142
137
143
$maxProductsPerPage = 100;
138
144
$maxFamiliesPerQuery = 3;
@@ -173,7 +179,7 @@ Simply get the attribute type by requesting the API
173
179
174
180
function getProductModels(): array
175
181
{
176
-
$client = getApiClient();
182
+
$client = buildApiClient();
177
183
178
184
$maxProductsPerPage = 100;
179
185
$scope = 'ecommerce';
@@ -205,7 +211,7 @@ function getProductModels(): array
205
211
##### 2.1. Parse and store the product model
206
212
Parse and store a product or a product model is definitely the same thing. Please have a how to our guided tutorial [**"How to get product information"**](/tutorials/how-to-collect-products.html).
207
213
208
-
##### 2.2. Parse and store the product model
214
+
##### 2.2. Collect its family variant
209
215
###### 2.2.1 You are following the App workflow?
210
216
211
217
Good news: you already store the family variant in the guided tutorial [**"How to get families and attributes"**](/tutorials/how-to-get-families-and-attributes.html). Go ahead!
0 commit comments