Developer Center

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?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top

New Year's Special Discount

"Startup Lifetime" and "Professional Lifetime" licenses are 30% off!

Coupon Code:
HAPPYYEARS30 Copied!
Discount Rate 30%
Expiration Date December 31, 2024