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).
66
+
Before digging into the code you can find out more about these concepts in our <ahref="https://help.akeneo.com/pim/serenity/articles/what-about-products-variants.html#about-products-with-variants"class="endpoint-link"target="_blank"rel="noopener noreferrer">helpcenter</a>
67
67
:::
68
68
69
69
Here are quick definitions:
@@ -104,17 +104,10 @@ We noticed that many e-commerce solutions understand product variation on only o
104
104
105
105
```php [activate:PHP]
106
106
107
-
$pimUrl = 'https://url-of-your-pim.com';
108
-
$appToken = 'your_app_token'; // Token provided during oAuth steps
109
-
110
-
// If you haven't done it yet, please follow the Guzzle official documentation for installing the client
### Use case 1: Collect product variation information - all levels
131
125
132
126
#### 1. Collect product models
133
127
##### 1.1 You are following the App workflow?
134
128
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!
129
+
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!
136
130
137
131
```php [activate:PHP]
138
132
@@ -144,9 +138,11 @@ function getProductModels(): array
@@ -209,12 +205,12 @@ function getProductModels(): array
209
205
210
206
#### 2. Process product model
211
207
##### 2.1. Parse and store the product model
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).
208
+
Parse and store a product or a product model is definitely the same thing. Please have a how to our guided tutorial <ahref="/tutorials/how-to-get-families-and-attributes.html"target="_blank"rel="noopener noreferrer">How to get families and attributes</a>.
213
209
214
210
##### 2.2. Collect its family variant
215
211
###### 2.2.1 You are following the App workflow?
216
212
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!
213
+
Good news: you already store the family variant 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>. Go ahead!
218
214
219
215
###### 2.2.2 You are not following the App workflow?
220
216
Query the API.
@@ -277,9 +273,9 @@ function getProductVariants(): array
Again, treat each product like a simple product. Please refer to the guided tutorial [**“How to get product information”**](/tutorials/how-to-collect-products.html)
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>
0 commit comments