News:

AbanteCart v1.4.2.1 is released.

Main Menu

Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Handling Fee on Order Total not Sub-Total

Started by hus2020, February 07, 2017, 02:54:16 AM

Previous topic - Next topic

hus2020

Hi Guys,

I need a quick help. I have added a handling fees (5%) if customer chooses to pay online using payment gateway instead of the traditional manual bank transfer procedure.

The problem I face is, whenever I create an order and go to checkout, the handling fees is calculated 5% from the sub-total (value before taxes, coupon discount etc).

What I want is that the handling fees of 5% to be calculated at the final  sum, i.e. (Subtotal + All Taxes - Discount) * 5% handling fees

Attached is the storefront image depicting the problem that I face, and also the backend order total sort list. Pls advice. Thank you.

abolabo

#1
There is a fix for this already.

To solve just replace your file public_html/storefront/model/total/handling.php with this
https://raw.githubusercontent.com/abantecart/abantecart-src/9b9adfe5280abac02f765576902f8e347d0130c1/public_html/storefront/model/total/handling.php

udecomey

Quote from: abolabo on February 07, 2017, 11:49:25 AM
There is a fix for this already.

To solve just replace your file public_html/storefront/model/total/handling.php with this



Hi,
Just copy the code into the handling.php right? is this fix valid?


abolabo


Forum Rules Code of conduct
AbanteCart.com 2010 -