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
@@ -84,7 +84,7 @@ This `data` field is composed of the product information you want to extract. Th
84
84
In a nutshell:
85
85
86
86
<!-- todo find the right language for comments highlight -->
87
-
```php
87
+
```php [activate:PHP]
88
88
89
89
{
90
90
"values": { # Contains all the product values, stored in associative arrays
@@ -119,7 +119,7 @@ In a nutshell:
119
119
120
120
### 0 - Initialization
121
121
122
-
```php
122
+
```php [activate:PHP]
123
123
124
124
function buildApiClient(): GuzzleHttp\Client
125
125
{
@@ -165,7 +165,7 @@ Have a look at other [product filters](/documentation/filter.html#filter-on-prod
165
165
166
166
Collect only the products you need with the help of the family code list you built in the guided tutorial “How to get families, family variants, and attributes” and your locales and channel that you extracted during the guided tutorial “How to retrieve PIM structure”.
167
167
168
-
```php
168
+
```php [activate:PHP]
169
169
170
170
function fetchProducts(): array
171
171
{
@@ -218,7 +218,7 @@ function fetchProducts(): array
218
218
219
219
Call the product endpoint with these minimum filters.
220
220
221
-
```php
221
+
```php [activate:PHP]
222
222
223
223
function fetchProducts(): array
224
224
{
@@ -262,7 +262,7 @@ In the guided tutorial **How to get families and attribute**, we have stored an
262
262
263
263
Simply search your attribute in the **attribute_list**.
264
264
265
-
```php
265
+
```php [activate:PHP]
266
266
267
267
function findAttributeTypeInAttributeList(string $attributeCode, array $attributeList): string
268
268
{
@@ -278,7 +278,7 @@ Simply get the attribute type by requesting the API. Instructions [here](/tutori
278
278
279
279
Parse `data` properties according to the attribute type you got in the previous step.
0 commit comments