Jump to content

Retrieving total amount of the order in the OrderConfirmationController.php


thiagorobis

Recommended Posts

Hello guys!

Please, I need a little help.

 

What is the variable to be used in the OrderConfirmationController.php file

in order to display the Cost of the purchase (the discounted cost).

 

 

I already tried this one, with no sucess:

 

$this->total_paid_real;

$this->total_paid;

 

But, when I tried to get the order ID using this:

 

$this->id_order;

 

I can without problems.

 

Somebody can help me finger out?

 

Thank you

Link to comment
Share on other sites

Hello MrBaseball34 and friends!

Thanks for the reply.

I used gave me the hint that it did not work. The page at the time of checkout is in part blank, and the code stops running.

The error log in PHP / Apache is the following:

?PHP Fatal error: Call to undefined method OrderConfirmationController::getOrderTotal() in

 

 

I'm having so much trouble with this, it is essential to my shop and I can not in any way to get the full amount of the request.

 

I've used the following:

$this->total_paid_real;
(float)($this->total_paid_real);
$this->getOrderTotal(); 
$cart->getOrderTotal();

 

 

None worked.

But when I used this one, they worked:

$this->id_order;

 

Is there any other ideas?

 

Hugs

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...