From 63d86f5def375e4f7f00ebf7578f43f48ee272d6 Mon Sep 17 00:00:00 2001 From: nikolayandreev Date: Fri, 12 Feb 2021 15:22:38 +0200 Subject: [PATCH] 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. --- packages/Webkul/Product/src/Type/AbstractType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Webkul/Product/src/Type/AbstractType.php b/packages/Webkul/Product/src/Type/AbstractType.php index 460dda2dd..adf2f27b4 100644 --- a/packages/Webkul/Product/src/Type/AbstractType.php +++ b/packages/Webkul/Product/src/Type/AbstractType.php @@ -536,7 +536,7 @@ abstract class AbstractType */ public function getMaximamPrice() { - return $this->getMinimalPrice(); + return $this->product->price; } /**