\ElectronicDelivery_OrderStep
This file contains the tricks for delivering an order electronically.
Firstly there is a step you can include as an order step.
The order step works out the files to be added to the order
and the Order Status Log contains all the downloadable files.
NOTA BENE: your buyable MUST have the following method:
DownloadFiles();
TODO: add ability to first "disable" and then delete files...
TODO: add ability to restor downloads
Synopsis
class ElectronicDelivery_OrderStep
extends OrderStep
{
- // members
- private static array $db = ;
- private static array $many_many = ;
- private static array $field_labels = ;
- private static array $defaults = ;
- private static String $download_method_in_byable = "DownloadFiles";
- protected String $relevantLogEntryClassName = "ElectronicDelivery_OrderLog";
- protected String $emailClassName = "Order_StatusEmail";
- // methods
- public void getCMSFields()
- public Boolean initStep()
- public Boolean doStep()
- public OrderStep nextStep()
- public FieldList addOrderStepFields()
- protected String myDescription()
- protected Boolean hasCustomerMessage()
Hierarchy
Extends
- OrderStep
Members
private
- $db
- $defaults
- $download_method_in_byable
—
String
The method that provides a datalist of files to be downloaded for a buyable. - $field_labels
- $many_many
protected
Methods
protected
- hasCustomerMessage() — For some ordersteps this returns true...
- myDescription() — Explains the current order step.
public
- addOrderStepFields() — Allows the opportunity for the Order Step to add any fields to Order::getCMSFields
- doStep() — Add the member to the order, in case the member is not an admin.
- getCMSFields()
- initStep() — Can always run step.
- nextStep() — nextStep: returns the next step (after it checks if everything is in place for the next step to run...)