File tree 2 files changed +16
-0
lines changed
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,16 @@ public function loadXML($xml){
142
142
}
143
143
}
144
144
}
145
+ //child relations use namespace but parent does not
146
+ foreach ($ xml ->Relationships ->children ('ns2 ' ,true ) as $ x ){
147
+ foreach ($ x ->children () as $ y ){
148
+ foreach ($ y ->children () as $ z ){
149
+ foreach ($ z ->children () as $ zzz ){
150
+ $ this ->data ['Relationships ' ][$ x ->getName ()][$ y ->getName ()][$ z ->getName ()][$ zzz ->getName ()] = (string )$ zzz ;
151
+ }
152
+ }
153
+ }
154
+ }
145
155
}
146
156
147
157
//CompetitivePricing
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ private function resetSKUs(){
84
84
unset($ this ->options [$ op ]);
85
85
}
86
86
}
87
+ //remove Category-specific name
88
+ unset($ this ->options ['SellerSKU ' ]);
87
89
}
88
90
89
91
/**
@@ -125,6 +127,8 @@ private function resetASINs(){
125
127
unset($ this ->options [$ op ]);
126
128
}
127
129
}
130
+ //remove Category-specific name
131
+ unset($ this ->options ['ASIN ' ]);
128
132
}
129
133
130
134
/**
@@ -394,9 +398,11 @@ protected function prepareCategories(){
394
398
if (array_key_exists ('SellerSKUList.SellerSKU.1 ' ,$ this ->options )){
395
399
$ this ->options ['Action ' ] = 'GetProductCategoriesForSKU ' ;
396
400
$ this ->resetASINs ();
401
+ $ this ->options ['SellerSKU ' ] = $ this ->options ['SellerSKUList.SellerSKU.1 ' ];
397
402
} else if (array_key_exists ('ASINList.ASIN.1 ' ,$ this ->options )){
398
403
$ this ->options ['Action ' ] = 'GetProductCategoriesForASIN ' ;
399
404
$ this ->resetSKUs ();
405
+ $ this ->options ['ASIN ' ] = $ this ->options ['ASINList.ASIN.1 ' ];
400
406
}
401
407
}
402
408
You can’t perform that action at this time.
0 commit comments