Refers to FiboSearch Pro only

Good practices with import tools

Tools to import products

A lot of WooCommerce sellers use tools to import products. There are a few popular tools like:

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

FiboSearch Pro can slow down the import process because it tries to update the search index after importing each product. This is not an optimal method if you have a lot of products or import products regularly. 

The optimal way to work with import tools

We recommend disabling the update of the search index on the fly before running the import process and enabling it when the import is completed. 

How to do this? There are two ways. The choice depends on how you run an importer. The first method involves an importer that runs via PHP, and the second way is for an importer that 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');

If you’re using WP All Import, you can disable the updater with the following code:

add_action( 'pmxi_before_post_import', function () {
    global $fibosearch_disable_updater;
    if ( empty( $fibosearch_disable_updater ) ) {
        add_filter( 'dgwt/wcas/tnt/disable_updater', function () {
	    return true;
	} );
        $fibosearch_disable_updater = true;
} );
  1. Open the functions.php file in your child theme and add the code at the end
  2. Or install the Code Snippets plugin and apply this code as a snippet.

Disable updater manually

Step 1: Install and activate the Code Snippets plugin

Step 2: Go to Snippets Add new

Step 3: Add the following code:

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

Step 4: Enable the snippet

Step 5:  Run your importer tools

Step 6: Disable the custom snippet after finishing the import process

Step 7: Repeat steps 4 to 6 before each import