Linux 软件免费装
Banner图

WooCommerce Order Search Admin

开发者 rayrutjes
更新时间 2020年8月23日 00:40
PHP版本: 5.3 及以上
WordPress版本: 5.5
版权: GPLv2 or later
版权网址: 版权信息

标签

ajax admin woocommerce search ajax search autocomplete instant search orders algolia orders search search as you type

下载

1.12.1 1.13.0 1.13.1 1.13.2 v1.1.1 v1.10.0 v1.10.1 v1.11.0 v1.12.0 v1.2.0 v1.2.1 v1.2.2 v1.2.3 v1.3.0 v1.5.0 v1.6.0 v1.6.1 v1.6.2 v1.7.0 v1.7.1 v1.7.2 v1.7.3 v1.8.0 v1.9.0 v1.0.0 v1.0.1 v1.1.0 v1.4.0

详情介绍:

This plugin will power the WooCommerce orders search input with an autocompleted search field providing results as you type in milliseconds regardless of how much orders you have in your database. When you start having lots of orders in WooCommerce, searching for a specific order can become very slow and time-consuming. Fun fact is also that the more you have orders, the more you will need to search for a specific one. We have seen users wait for over a minute for WooCommerce to return the search results in the admin. And even after that long waiting time, given that the default search mechanism uses SQL queries, the relevancy isn't optimal and you often need to adjust your search query and wait again. By installing this plugin, you will be able to index all your orders into Algolia and be able to find orders at the speed of thought, right from your usual orders list in the admin screen of your WordPress website. You can find orders by typing just a few characters. The search engine will search on the following fields: As you start typing in the search input, you will see instant results popping up inside of a dropdown menu and you will be able to find the proper order in milliseconds. Also note that by leveraging Algolia as a search engine, in addition to super fast results as you type, you will also benefit from all the other features like typo tolerance that will make sure that if you misspell for example the customer name, you will still get the relevant orders displayed as part of the results. Automatic synchronization After you correctly provided the plugin with your Algolia credentials, the plugin will take care of making sure the search index stays up to date with your WooCommerce orders. Every time an order is added, updated, trashed or deleted, it will synchronize with Algolia. Note, however, that when you first initialize the plugin, you need to index your existing orders. WP-CLI command The plugin also offers a WP-CLI command to allow you to reindex your orders directly from the terminal. Here is how to use it: wp orders reindex Please note that at no point you are forced to use the command line tool and that the admin settings screen of the plugin also allows you to reindex all your orders. The command line approach is an excellent technical alternative though if you have over 50 thousands of records and you want to speed up the indexing. Note that there is no limit to how many orders this plugin can handle, and indexing will work with both indexing methods; powered by the UI or by using the WP-CLI command line tool. The only limitation of the admin UI reindexing is that you have to leave the page open during the reindexing process. Backend Order Search By default, the plugin enhances the default backend search behavior by using Algolia. This ensures a consistency between results you see in the list and the ones coming from the autocomplete dropdown. If for whatever reason you want to restore the default backend search behavior, you can use the wc_osa_enable_backend_search filter hook. ` function should_enable_backend_search( $value, WP_Query $query ) { return false; } add_filter( 'wc_osa_enable_backend_search', 'should_enable_backend_search', 10, 2 ); ` Configuration constants By default, you can configure the plugin on the included options page, but you can also configure the plugin by using one (or more) of the following constants in your wp-config.php. When you use constants, the corresponding option fields will be disabled on the options page. define( 'WC_OSA_ALGOLIA_APPLICATION_ID', '<value>' ); define( 'WC_OSA_ALGOLIA_SEARCH_API_KEY', '<value>' ); define( 'WC_OSA_ALGOLIA_ADMIN_API_KEY', '<value>' ); define( 'WC_OSA_ORDERS_INDEX_NAME', 'wc_orders' ); define( 'WC_OSA_ORDERS_PER_BATCH', 200 ); About Algolia This plugin relies on the Algolia service which requires you to create an account. Algolia offers its Search as a Service provider on an incremental payment program, including a free plan which includes 10,000 records & 100,000 operations per month. Beyond that, make sure you check out the pricing. This plugin will create precisely one record per order to index. We index every order that is not flagged as trashed. Algolia does not support this plugin. The preferred way of submitting issues or feature requests is through the GitHub repository.

安装:

The plugin works with WooCommerce 2.x & 3.x
  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Hit the "Setup" button that will appear at the top of every page of your admin, or directly access the plugin settings page under the Settings tab
  4. Provide the plugin with your Algolia settings, and create an Algolia account if you haven't got one yet
  5. Now click on the re-index orders button to start indexing your existing orders. WARNING: don't leave the page until the progress reaches 100%
  6. Once indexing has finished, head to WooCommerce -> Orders and enjoy the orders appearing as you type when using the search input.

屏幕截图:

  • The slick autocomplete search results dropdown.
  • Setup instructions steps.
  • Algolia account settings.
  • Indexing settings.

升级注意事项:

1.12.1 Make all billing and shipping fields searchable. In order to make the billing and shipping addresses searchable you need to reindex your data from Settings -> WooCommerce Order Search Admin -> Re-index orders.

更新日志:

1.13.1 See: CHANGELOG