marcusstenbeck Posted April 2, 2010 Posted April 2, 2010 I need to add some notes to an order. I would be OK with putting it in the "order messages" box. But how do I add them through code? I can't seem to fins where all of that happens in the backend. Share this post Link to post Share on other sites More sharing options...
marcusstenbeck Posted April 2, 2010 Posted April 2, 2010 I solved it. $orderMessage = new Message(); $orderMessage->id_order = $currentOrderId; $orderMessage->message = 'Hi I\'m a message.'; $orderMessage->save(); If the message should only be shown in the backend, add $orderMessage->private = true; before $orderMessage->save(); . $orderMessage = new Message(); $orderMessage->id_order = $currentOrderId; $orderMessage->message = 'Hi I\'m a message.'; [b]$orderMessage->private = true;[/b] $orderMessage->save(); Share this post Link to post 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