-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Customer Notes for COT #34477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customer Notes for COT #34477
Conversation
jorgeatorres
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @barryhughes! Top-notch work as usual 🥇.
|
Hi @jorgeatorres, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|
|
Hello, I love WooCommerce 123. It really is great! Thanks! When I input text with carriage returns (or hard line breaks), they all dissappear and the string is simply saved as: I love WooCommerce 123. It really is great! Thanks! All line breaks dissapear. We use this feature a lot on the backend and this has worked for years. We need it to support line-breaks. THANKS! |
|
WooCommerce support opened this ticket: ticket ID: 5640654-zen |
|
Thanks for the note: we'll progress this via #35112. |
Adds support for Customer Notes to Custom Order Tables.
As a quick reminder, from a UI perspective, customer notes surface both in the order editor and the checkout page, as in the following screenshot:
Traditionally/under the CPT data-store, these notes have been stored in the
post_excerptfield of thewp_poststable.Closes #34148.
How to test the changes in this Pull Request:
Start by testing migrations.
wp wc cot migrate).wp_wc_orderstable. You should see acustomer_notecolumn and the value of this column should match what you see in thepost_excerptcolumn for the corresponding rows from thewp_poststable:Ensure we can still edit customer notes.
Now test the COT data-store as a customer.
wp_postshas the same Customer Note (but, stored in thepost_excerptfield).FOR PR REVIEWER ONLY: