Jump to content
Sign in to follow this  
danicasati

Payment Type Surcharge CONTRIBUTION error??

Recommended Posts

Hi.

I've installed PAYMENT TYPE SURCHARGE, I need to display a percentage of total, that user must pay to start shipping process.

 

I fix 30% of total, but the module doesn't calculate correct percentage .

For example:

 

ONE PRODUCT IN MY CART COSTS= 374,99 ?

VAT (16%)= 60,00 ?

TOTAL= 434,99 ?

 

The module says that the percentage is: 130,85 ?

 

IT'S WRONG!!! Correct 30% percentage is: 130,50 ?

 

How can I fix this error? Please, help me!

Share this post


Link to post
Share on other sites
Hi.

I've installed PAYMENT TYPE SURCHARGE, I need to display a percentage of total, that user must pay to start shipping process.

 

I fix 30% of total, but the module doesn't calculate correct percentage .

For example:

 

ONE PRODUCT IN MY CART COSTS= 374,99 ?

VAT (16%)= 60,00 ?

TOTAL= 434,99 ?

 

The module says that the percentage is: 130,85 ?

 

IT'S WRONG!!! Correct 30% percentage is: 130,50 ?

 

How can I fix this error? Please, help me!

 

By default, it's set to the %age + 0.35.

 

Edit includes/modules/order_total/ot_surcharge.php:

    }
   $od_amount = round($amount*10)/10*$od_pc/100;//percentage plus base fee  + .35
   $od_amount = $od_amount + $tod_amount;
   }
   }

Share this post


Link to post
Share on other sites

I don't know if I should post here or In PayPal IPN but I noticed the surcharge is calculated correctly and displays before checkout to PayPal, but does not pass it to Paypal IPN on the PayPal website. Any thoughts?

 

Thanks

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  

×