News:

AbanteCart v1.4.2 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

Modify the Order Total Formula

Started by hus2020, April 11, 2018, 09:56:30 PM

Previous topic - Next topic

hus2020

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.


abolabo

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

Forum Rules Code of conduct
AbanteCart.com 2010 -