@@ -70,7 +70,7 @@ public function setSKUs($s)
70
70
$ this ->resetSKUs ();
71
71
$ i = 1 ;
72
72
foreach ($ s as $ x ) {
73
- $ this ->options ['SellerSKUList.SellerSKU. ' . $ i ] = $ x ;
73
+ $ this ->options ['SellerSKUList.SellerSKU. ' . $ i ] = $ x ;
74
74
$ i ++;
75
75
}
76
76
} else {
@@ -116,7 +116,7 @@ public function setASINs($s)
116
116
$ this ->resetASINs ();
117
117
$ i = 1 ;
118
118
foreach ($ s as $ x ) {
119
- $ this ->options ['ASINList.ASIN. ' . $ i ] = $ x ;
119
+ $ this ->options ['ASINList.ASIN. ' . $ i ] = $ x ;
120
120
$ i ++;
121
121
}
122
122
} else {
@@ -203,7 +203,7 @@ public function fetchCompetitivePricing()
203
203
204
204
$ this ->prepareCompetitive ();
205
205
206
- $ url = $ this ->urlbase . $ this ->urlbranch ;
206
+ $ url = $ this ->urlbase . $ this ->urlbranch ;
207
207
208
208
$ query = $ this ->genQuery ();
209
209
@@ -273,7 +273,7 @@ public function fetchLowestOffer()
273
273
274
274
$ this ->prepareLowest ();
275
275
276
- $ url = $ this ->urlbase . $ this ->urlbranch ;
276
+ $ url = $ this ->urlbase . $ this ->urlbranch ;
277
277
278
278
$ query = $ this ->genQuery ();
279
279
@@ -338,7 +338,7 @@ public function fetchMyPrice()
338
338
339
339
$ this ->prepareMyPrice ();
340
340
341
- $ url = $ this ->urlbase . $ this ->urlbranch ;
341
+ $ url = $ this ->urlbase . $ this ->urlbranch ;
342
342
343
343
$ query = $ this ->genQuery ();
344
344
@@ -394,19 +394,16 @@ protected function prepareMyPrice()
394
394
*/
395
395
public function fetchCategories ()
396
396
{
397
- if (! array_key_exists ('SellerSKUList.SellerSKU.1 ' , $ this ->options ) && ! array_key_exists (
398
- 'ASINList.ASIN.1 ' ,
399
- $ this ->options
400
- )
401
- ) {
397
+ if (! array_key_exists ('SellerSKUList.SellerSKU.1 ' , $ this ->options ) &&
398
+ ! array_key_exists ('ASINList.ASIN.1 ' , $ this ->options )) {
402
399
$ this ->log ('Product IDs must be set in order to look them up! ' , 'Warning ' );
403
400
404
401
return false ;
405
402
}
406
403
407
404
$ this ->prepareCategories ();
408
405
409
- $ url = $ this ->urlbase . $ this ->urlbranch ;
406
+ $ url = $ this ->urlbase . $ this ->urlbranch ;
410
407
411
408
$ query = $ this ->genQuery ();
412
409
@@ -448,6 +445,7 @@ protected function prepareCategories()
448
445
} else {
449
446
if (array_key_exists ('ASINList.ASIN.1 ' , $ this ->options )) {
450
447
$ this ->options ['Action ' ] = 'GetProductCategoriesForASIN ' ;
448
+ $ this ->options ['ASIN ' ] = $ this ->options ['ASINList.ASIN.1 ' ];
451
449
$ this ->resetSKUs ();
452
450
}
453
451
}
@@ -471,7 +469,7 @@ public function fetchMatchingProduct()
471
469
472
470
$ this ->prepareMatchingProduct ();
473
471
474
- $ url = $ this ->urlbase . $ this ->urlbranch ;
472
+ $ url = $ this ->urlbase . $ this ->urlbranch ;
475
473
476
474
$ query = $ this ->genQuery ();
477
475
0 commit comments