anishjmc Posted June 28, 2014 Share Posted June 28, 2014 (edited) Hi Team, Is there any way to get order id and customer mobile number and assign it to different variables?. Currently am trying to add an sms api which triggers whenever an order is placed. I am able to assign the order total using below code:- $amt = $params['total_to_pay']; but am unable to assign order id and customer mobile number. Please help in sorting this out Edited June 30, 2014 by anishjmc (see edit history) Link to comment Share on other sites More sharing options...
anishjmc Posted July 1, 2014 Author Share Posted July 1, 2014 Is there anyone who knows about this? Link to comment Share on other sites More sharing options...
vekia Posted July 1, 2014 Share Posted July 1, 2014 Is there anyone who knows about this? try to deal with: $order = new Order ($params['id_order']); $customer = new Customer ($order->id_customer); the you will have $customer object to deal with :-) (address,phone, etc) 1 Link to comment Share on other sites More sharing options...
anishjmc Posted July 2, 2014 Author Share Posted July 2, 2014 Hi Vekia, Thanks a lot for your help. But When ever i try adding $order = new Order ($params['id_order']); in order confirmation controller page, am getting a blank page when a user clicks on "I Confirm my Order" button Link to comment Share on other sites More sharing options...
vekia Posted July 2, 2014 Share Posted July 2, 2014 where you use that code? can you show an example please? i use always the same method for my solutions and it works well so i suppose that in your case something is wrong don't worry i will help :-) Link to comment Share on other sites More sharing options...
anishjmc Posted July 2, 2014 Author Share Posted July 2, 2014 Thanks a bundle vekia. Please find the attached file Download Here Link to comment Share on other sites More sharing options...
vekia Posted July 2, 2014 Share Posted July 2, 2014 ah so you're talking about confirmation controller, i thought that you want to do it for confirmation hook Link to comment Share on other sites More sharing options...
anishjmc Posted July 2, 2014 Author Share Posted July 2, 2014 Yep. Any Solution? Link to comment Share on other sites More sharing options...
vekia Posted July 2, 2014 Share Posted July 2, 2014 you pasted code outsite the class, it must be inside function public function displayOrderConfirmation() or displayPaymentReturn() 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