Create XML and auto-renewal
How you create the XML of Public with Generate, where you find the link and how you put the server cron for daily automatic renewal of offers.
Create#
- Open WooCommerce → OBS Woo Export, tab Exports.
- Enable the export of Public and, if you want, the automatic update.
- Press Generate And don't close the page until it's complete.
- Copy the public link that appears. This is what you indicate in your public account.
After each change in the settings, press again Generate to update the file.
Automatically refreshed with cron server#
WP-Cron runs only when the site has visits, and in many products the creation by the browser can end (timeout). That is why OBS suggests a server cron:
- In cPanel (Cron Jobs), in Plesk (Scheduled Tasks) or with
crontab -e, add work running with PHP filewp-content/plugins/obs-woo-export/cron.phpof your installation. - Set frequency, e.g. once or twice a day, in low-motion hours.
- Optionally, add to
wp-config.phpthe linedefine('DISABLE_WP_CRON', true);. Then put a server cron on thewp-cron.php, so that the rest of WordPress's planned work can continue.
If you don't manage the server, send his route. cron.php in your hosting account or ask OBS to configure it.
Check that he's running#
The next day open XML and check that a value or quantity you changed to WooCommerce has passed on to the file.
Send a request; the plugin and the article are automatically completed.