Developer Center

Addon

Order Addon Parameters

Name Type Description
id int Order Addon No
invoice_id int ID number related to Invoice Number
(Database Field: invoices.id)
owner_id int ID number related to Order Number
(Database Field : user_products.id)
addon_id int ID number related to Order Number
(Database Field : user_products.id)
addon_name string Addon Name
option_id int ID number related to Product Add-On Option No
(Database Field : products_addons_lang.options.id)
option_name string Option Name
period string Period Type
(year,month,week,day,hour,none)
period_time int Period Time
amount int Amount
cid int ID number related to Currency No
Database Field : currencies.id)
status string Status
(awaiting,inprocess,active,suspend,unsuspend)
status_msg string Status Message
cdate string First Payment Date (Y-M-D H:i:s)
renewaldate string Renewal Date (Y-M-D H:i:s)
duedate string Payment Due Date (Y-M-D H:i:s)

Sample Usage

Hook::add("AddonActivated",1,function($params=[]){
   /** get order params:
   $order = Orders::get($params["owner_id"]);
   // Write the code here...
   */
});

 

AddonActivated

Called after order add-on is activated.

Return

Not supported

AddonActivation

Called before order add-on is activated.

Return

Not supported

AddonSuspended

Called when the order add-on is suspended.

Return

Not supported

AddonUnsuspended

Called when the order add-on is unsuspended.

Return

Not supported

AddonCancelled

Called when order add-on is canceled.

Return

Not supported

AddonDeleted

Called when order add-on is deleted.

Return

Not supported

AddonModified

Called when there is a modification in order add-on.

Return

Not supported

AddonRenewal

Called when the order add-on period is extended.

Return

Not supported

AddonAddedtoOrder

Called when an add-on is defined to an order.

Return

Not supported

Order Domain

Do you have any questions?

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