diff --git a/mobile/shop/orderformupdate.php b/mobile/shop/orderformupdate.php index e8050dabc..34b98de7b 100644 --- a/mobile/shop/orderformupdate.php +++ b/mobile/shop/orderformupdate.php @@ -206,7 +206,7 @@ if($is_member && $send_cost > 0) { $dc = 0; if($cp['cp_id'] && ($cp['cp_minimum'] <= $tot_od_amount)) { if($cp['cp_type']) { - $dc = floor(($tot_od_amount * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc']; + $dc = floor(($send_cost * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc']; } else { $dc = $cp['cp_amount']; } diff --git a/shop/orderformupdate.php b/shop/orderformupdate.php index ab900a55f..a920ef833 100644 --- a/shop/orderformupdate.php +++ b/shop/orderformupdate.php @@ -200,7 +200,7 @@ if($is_member && $send_cost > 0) { $dc = 0; if($cp['cp_id'] && ($cp['cp_minimum'] <= $tot_od_amount)) { if($cp['cp_type']) { - $dc = floor(($tot_od_amount * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc']; + $dc = floor(($send_cost * ($cp['cp_amount'] / 100)) / $cp['cp_trunc']) * $cp['cp_trunc']; } else { $dc = $cp['cp_amount']; }