S
S
Serge Tkach2016-10-19 09:09:25
opencart
Serge Tkach, 2016-10-19 09:09:25

How to get the final amount (purchase amount + shipping amount) in OpenCart?

I'm trying to find a solution in a method in the ControllerCheckoutCart and ControllerCheckoutSimpleCheckoutCart class (because it costs simplecheckout), but I can't find it yet.
I already got the total amount of the purchase via $order_products = $this->model_account_order->getOrderProducts($order_id);
But I can't figure out how to get the final amount including shipping costs.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
web-mechanic, 2016-10-19
@SergeTkach

If you are working with a standard cart, then look somewhere here prntscr.com/cw96na in the ControllerCheckoutCart class, in this section of the code the cost is being calculated, there is a similar functionality in the ControllerCheckoutConfirm and maybe somewhere else.
In general, it is possible to change the settings in the "Take into account in the order" section.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question