Contributions
Payment method fee
This order total allows to add a fee to the order total according to the payment method choosen, and this fee will be shown on the payment page (important for the customer to see how much he will be charged before choosing). Works fine with COD for example.
A Tax class for this fee can also be defined.
This module has been taken out of contribution [2207], translated to english and updated to work with tax class and Credit Class [207].
Expand All / Collapse All
Full package.
The only modified file is catalog/includes/modules/order_total/ot_fixed_payment_chg.php.
Now it works both for minimal fees and for % fee.
To discuss about this contrib go here: http://forums.oscommerce.com/index.php?showtopic=201312
Die unten aufgeführte Contrib wurde um die Deutsche Sprachdatei erweitert. Hier nennt sich das Kind dann Papypal-Gebühren und zeigt dem Kunden vor Abschluss der Transaktion wieviel Papypalgebühren zu entrichten sind. Diese lassen sich im Adminmenü bequem prozentual einrichten.
Die Contrib ist für "osCommerce 2.2 Milestone 2 PayPal IPN Payment Module v1.1" konzipiert.
>> contrib proportional fee = paypal prop fee / (1 - paypal prop fee)
Paypal calculates its fee over the total but after adding
the paypal fee amount to the order total amount:
total = order value + shipping cost + paypal fee amount
This contrib calculates fees using sub-total:
subtotal= order value + shipping cost
Example:
Paypal fee = 3,4% = 0.034
paypal fee amount = 3,4% total
contrib fee * sub-total = paypal fee amount
contrib fee = paypal fee amount / sub-total
sub-total = total - paypal fee amount
paypal fee amount = 3,4% total
sub-total = total - 3,4% total
sub-total = (1 - 3,4%)total
contrib fee = 3,4% total / (1 - 3,4%)total
contrib fee = 3,4% / (1 - 3,4%)
contrib fee = 0.034/0.966 = 0.03512 = 3,51%
Easy update (catalog/includes/modules/order_total/ot_fixed_payment_chg.php modified, no manual edit neccesary).
It works for me: COD had a fee of 3.5% but with a minimal fee it was 2.70 EUR.
Now from admin > modules > order total, there is one more value to tell to this module the variable fee:
'payment type':'minimal fixed fee':'variable fee' (from 0 to 1 -> 1,75% would be 0.0175 )
Example:
"COD:5:0.05,paypal_ipn:0:2,5"
Cod fee is 5% and minimal fee is 5 EUR
Paypal has not minimal fee, only 2.5%
Anyway, You can set the variable fee to 0 so this will not work and you will always see the fixed fee.
Taxes are not working well now, they only calculate taxes for the minimal fixed fee, not the other variable. Sorry
I am a newbie on OsCommerce, coding... and speaking english :lol:
This order total allows to add a fee to the order total according to the payment method choosen, and this fee will be shown on the payment page (important for the customer to see how much he will be charged before choosing). Works fine with COD for example.
A Tax class for this fee can also be defined.
This module has been taken out of contribution [2207], translated to english and updated to work with tax class and Credit Class [207].
- Rigadin
Note: Contributions are used at own risk.