Skip to content

Trying to extend the Order model #1103

Answered by ogalbnafets
ogalbnafets asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Yes I used it, but the missing form was a hint! The "normal" checkout component has no form, so the field was also not being submitted! So instead I am using now the quick-checkout and now it's in the post!
The beforeSave Event doesn't fire off in my case, the test log also doesn't report. And in beforeCreate, the changed attribute apparently doesn't save. I looked in the model code, and in beforeCreates, the model is still the cart model. But after the copy into the order model, afterCreate fires off - so I used that and now it's working!! I hope this is okay?
The next problem was, that the extension of the form fields didn't work like in the documentation of october. I came up wi…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ogalbnafets
Comment options

@ogalbnafets
Comment options

@tobias-kuendig
Comment options

@ogalbnafets
Comment options

Answer selected by ogalbnafets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants