victorgh Posted March 2, 2016 Share Posted March 2, 2016 I get the address delivery like name, first name, address, postcode whits this code: $address = new Address($this->context->cart->id_address_delivery); $state = new State ($address->id_state); $country = new Country ($address->id_country); And i can print with this echo $address->firstname; echo $address->lastname; echo $address->city; echo $address->phone; echo $address->postcode; But now i want to get order details like product name, quantity and weight, how can get this? Link to comment Share on other sites More sharing options...
tmzwinkels Posted March 3, 2016 Share Posted March 3, 2016 I guess if you have the cart, you can do : $this->context->cart->getProducts(); Otherwise if you have the id_product (also in result of getProducts) you can do : new Product($id_product) 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