Skip to content

Commit

Permalink
Merge pull request #2 from mihaisolomon/bugfix/Fix-GetCompetitivePric…
Browse files Browse the repository at this point in the history
…ingForASIN-returns-Competitive-Pricing-as-array

Update MWSClient.php
  • Loading branch information
mihaisolomon authored Nov 24, 2020
2 parents 3876df3 + d529a37 commit 5c106c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MWSClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function GetCompetitivePricingForASIN($asin_array = [])
$array = [];
foreach ($response as $product) {
if (isset($product['Product']['CompetitivePricing']['CompetitivePrices']['CompetitivePrice']['Price'])) {
$array[$product['Product']['Identifiers']['MarketplaceASIN']['ASIN']] = $product['Product']['CompetitivePricing']['CompetitivePrices']['CompetitivePrice']['Price'];
$array[$product['Product']['Identifiers']['MarketplaceASIN']['ASIN']] = $product['Product']['CompetitivePricing']['CompetitivePrices']['CompetitivePrice'];
}
}
return $array;
Expand Down

0 comments on commit 5c106c4

Please sign in to comment.