Need to Configure Cash On delivery Feature depending on the amount

Started by tux, November 07, 2015, 02:17:51 AM

Previous topic - Next topic

tux

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.


yonghan

Hi, a.f.a.i.k there is no such feature on default extension. You need to modify the extension.

tux

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

eCommerce Core

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.
"If you're in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent."
― Warren Buffett

tux

Hi Admin,

For using a conditional check which php file we can use for COD?

eCommerce Core

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.
"If you're in the luckiest one per cent of humanity, you owe it to the rest of humanity to think about the other 99 per cent."
― Warren Buffett


Forum Rules Code of conduct
AbanteCart.com 2010 -