egohermansyah Posted December 10, 2014 Share Posted December 10, 2014 $order=new Order(ID_ORDER); $order->setCurrentState(ID_STATUS); how i can make object of order by reference ? $order=new Order(ID_ORDER); =>> how to change to $order=new Order(This parameter using order reference); Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted December 10, 2014 Share Posted December 10, 2014 Order::getByReference($reference) You will get PrestaShopCollection object. 1 Link to comment Share on other sites More sharing options...
egohermansyah Posted December 10, 2014 Author Share Posted December 10, 2014 Order::getByReference($reference) You will get PrestaShopCollection object. Thank's tuk66, that's work 1 Link to comment Share on other sites More sharing options...
GoPure Kratom Posted October 12, 2022 Share Posted October 12, 2022 Thanks for this, old one but gold one. Took me a while to figure out this actually returns and array rather than a single Order object. 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