Solve The % Calculation mistake in coupon code module

In Cre loaded when you set a % in coupon code at that time it will not count its properly the only mistake is
there is a no proper Operator Precedence in the coupon code module

in the includes/modules/order_total/ot_copuon.php

in the function credit_calculate()

find the code

$pod_amount = tep_round($pr_c*10,2)/10*c_deduct/100;

replace with this

$pod_amount = (((tep_round($pr_c*10,2)/10)*c_deduct)/100);

Speak Your Mind

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: