Developer Center

EN

set_order()

To be used in the function, the information of the order is sent as parameter, the product and client information is retrieved through the order information, and the variables that are in the class are assigned.

Parameters

$order – Gives the information of the order.

public function set_order($order=[]){
    $this->order =  $order;
    Helper::Load(["Products","User"]);
    $this->product = Products::get($order["type"],$order["product_id"]);
    $this->user    = User::getData($order["owner_id"],"id,name,surname,full_name,company_name,email,phone,lang","array");
}
 
__construct() setConfig()

Do you have any questions?

We have a great team to answer your queries
Contact Us
Copyright © 2020. All rights reserved.
Join Our Discord Channel
Top