Skip to content

Commit

Permalink
Merge pull request #4 from progcode/develop
Browse files Browse the repository at this point in the history
Fix product description api error
  • Loading branch information
progcode authored Oct 30, 2020
2 parents 1aeb2ac + cdcc85f commit 52d0d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Icecat/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ public function getProductData($xmlData)
$this->setProductDataAttributes($xmlData["Product"]["@attributes"]);
}

if(!empty($xmlData["Product"]["ProductDescription"])) {
$this->setProductDescriptions($xmlData["Product"]["ProductDescription"]["@attributes"]);
if(!empty($xmlData["Product"]["SummaryDescription"])) {
$this->setProductDescriptions($xmlData["Product"]["SummaryDescription"]);
}

return $xmlData["Product"];
Expand Down

0 comments on commit 52d0d4b

Please sign in to comment.