Queue Orders For Sync
Order queueing is only performed on stores which have been integrated with Klevu. Additionally, stores which have the setting Klevu > Data Sync > Order Analytics > Order Sync Status set to Disable will not queue orders.
The module listens to the sales_model_service_quote_submit_success event triggered by Magento when a quote / cart is converted to an order and persisted successfully. A record is created in the klevu_sync_order database table, in a queued status.
You can manually add or re-queue orders via the terminal using the klevu:analytics:queue-orders-for-sync command. Orders can be specified using a combination of order id; current sync status; and store id, supporting a variety of scenarios, including
- Manually queueing (or re-queueing) individual records
- Re-queueing failed orders
- Backfilling orders for a newly integrated store
The command line also supports ignoring the Klevu > Data Sync > Order Analytics > Order Sync Status configuration value, if desired.
Records are created in the klevu_sync_order database table in a queued state for orders which have never previously been queued. Where a record already exists in the database, and is not in a queued or retry status, its status will be updated to retry.