Setting an email alert on a successful cron import in a WooCommerce store is essential for monitoring and accountability. It immediately confirms that the scheduled product import ran as expected, ensuring data was updated correctly without needing to manually check the site. This is especially useful when handling frequent or automated imports from external sources. The alert is a simple but effective way to track import activity, catch issues early, and maintain smooth store operations with minimal oversight.
Using Product Import Export Plugin For WooCommerce, one can set email alerts on successful cron imports, paste the below code snippet in the functions.php file. Follow the below-mentioned steps:
- From the WordPress admin dashboard, navigate to Appearance > Theme File Editor.
- Under Theme Files, select Theme Functions (functions.php).
- Paste the code snippet at the end of the functions.php file of your active child theme.
Email alert on successful cron import
When the cron job is set up, the import will occur according to the configuration. To receive an alert when the auto import or export is successful, simply insert the code snippet below into the functions.php of the active child theme.
In the above snippet, the email subject is ‘Product Auto Import Export’ and the body of the mail is the ‘Product scheduled import completed’. You can replace your personalized email content in the snippet as you prefer.
Email alert with import log
After a successful cron import, you can receive an email containing the import log with the below-mentioned snippet:
daniele
August 3, 2021
I have the same question on june 21 2021 (howard) :
Is it possible to have the full import report (with the successes/failures) emailed on completion of a CRON import?
Mark
August 4, 2021
Hi,
We have developed a code snippet for this requirement. Please insert this code to the functions.php of active theme file.
Howard Austin
June 21, 2021
Is it possible to have the full import report (with the successes/failures) emailed on completion of a CRON import?
Alan
June 22, 2021
Hi,
We can provide you with a custom snippet to send the import log file to an email address once the import is complete. Please reach us via support.