Back to PhocacartOrder class

Method __construct

public
__construct
()

Method __construct - Source code

// 0 all, 1 online shop, 2 pos (category type, payment method type, shipping method type)
public function __construct()
{
    $this->downloadable_product = 0;
    // if there will be at least one downloadable file in order, we will mark it to display
    // right thank you message
    $this->action_after_order = 1;
    // which action will be done after order - end, procceed to payment, ...
    $this->message_after_order = array();
    // custom message array made by plugin
    $this->data_after_order = array();
}