Run import from PHP

Closed

Import WP Updated 7 months ago 3 Replies

Mattia asked 7 months ago on May 2, 2024 at 3:36 pm

Hi, 
on my site every time a user places an order via woocommerce a url is retrieved that generates a csv file for me that contains the updated product quantities in the ftp server. I need to make sure that when this url is retrieved, the import of this data is done automatically via ImportWP.

Is there any hook or something similar to be able to do this?

Thanks

J

James replied Support Agent

7 months ago on May 2, 2024 at 11:03 pm

Hi Mattia,

At this moment in time there is no easy way in code to set a file path and run the importer, due to how the importer has to be ran in batches.

James

MM

Mattia replied

7 months ago on May 3, 2024 at 6:54 am

Hi James,

I thank you for your response.

So there is no way to create this automatism?

 

Best Regards.

Mattia

J

James replied Support Agent

7 months ago on May 12, 2024 at 9:30 pm

Hi Mattia,

Sorry for the delay in response as i have been away on vaction over the past week.

I will have a look at the code and see if i can find a simple way to trigger an import of a specific file via code, i will update once i know more.

James