Chillax86 Posted October 14, 2013 Share Posted October 14, 2013 Does any one know how to easily get the order details, i.e is there an object that loads the order details ready to be used in my script. looking for something like $order = new Order((int)$params['id_order']); It needs to hold product name, quantity, unit price, ex vat prices and incl prices. I can code this myself and get it out of the database but I'd thought I'd check if this is already included in the core programming. Link to comment Share on other sites More sharing options...
Chillax86 Posted October 16, 2013 Author Share Posted October 16, 2013 Hello anyone there? Even if you think this is not part of the core code please say something!!! Link to comment Share on other sites More sharing options...
gonebdg - webindoshop.com Posted October 16, 2013 Share Posted October 16, 2013 You can see controller file OrderDetailController.php Link to comment Share on other sites More sharing options...
El Patron Posted October 16, 2013 Share Posted October 16, 2013 Does any one know how to easily get the order details, i.e is there an object that loads the order details ready to be used in my script. looking for something like $order = new Order((int)$params['id_order']); It needs to hold product name, quantity, unit price, ex vat prices and incl prices. I can code this myself and get it out of the database but I'd thought I'd check if this is already included in the core programming. that is exactly how you would do it Link to comment Share on other sites More sharing options...
amraohs Posted August 27, 2014 Share Posted August 27, 2014 I'm not getting products or adresses that are linked to the order. It just gives me the order information (total-amount, vat, etc). Is there a way that everything is included? Or do I need to get the information seperately? Link to comment Share on other sites More sharing options...
ENS Enterprises Posted November 6, 2017 Share Posted November 6, 2017 Hi, you need to pass the create the object of the customer and then need to pass it to fetch the customer details. Thanks, Link to comment Share on other sites More sharing options...
Butch0071 Posted April 13, 2023 Share Posted April 13, 2023 There is $cart object, you can access it in controller $order = $params['objOrder']; but to get products info from $order - there is a function: $products = $order->getProducts(); and then you can loop through products: foreach ($products as $orderedProduct) { ... } 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