Kwire Posted September 27, 2011 Share Posted September 27, 2011 Hi I'm having problems retrieving the total amount in my hookAdminOrder. I need the total amount in my module how can i retrieve it? Kind Regards Kristian Link to comment Share on other sites More sharing options...
holden321 Posted September 27, 2011 Share Posted September 27, 2011 amount of products? public function hookAdminOrder($p) { $order=new Order($p['id_order']); echo count($order->getProducts()); } Link to comment Share on other sites More sharing options...
Kwire Posted September 27, 2011 Author Share Posted September 27, 2011 Sorry for the lack of info - The Total Paid Amount :-) Link to comment Share on other sites More sharing options...
holden321 Posted September 27, 2011 Share Posted September 27, 2011 public function hookAdminOrder($p) { $order=new Order($p['id_order']); echo $order->total_paid; } other useful properties: total_discountstotal_paid_real total_products total_products_wt total_shipping Link to comment Share on other sites More sharing options...
Kwire Posted September 27, 2011 Author Share Posted September 27, 2011 Of course ...! Totally forgotten that! .. Thanks! 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