AbanteCart Community

Shopping Cart Operations => Support => Topic started by: hus2020 on April 11, 2018, 09:56:30 PM

Title: Modify the Order Total Formula
Post by: hus2020 on April 11, 2018, 09:56:30 PM
Hi All,

I need to edit the way AbanteCart calculates the total. In my case, I want it to be like this:

Order Total = (Sub Total + Taxes - Account Balance ) + Shipping Fees

By default, the calculation is like this:

Order Total = (Sub Total + Taxes + Shipping Fees - Account Balance )

The first thing I played with was the Order Total Extension where is adjusted the calculation order, however, the shipping fees is always deducted from the account balance which I dont want to.

Can anyone guide which files and what do I edit? I don't mind hardcoding the formula as this is my only use case.

Thank you.

Title: Re: Modify the Order Total Formula
Post by: abolabo on April 12, 2018, 04:00:08 AM
calculation order does not affect on result here.
Total amount does matter.
You can check all of them in folder public_html/storefront/model/total