A new Joomla Scheduled Task plugin for Phoca Cart is available. Developed by Nidzo, this plugin automatically cancels Phoca Cart orders whose Invoice Due Date has passed while the order remains unpaid.
Functionality
Phoca Cart includes an Invoice Due Date Days setting for offline and invoice payments, but does not include an automatic mechanism to process orders once that date expires. This plugin addresses that requirement by running on a defined schedule to locate overdue unpaid orders and update their status to Cancelled.
Because the plugin utilizes the core Phoca Cart status change pipeline, all related operations execute automatically:
- Inventory stock is restored
- Reward points are recalculated
- Order history is updated
- Customer notification emails are generated and sent
The behavior matches a manual status change performed in the administration panel.
Task Execution Requirements
Joomla Scheduled Tasks can be executed using two methods:
- CLI cron via the console application
- Web Cron via a webhook URL (located in System / Scheduled Tasks / Options / Webcron)
This plugin requires Web Cron execution. The core Phoca Cart functions responsible for generating email and PDF invoice content require an active Joomla SiteApplication context and Document object. Running this task using CLI cron causes missing document context, which can prevent customer notification emails from sending properly.
Webhook URL format for hosting cron setup:
https://YOURSITE/component/ajax?plugin=RunSchedulerWebcron&group=system&format=json&hash=YOUR_WEBCRON_HASH&id=YOUR_TASK_ID
Requirements
- Joomla 5.x or Joomla 6.x with com_scheduler
- Phoca Cart 6.1.x
- Web Cron execution enabled
License and Source Code
The plugin is free software released under the GNU General Public License v3.0 or later.
- Source code and downloads: Phoca Cart Cancel Overdue Invoices on GitHub
