Sunnysideup\Ecommerce\Tasks\EcommerceTaskArchiveAllOrdersWithItems
After a bug in the saving of orders in the CMS This "fixer" was introduced to fix older orders without a submission record.
Synopsis
class EcommerceTaskArchiveAllOrdersWithItems
extends BuildTask
{
- // members
- protected string $title = 'Archive all orders with order items and payment and add a submit record.';
- protected string $description = " This task moves all orders to the 'Archived' (last) Order Step without running any of the tasks in between. NB: It also adds a submit record. This task is basically for orders that never got archived. ";
- private static string $payment_table = 'EcommercePayment';
- // methods
- public void run()
- public void getOrdersForCreateSubmissionLogForArchivedOrders()
- protected void createSubmissionLogForArchivedOrders()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
private
- $payment_table
protected
- $description
- $title