Author Topic: Handling Fee on Order Total not Sub-Total  (Read 1254 times)

Offline hus2020

  • Newbie
  • *
  • Posts: 28
  • Karma: +3/-0
    • View Profile
Handling Fee on Order Total not Sub-Total
« on: February 07, 2017, 02:54:16 AM »
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.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1751
  • Karma: +240/-10
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Handling Fee on Order Total not Sub-Total
« Reply #1 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
https://raw.githubusercontent.com/abantecart/abantecart-src/9b9adfe5280abac02f765576902f8e347d0130c1/public_html/storefront/model/total/handling.php
« Last Edit: February 07, 2017, 01:30:50 PM by abantecart »
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline udecomey

  • Newbie
  • *
  • Posts: 17
  • Karma: +1/-0
    • View Profile
Re: Handling Fee on Order Total not Sub-Total
« Reply #2 on: December 23, 2017, 03:24:12 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?


Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1751
  • Karma: +240/-10
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Handling Fee on Order Total not Sub-Total
« Reply #3 on: December 24, 2017, 05:46:52 AM »
yes. Just replace your file
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens