diff --git a/mobile/shop/orderform.php b/mobile/shop/orderform.php index 96d02c7d8..5d0f4eb58 100644 --- a/mobile/shop/orderform.php +++ b/mobile/shop/orderform.php @@ -908,7 +908,7 @@ $(function() { $("#od_coupon_btn").click(function() { $("#od_coupon_frm").remove(); var $this = $(this); - var price = parseInt($("input[name=org_od_price]").val()); + var price = parseInt($("input[name=org_od_price]").val()) - parseInt($("input[name=item_coupon]").val()); $.post( "./ordercoupon.php", { price: price }, diff --git a/shop/orderform.php b/shop/orderform.php index feae24756..1e736968e 100644 --- a/shop/orderform.php +++ b/shop/orderform.php @@ -1171,7 +1171,7 @@ $(function() { $("#od_coupon_btn").click(function() { $("#od_coupon_frm").remove(); var $this = $(this); - var price = parseInt($("input[name=org_od_price]").val()); + var price = parseInt($("input[name=org_od_price]").val()) - parseInt($("input[name=item_coupon]").val()); $.post( "./ordercoupon.php", { price: price },