Skip to main content

Cronjobs

There are 4 cron jobs that need to be set up for full functionality.

  • Update Inventory
  • Update ASNs
  • Update Orders
  • Update Returns

The recommended interval for the cron jobs is once every 24 hours.

info

The commands have to be invoked via WP-CLI.

Update Inventory

wp dhlefn_update_inventory

Fetches the available quantity for every mapped product and updates the stock in the store.

Update ASNs

wp dhlefn_update_asns

Updates the status of all ASNs that are not yet in status DELIVERED and updates the inventory of relevant products as soon as that status is reached.

Update Orders

wp dhlefn_update_orders

Searches for tracking numbers for all orders that have been sent to DHL for processing but do not have one yet.

In WooCommerce the tracking number is stored in a WordPress custom field with the name _dhlefn_order_tracking_number.

Update Returns

wp dhlefn_update_returns

Updates the status of all Return Orders that are not yet in status DELIVERED and updates the inventory of relevant products as soon as that status is reached.