danicasati Posted November 12, 2004 Posted November 12, 2004 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! Quote
Chuckler Posted November 15, 2004 Posted November 15, 2004 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! <{POST_SNAPBACK}> 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; } } Quote
danicasati Posted November 15, 2004 Author Posted November 15, 2004 Hi, Chuckler. Yes, the problem is percentage plus base fee. If I rem this, the module works correctly. Thank you very much. Quote
broderickp Posted February 15, 2005 Posted February 15, 2005 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.