doofinder / doofinder-magento2

Open Software License 3.0
10 stars 9 forks source link

Fix special price issues #237

Closed pedromcp90 closed 1 year ago

pedromcp90 commented 1 year ago

This PR resolves an error that occurs when the special_price and the retail_price or base price are the same. Being the same, the special_price field is not added to extension_attributes. On the other hand, Magento detects the special_price and returns it within the custom_attributes, regardless of whether to apply taxes. This causes doofeeds, trying to access the special_price and not finding it, to look in the custom_attributes and return the value without taxes. image

To solve this problem, a function has been added to eliminate the custom_attributes related to the special_price.

Related ticket: #82450