Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Add custom field to an order #210

Open
Mojo90 opened this issue Jul 13, 2018 · 4 comments
Open

Add custom field to an order #210

Mojo90 opened this issue Jul 13, 2018 · 4 comments
Labels

Comments

@Mojo90
Copy link

Mojo90 commented Jul 13, 2018

Is there an easy way to add a custom field to an order like a note from the buyer to the seller? That would be a great functionality... E.g. where personal details like name and address are filled in to show on possible fields. Did not find a solution in docs so before enhancing the templates want to ask if there is sth integrated already

@samnabi
Copy link
Owner

samnabi commented Jul 13, 2018

There isn't something like this integrated already.

I will mark it as a new feature but I don't have the capacity to work on new features at the moment.

@Mojo90
Copy link
Author

Mojo90 commented Jul 21, 2018

Ok thank you.
Is there an easy way to enhance that by myself for an order?

@samnabi
Copy link
Owner

samnabi commented Jul 25, 2018

You would have to override your own cart.php template, with the new form fields.

And then, to actually write the information to the transaction file, you'll have to override the process.php controller.

Finally, you might want to edit the orders.php template and order.yml blueprint to display the additional information.

@Mojo90
Copy link
Author

Mojo90 commented Jul 25, 2018

Yeah perfect, that was easy. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants