This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: New products from api are not seacrhable

Home Forums Product Support Forums Ajax Search Pro for WordPress Support New products from api are not seacrhable Reply To: New products from api are not seacrhable

#46724
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

Thank you for the details, I know exactly what is wrong here.

So, in some cases data importing solutions do not trigger the save_post or wp_insert_post hook after a post had been added to the database.
Those hooks are crucial as plugins attach actions to them, in this case Ajax Search Pro triggers the index table update process. If you have access to the import method, then I strongly recommend triggering the save_post hook once all the data, metadata, sku and everything was created. That is a good measure to refresh the data.

If you can’t do that, then there are two alternative methods to try:
1. Enable this option. If by any chance the SKU meta is added after the post object is created, then this could resolve it. However watch the server performance, if you notice anything strange, turn this off.
2. Instead of triggered index, use Cron only. This will trigger the index at intervals to update, and should ensure that only the fully generated products are indexed.