Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Feb 1, 2025
1 parent 3e7086d commit b402a39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/code/core/Mage/Catalog/Model/Api2/Product/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ protected function addAttribute(string $attribute, array &$productData, Mage_Cat
protected function addPrices(array &$productData, Mage_Catalog_Model_Product $product): void
{
$isPriceRequired = false;
if (in_array('regular_price_with_tax', $this->getAllowedAttributes()) ||
in_array('regular_price_without_tax', $this->getAllowedAttributes()) ||
in_array('final_price_with_tax', $this->getAllowedAttributes()) ||
in_array('final_price_without_tax', $this->getAllowedAttributes())
if ($this->isAllowedAttribute('regular_price_with_tax') ||
$this->isAllowedAttribute('regular_price_without_tax') ||
$this->isAllowedAttribute('final_price_with_tax') ||
$this->isAllowedAttribute('final_price_without_tax')
) {
$isPriceRequired = true;
}
Expand Down

0 comments on commit b402a39

Please sign in to comment.