# Cron Setup for cPanel

Set these commands in cPanel Cron Jobs. Replace `/home/USER/public_html/PurchaseHaat_SmartTechOMP` with your real path.

```bash
/usr/local/bin/php /home/USER/public_html/PurchaseHaat_SmartTechOMP/cron/rank_upgrade.php
/usr/local/bin/php /home/USER/public_html/PurchaseHaat_SmartTechOMP/cron/royalty_eligibility.php
/usr/local/bin/php /home/USER/public_html/PurchaseHaat_SmartTechOMP/cron/weekly_statement.php
/usr/local/bin/php /home/USER/public_html/PurchaseHaat_SmartTechOMP/cron/monthly_statement.php
/usr/local/bin/php /home/USER/public_html/PurchaseHaat_SmartTechOMP/cron/auto_suspend_reactivate.php
/usr/local/bin/php /home/USER/public_html/PurchaseHaat_SmartTechOMP/cron/abandoned_cart_recovery.php
/usr/local/bin/php /home/USER/public_html/PurchaseHaat_SmartTechOMP/cron/sitemap_generate.php
/usr/local/bin/php /home/USER/public_html/PurchaseHaat_SmartTechOMP/cron/backup.php
```

Suggested frequency:
- Rank upgrade: hourly
- Royalty eligibility: daily
- Weekly statement: Friday evening
- Monthly statement: day 30 monthly
- Auto suspend/reactivate: daily
- Abandoned cart: every 2 hours
- Sitemap: daily
- Backup: daily or weekly

## Pro POS cron

### Daily POS day close
Run after store closing time or just after midnight:

```bash
/usr/local/bin/php /home/USERNAME/public_html/cron/pos_day_close.php
```

Optional manual date:

```bash
/usr/local/bin/php /home/USERNAME/public_html/cron/pos_day_close.php 2026-05-09
```
