Introduction
Cart Recovery is configured from Commerce Automation. It follows up when a customer starts or places a catalog order path but does not complete the expected checkout/payment action.
This option does not track every unknown Meta-native abandoned cart. It applies to order/checkout records that WAPI can see and manage.
Set the Cart Recovery delay, message, button label, and retry behavior in Commerce Automation. Keep the Commerce Automation job enabled in Settings / Cron Worker.
Commerce Automation Options
| Option | When to use it | What happens |
|---|---|---|
| Enabled | Use when abandoned checkout follow-up should run. | Eligible orders can queue a Cart Recovery run. |
| Delay (Minutes) | Use to decide how long WAPI waits before sending the recovery message. | The Commerce Automation worker sends after the order remains eligible for that delay. |
| Frequency Cap / Retry | Use to avoid repeated sends and to retry temporary failures. | Run history and attempts appear in Recent Runs. |
| Button Label / Message Template | Use to control the WhatsApp wording and checkout button. | The message is sent through the Catalog checkout-link helper when possible. |
Setup Steps
- Open Catalog Manager.
- Make sure the catalog is WAPI Public if customers should be able to browse and checkout through WAPI-managed flows.
- Open or confirm Checkout Mode. Reminders are most useful when checkout/payment is expected after order placement.
- Open Commerce Automation and configure the Cart Recovery journey.
- Enable Cart Recovery and set the delay in minutes.
- Open Settings / Cron Worker.
- Enable the central hub and keep the Commerce Automation job enabled.
- Use the single hub cron command shown on that page with the correct absolute project path for your server.
- Place a test order path, leave it incomplete, and check whether the reminder sends after the selected delay.
Central Cron Worker Path
Use the single hub command shown in Settings / Cron Worker. Commerce Automation is the visible owner for catalog reminder and order follow-up automation.
- The five stars mean the hub runs every minute.
- The `php` command must point to the CLI PHP available on your server.
- Keep the Commerce Automation job enabled when catalog reminder and order follow-up automation should run.
- The log redirection stores centralized worker output so hosting support or admins can inspect failures.
* * * * * php /home/your-user/domains/your-domain/public_html/your-app/app/Modules/Settings/Workers/cron_hub.php >> /path/to/logs/cron_hub.log 2>&1 Example Scenario
A customer receives a catalog product in WhatsApp, opens checkout, but does not complete payment.
Cart Recovery in Commerce Automation is enabled with a delay such as 30 minutes.
The centralized cron hub runs every minute, reaches the enabled cart-recovery job, and sends the configured reminder once the order becomes due and remains eligible.
Troubleshooting The Reminder
| Issue | Likely reason | What to check |
|---|---|---|
| Reminder never sends | The central hub is disabled, Cart Recovery is off, or the live hub cron command is missing. | Open Settings > Cron Worker, verify hub status, check Commerce Automation Cart Recovery, and review Recent Runs. |
| Reminder sends late | The hub interval/job interval is too slow or server queue is delayed. | Run the hub every minute, keep the owning job cadence appropriate, and check centralized cron logs. |
| Reminder does not send for one catalog | The catalog/order is not eligible or a reminder was already sent. | Check Public, Checkout Mode, order payment/status, Recent Runs, and whether a reminder was already sent. |
| Customer receives wrong wording | The Cart Recovery message template needs adjustment. | Open Commerce Automation and review the Cart Recovery message text and tokens. |
| Hosting supports URL cron only | The centralized cron hub is CLI based. | Ask for a small authenticated bridge for the single hub entry if your hosting cannot run CLI commands. |
FAQs & Troubleshooting
Does Cart Recovery work without cron?
No. Scheduled sending depends on the central hub cron running the Commerce Automation job.
Should cron run every minute?
Yes. Every-minute cron keeps short delay timings reasonably accurate.
Will it remind every customer forever?
No. The worker should send only for eligible incomplete order/checkout records and track that a reminder was sent.
Troubleshooting Checklist
- Confirm Cart Recovery is enabled in Commerce Automation.
- Check whether the order is already paid, completed, cancelled, or already reminded.
- Check the central hub cron log/heartbeat for PHP path, permission, or database connection errors.
- Use a test order with a short delay first before enabling reminders on all catalogs.