wpsolr index problem from custom plugin importer

  • giannissak
    Participant
    3 years, 6 months ago #22173

    Hi Patrice
    i have a problem with products that been created dynamic through a bridge fron an external erp and a custom plugin that i have writen and imports the products in woocommerce.
    The Wpsolr doesn’t index them and i have go to each product, unpublish it and publish it again to make the wpsolr capable to index it.

    Is there any command (hook) that i can add to my custom plugin importer so the wpsolr can index them when the product created the first time;
    thank you

    wpsolr
    Keymaster
    3 years, 6 months ago #22174

    Indexing happens in real-time. Your plugin should just update the products to trigger the ‘save_post’ action, or just trigger the action.

    Or, you can setup the WPSOLR “Cron” extension and call its REST API at the end of your import.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.