Good practices with import tools

A lot of WooCommerce sellers uses tools to import products. There are few popualr tools like:

  1. Native WooCommerce importer (CSV)
  2. WP All Import
  3. Product Import Export for WooCommerce
  4. and others

AJAX Search for WooCommerce (Pro) can slow down the importing process because it tries to update the search index after importing each product. It’s not an optimal way if you have a lot of products or import products regularly.

The optimal way to work with import tools

We recommend disable updating the search index on the fly before running the import process and enable it when importing is completed.

How to do it? There are two ways. The choice depends on how you run an importer. The first way is for importer runs via PHP, and the second way is for importer runs manually.

Disable updater programmatically

If you are familiar with PHP and you run the import programmatically, you can do something like this:

add_filter('dgwt/wcas/tnt/disable_updater', '__return_true');

// run importer...

add_filter('dgwt/wcas/tnt/disable_updater', '__return_false');

Disable updater manually

Step 1: Install and activate Code Snippets plugin

Step 2: Go to Snippets -> Add new



Step 3: Add following code

add_filter( 'dgwt/wcas/tnt/disable_updater', '__return_true' );

Step 4: Enable this snippet


Step 5: Run your importer tools

Step 6: Disable custom snippet aftre finishing the import process

Step 7: Repeat steps from 4 to 6 before each import