⏰Cron Jobs

Several features require scheduled tasks (cron jobs) to run. All URLs are listed in Setup β†’ Settings β†’ Products at the bottom.


πŸ€” Why Cron Jobs?

  • Abandoned cart emails β€” Sent only when the cron runs.

  • Back-in-stock notifications β€” Checked when the cron runs.

  • Price drop alerts β€” Checked when the cron runs.

Without these crons, these features will not work.


πŸ”— Cron URLs

Feature
URL
Recommended

Abandoned cart emails

https://yoursite.com/products/cron/abandoned_cart_emails

Daily

Back-in-stock

https://yoursite.com/products/cron/back_in_stock_emails

Daily

Price drop

https://yoursite.com/products/cron/price_drop_emails

Daily

Replace yoursite.com with your actual domain.


πŸ“ How to Add to Crontab

Linux / cPanel

  1. Open your crontab: crontab -e

  2. Add lines like:

Alternative: wget

PHP CLI (if curl/wget unavailable)


Cron Behavior

  • Each endpoint checks if its feature is enabled before running.

  • If disabled, it exits immediately.

  • Output is minimal (e.g., "Sent: X" for emails). No output usually means nothing to process or feature disabled.


πŸ§ͺ Testing

You can test by visiting the URL in a browser or running:

You should see a short response (e.g., "Sent: 0" or "Disabled").

Last updated