Skip to content

Extending Order with custom fields #1058

Answered by tobias-kuendig
vosco88 asked this question in Q&A
Discussion options

You must be logged in to vote

Would I possibly need to write my own component extending QuickCheckout or something like that?

Absolutely! Another option is to use the beforeCreate model event of the Order model and check the context. Is the current request a ajax request? Is it on your checkout URL? Is your custom data available via post()? If all is true, then set it on the model.

Replies: 2 comments 7 replies

Comment options

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

@tobias-kuendig
Comment options

Answer selected by vosco88
@vosco88
Comment options

@tobias-kuendig
Comment options

Comment options

You must be logged in to vote
3 replies
@adamo
Comment options

@ogalbnafets
Comment options

@adamo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1057 on September 20, 2023 05:19.