Skip to content
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

Use wc order number metadata #435

Merged
merged 2 commits into from Mar 4, 2024
Merged

Conversation

aashishgurung
Copy link
Contributor

@aashishgurung aashishgurung commented Mar 4, 2024

Description

Use get_order_number instead of order_id for the charge metadata so that users can customize order number.

Decision(s)

It is safe to replace order ID with get_order_number for the use case because it returns order ID by default. If user choose to customize order number using some plugins then it will return the order number in the new format.

https://woocommerce.github.io/code-reference/classes/WC-Order.html#method_get_order_number

Rollback procedure

default rollback procedure

@aashishgurung aashishgurung merged commit a5354f3 into develop Mar 4, 2024
2 checks passed
@aashishgurung aashishgurung deleted the use_wc_order_number_metadata branch March 4, 2024 07:00
@aashishgurung aashishgurung mentioned this pull request Mar 5, 2024
aashishgurung added a commit that referenced this pull request Mar 7, 2024
aashishgurung added a commit that referenced this pull request Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants