Jump to content
Sign in to follow this  
never

INSTALLMENT

Recommended Posts

Hi

I wous woundering if some body knows what i have wrong

in the e-mail it just wount calculate the amount to pay

like this

 

Please Note:

 

Down Payment:

Q.0.00

12 payments of : Q.0.00

To apply fot this credit line, your minimum salary must be at least:Q.0.00 monthly

 

ps. it calculates when they order

Share this post


Link to post
Share on other sites

In checkout_proces.php one piece of code is missing, so the right calculation for the emailoutput is not possible. Put this:

$payment = $currencies->price();

after

if ($payment_class->code =='installment'){

and the email will show the right figures.

 

the end result will look like this:

 

if ($payment_class->code =='installment'){

$payment = $currencies->price();

$downpayment= number_format(($payment * 0.15),2);

$monthly_payment= ($payment - $downpayment) * 0.10573;

$salary = ($monthly_payment / 0.2);

$installment12= "\n" . 'Please Note:' . "\n" . 'Down Payment:' . $downpayment . "\n" . '12 payments of : ' . number_format($monthly_payment, 2) . "\n" . 'To apply for this credit line, your minimum salary must be at least:' . number_format($salary, 2) . ' monthly';

$email_order .= $installment12;

}

 

best of luck

Edited by ggbig

-------------------------------------------------

Best Regards,

 

ggbig (maestro)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×