File tree 2 files changed +23
-1
lines changed
Model/Resolver/Products/DataPostProcessor
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class Attributes implements ProductsDataPostProcessorInterface
32
32
{
33
33
use ResolveInfoFieldsTrait;
34
34
35
- const ATTRIBUTES = 'attributes ' ;
35
+ const ATTRIBUTES = 's_attributes ' ;
36
36
37
37
/**
38
38
* @var Data
Original file line number Diff line number Diff line change @@ -9,6 +9,28 @@ interface ProductInterface {
9
9
thumbnail : OptimizedProductImage @resolver (class : " ScandiPWA\\ Performance\\ Model\\ Resolver\\ Value" )
10
10
only_x_left_in_stock : Float @resolver (class : " ScandiPWA\\ Performance\\ Model\\ Resolver\\ Value" )
11
11
stock_status : ProductStockStatus @resolver (class : " ScandiPWA\\ Performance\\ Model\\ Resolver\\ Value" )
12
+ s_attributes : [AttributeWithValue ]
13
+ }
14
+
15
+ type AttributeWithValue {
16
+ attribute_code : String
17
+ entity_type : String
18
+ attribute_type : String
19
+ attribute_value : String
20
+ attribute_label : String
21
+ attribute_id : Int
22
+ attribute_options : [AttributeWithValueOption ]
23
+ }
24
+
25
+ type AttributeWithValueOption {
26
+ label : String
27
+ value : String
28
+ swatch_data : AttributeWithValueSwatchData
29
+ }
30
+
31
+ type AttributeWithValueSwatchData {
32
+ type : String
33
+ value : String
12
34
}
13
35
14
36
type OptimizedProductImage {
You can’t perform that action at this time.
0 commit comments