• Resolved mkovcu

    (@mkovcu)


    Hello,

    We have problem when creating products via rest-api, it seems that sku is not indexed for search when product is created. Only after created product is manually updated from wp-admin sku is indexed. How can this be solved?

    I wrote to premium support 2 times, created video (it was viewed) but didn’t get answer at all.

    Please help this is really important

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

    (@mihail-barinov)

    Hello,

    Sorry for the long response, but looks like I found the solution for you.
    You will need to make some little changes in the plugin source code. I will add the same changes in the next plugin release.

    So please open advances-woo-search-pro/includes/class-aws-table.php file, find line

    add_action( 'wp_insert_post', array( $this, 'product_changed' ), 10, 2 );

    and replace it with

    add_action( 'woocommerce_new_product', array( $this, 'product_changed' ), 10, 2 );
    add_action( 'woocommerce_update_product', array( $this, 'product_changed' ), 10, 2 );

    Regards

    Thread Starter mkovcu

    (@mkovcu)

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Index sku when product created via rest-api’ is closed to new replies.