This commit is contained in:
Pranshu Tomar 2020-06-05 16:23:09 +05:30
parent d5a803cf14
commit 502beab0dd
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}