AbanteCart Community
AbanteCart Development => Extensions and Add-Ons => Payment Modules => Topic started by: tux on November 07, 2015, 02:17:51 AM
-
Hello Admin,
Is it possible to configure Cash On Delivery (COD)feature depending on the transaction amount ?
Example : if the transaction amount is less than INR 2500, need to Charge INR 50 per transaction as COD rate. If the transaction amount is greater than INR 2500, need to charge 2% of the transaction amount as COD rate.
-
Why no reply for this post ?
-
Hi, a.f.a.i.k there is no such feature on default extension. You need to modify the extension.
-
Hi Abantecart,
Please help me which file we can edit and where should we edit to solve this issue.
Is it possible to configure Cash On Delivery (COD)feature depending on the transaction amount ?
Example : if the transaction amount is less than INR 2500, need to Charge INR 50 per transaction as COD rate. If the transaction amount is greater than INR 2500, need to charge 2% of the transaction amount as COD rate.
Thanking you.
Tux
-
You can set up min and max limits for any payment. There is not way to add surcharge for specific payment.
You can use fee total type to apply surcharge to the order, but if you need it to apply to specific payment, some programming will be needed.
-
Hi Admin,
For using a conditional check which php file we can use for COD?
-
You need to look in to core/lib/cart.php function getFinalTotal
Correct way to do this is to create a new total extension that will calculate surcharge based on conditions you need.
getFinalTotal will give you an idea how total is constructed.
-
Thank you. I'll try