thiagorobis Posted September 27, 2011 Share Posted September 27, 2011 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 More sharing options...
MrBaseball34 Posted September 28, 2011 Share Posted September 28, 2011 Would it not be orderTotal retrieved from the cart? $cart->getOrderTotal(); Link to comment Share on other sites More sharing options...
thiagorobis Posted October 1, 2011 Author Share Posted October 1, 2011 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 More sharing options...
Richard S Posted October 2, 2011 Share Posted October 2, 2011 I am a bit confused what you want to do and where to show this information? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now