Commit 28bcf1d1 authored by mr.amirka's avatar mr.amirka

fixed discount

parent 7bc030f6
......@@ -407,8 +407,7 @@ if (
);
if ($payment_discount_percent > 0) {
// $payment_discount_amount = round(($amount - $shipping_amount) * $payment_discount_percent * 0.01, 2);
$payment_discount_amount = floor(($amount - $shipping_amount) * $payment_discount_percent * 0.01, 2);
$payment_discount_amount = round(($amount - $shipping_amount) * $payment_discount_percent * 0.01, 2, PHP_ROUND_HALF_DOWN);
$payment_amount = $amount - $payment_discount_amount;
$lunu_wallet_discount = array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment