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

Add new _variations_skus meta field for products #2763

Merged
merged 2 commits into from
May 17, 2022

Conversation

felipeelia
Copy link
Member

Description of the Change

This PR adds a new meta field called _variations_skus to WooCommerce products with their variations SKUs. This is a revamp of #1828, with some changes:

  1. Although perhaps not as performant, this PR relies more on code and WC solutions than a direct DB query
  2. Instead of concatenating all SKUs in a single string, it actually creates an array of values
  3. It does not add code to handle variations creations/edit/deletions because recent versions of WooCommerce will already trigger that update
  4. It does not add code to change the admin search. That will come in WooCommerce behavior in the Product Admin List View #2757

Changelog Entry

Added: New _variations_skus field to WooCommerce products.

Credits

Props @felipeelia @kallehauge @lukaspawlik

@felipeelia felipeelia added this to the 4.2.0 milestone May 13, 2022
@felipeelia felipeelia self-assigned this May 13, 2022
@felipeelia felipeelia merged commit 7de905f into develop May 17, 2022
@felipeelia felipeelia deleted the feature/wc-add-variations-skus branch May 17, 2022 10:43
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.

1 participant