Added comments of various importance (several don't affect operation, they are just different ways of doing the same thing). They can be seen at: https://github.com/wolfderby/simple_...a2f7fbe2780R26
From what I see overall, with what you're doing the order isn't being created it is being retrieved from the database, modified and then presumably "restored" back to the database... If the goal is to create a **new** order, then as described in the comments a different approach is needed when processing the posted data.
Bookmarks