• Resolved Richard Bakos

    (@resonancedesigns)


    I thought that this plugin would reindex the products whenever new products are imported or changes to existing products were made/synced. Doesn’t appear to work. I have imported/synced thousands of products from Square into WooCommerce and AWS only showed 900-something from when it was first installed of products that are long gone. This caused the search to not pull up anything. I did a manual reindex and now it works. How can I ensure that it will reindex properly on every import/sync of inventory?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    Yes, the default behavior of this plugin is that it must automatically sync all newly added products with the plugin index table. Looks like in your case something goes wrong.

    You mentioned that you import products from Square. Please tell me – how do you do this? Are you using any third-party plugin for this?

    Regards

    Thread Starter Richard Bakos

    (@resonancedesigns)

    The official WooCommerce Square plugin by WooCommerce.

    Plugin Author ILLID

    (@mihail-barinov)

    Looks like I found the solution for you. Please use following code snippet

    add_action( 'wc_square_products_synced', function( $product_ids ) {
    do_action( 'aws_reindex_product', $product_ids );
    } );

    You need to add it somewhere outside the plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets. After adding this code all synced with Square products must be automatically indexed via AWS plugin.

    Thread Starter Richard Bakos

    (@resonancedesigns)

    Excellent, added to my child theme. I will verify this solution works on the next import job. Thanks for the help.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Schedule Reindex Table Task’ is closed to new replies.