Update getMaximamPrice() to return product price instead of getMinimalPrice() in AbstractType.

Solving issue with Simple products where price and special_price were the same amount in the REST API.
This commit is contained in:
nikolayandreev 2021-02-12 15:22:38 +02:00
parent c4148f31fa
commit 63d86f5def
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ abstract class AbstractType
*/
public function getMaximamPrice()
{
return $this->getMinimalPrice();
return $this->product->price;
}
/**