AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: hus2020 on February 07, 2017, 02:54:16 AM

Title: Handling Fee on Order Total not Sub-Total
Post by: hus2020 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.
Title: Re: Handling Fee on Order Total not Sub-Total
Post by: 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
https://raw.githubusercontent.com/abantecart/abantecart-src/9b9adfe5280abac02f765576902f8e347d0130c1/public_html/storefront/model/total/handling.php
Title: Re: Handling Fee on Order Total not Sub-Total
Post by: udecomey 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?

Title: Re: Handling Fee on Order Total not Sub-Total
Post by: abolabo on December 24, 2017, 05:46:52 AM
yes. Just replace your file