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 a setting to enable Orders Autosuggest #3310

Merged
merged 14 commits into from
Feb 24, 2023
Merged

Add a setting to enable Orders Autosuggest #3310

merged 14 commits into from
Feb 24, 2023

Conversation

JakePT
Copy link
Contributor

@JakePT JakePT commented Feb 10, 2023

Description of the Change

Adds a setting to enable Orders Autosuggest. The setting is disabled for non-EPIO users, with a filter to enable it.

Enabling Orders Autosuggest will also enable indexing of Orders, regardless of whether the Protected Content feature is enabled. Therefore a reindex is required when enabling the feature. This includes a change to allow requiring a reindex if a particular feature setting is changed.

Closes #3277

How to test the Change

  • Disable Protected Content feature.
  • Enable Orders Autosuggest from the WooCommerce feature. You should be warned that a reindex will be required.
  • Visit WooCommerce > Orders and start searching for orders. Suggestions should be offered in a listbox below the search form.
  • If not using EP.io the option to enable the feature should be disabled, with an explanatory message.

Changelog Entry

See #3175

Credits

@JakePT @felipeelia

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@anjulahettige
Copy link
Collaborator

The option will be grayed out to non-EPio users with the following message:
Due to the sensitive nature of orders, this autosuggest feature is available only to ElasticPress.io customers. (Learn More)

@anjulahettige anjulahettige added this to the 4.5.0 milestone Feb 21, 2023
@JakePT
Copy link
Contributor Author

JakePT commented Feb 22, 2023

@anjulahettige @felipeelia @brandwaffle I've pushed a change with the message, but I still need a URL for the Learn more link.

@JakePT JakePT changed the title WIP: Add a setting to enable Orders Autosuggest Add a setting to enable Orders Autosuggest Feb 24, 2023
@JakePT JakePT marked this pull request as ready for review February 24, 2023 04:07
@felipeelia felipeelia merged commit bba5b97 into develop Feb 24, 2023
@felipeelia felipeelia deleted the feature/3277 branch February 24, 2023 12:35
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.

Add toggle to WooCommerce feature for enabling orders autosuggest
3 participants