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

WooCommerce HPOS integration #2124

Open
adekbadek opened this issue Nov 9, 2022 · 0 comments
Open

WooCommerce HPOS integration #2124

adekbadek opened this issue Nov 9, 2022 · 0 comments
Assignees

Comments

@adekbadek
Copy link
Member

WooCommerce plans to shift from using the WP posts table to a custom table for storing orders. Newspack's code is currently interacting directly with the DB in two places:

  • WooCommerce_Connection::find_order_by_transaction_id looks up the WC Order by a transaction ID
  • WooCommerce_Connection::get_subscription_by_stripe_subscription_id looks up a WC Subscriptions' Subscription post by a custom meta

The first instance may be refactored to use an idiomatic WC function. The second depends on Woocommerce Subscriptions' adoption of HPOS.

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

No branches or pull requests

1 participant