Author Topic: Modify the Order Total Formula  (Read 2630 times)

Offline hus2020

  • Newbie
  • *
  • Posts: 28
  • Karma: +3/-0
    • View Profile
Modify the Order Total Formula
« 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.


Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Modify the Order Total Formula
« Reply #1 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
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Powered by SMFPacks Social Login Mod