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
Add mobile app order attribution source #44519
Conversation
Test Results SummaryCommit SHA: 50b63f6
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
23b047f
to
9e2acf0
Compare
Hi , @woocommerce/ventures Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
9e2acf0
to
50b63f6
Compare
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.
Thank you, @layoutd. I followed the test instructions and the PR tests well.
Changes proposed in this Pull Request:
Closes #44490.
This PR introduces the "Mobile app" order origin to correctly identify orders created in the Woo Mobile App.
NOTE: This PR will only work after #44496 has been merged and the Order Attribution classes are being loaded properly again.Dependency PR merged ✔️How to test the changes in this Pull Request:
/wp-admin/post-new.php?post_type=shop_order
)./wp-admin/edit.php?post_type=shop_order
) and Order Edit "Order attribution" metabox (/wp-admin/post.php?post=[ORDER_ID]&action=edit
)._wc_order_attribution_source_type
tomobile_app
.Using the WC CLI, for example (insert the order ID and admin user if necessary):
wp wc shop_order update [ORDER_ID] --user=admin --meta_data='[{"key":"_wc_order_attribution_source_type","value":"mobile_app"}]' wp wc shop_order get [ORDER_ID] --user=admin --field=meta_data
Changelog entry
Significance
Type
Message
Comment