diff --git a/packages/Webkul/Product/src/Type/AbstractType.php b/packages/Webkul/Product/src/Type/AbstractType.php index 6707df257..df3e84172 100644 --- a/packages/Webkul/Product/src/Type/AbstractType.php +++ b/packages/Webkul/Product/src/Type/AbstractType.php @@ -605,8 +605,8 @@ abstract class AbstractType } if ($price->value < $lastPrice) { - if ($price->value_type == 'percentage') { - $lastPrice = $product->price * ($price->value / 100); + if ($price->value_type == 'discount') { + $lastPrice = $product->price - ($product->price * $price->value) / 100; } else { $lastPrice = $price->value; }