Developer Center

EN

Ticket

Default Support Request Parameters

Name Type Description
id int ID Number
did int Department ID Number (Database Field: tickets_departments.id)
user_id int Client ID Number
status string Ticket Status
waiting - Awaiting Response
replied - Responded
process - In progress
solved - Solved
locked int Ticket Lockout Status
1 - Ticket is locked and client to ticket again
0 - Ticket is not locked and client can write to ticket again
priority int Ticket Priority Status
1 - Low
2 - Medium
3 - High
title string Support Ticket Subject
ctime string Date Created (Y-m-d H:i:s)
lastreply string Last Response Date (Y-m-d H:i:s)
userunread int Ticket Reading Status of Client
0 - Not read
1 - Read
adminunread int Ticket Reading Status of Administrator
0 - Not read
1 - Read
service int ID Number related to Order ID Number (Database: users_products.id)
assigned int ID number related to the ID number (Database: users.id) of staff assigned to the ticket
assignedBy int ID number related to ID number (Database: users.id) of administrator who assigned a staff to ticket
custom_fields array Content of custom fields defined to ticket
message string Message
If it is at the point to create hook support request, parameter can be used

Default Support Request Response Parameters

Name Type Description
id int ID Number
user_id int ID number related to client or administrator (Database Field : users.id)
owner_id int ID number related to support ticket (Database Field : tickets.id)
admin int If the response is from administrator or not
1 - Yes
0 - No
name string Full Name of Responder
encrypted int If the coming value contains "1" it means the message is encrypted
message string Message
ctime string Responding Date (Format: Y-m-d H:i:s)
ip string IP Address of Responder

Parameters coming from the hook points related to support request repsonses are divided into two.

Name Example Description
request
$params['request']['id']
Includes default support during order paremeters.
reply
$params['reply']['message']
Includes default support request during order paremeters.


TicketAdminAreaViewDetail

Displayed on administrator panel support ticket detail.

Return

Return value must be in string or void type.

Hook::add("TicketAdminAreaViewDetail",1,function($params=[]){
return 'write something here...';
});

TicketAdminAreaViewDetailSidebar

Displayed on administrator panel support ticket detail.

Return

Return value must be in string or void type.

Hook::add("TicketAdminAreaViewDetailSidebar",1,function($params=[]){
return 'write something here...';
});

TicketAdminAreaViewCreate

Displayed on the administration panel support ticket creation screen.

Return

Return value must be in string or void type.

Hook::add("TicketAdminAreaViewCreate",1,function(){
return 'write something here...';
});

TicketAdminAreaViewCreateSidebar

Displayed on the administration panel support ticket creation screen.

Return

Return value must be in string or void type.

Hook::add("TicketAdminAreaViewCreateSidebar",1,function(){
return 'write something here...';
});

TicketAdminAreaViewList

Displayed on the Administrator panel support ticket list before the table is loaded.

Return

Return value must be in string or void type.

Hook::add("TicketAdminAreaViewList",1,function(){
return 'write something here...';
});

TicketClientAreaViewDetailTop

Displayed above the client panel support ticket detail.

Return

Return value must be in string or void type.

Hook::add("TicketClientAreaViewDetailTop",1,function($params=[]){
return 'write something here...';
});

TicketClientAreaViewDetail

Displayed above the responses on the client panel support ticket detail.

Return

Return value must be in string or void type.

Hook::add("TicketClientAreaViewDetail",1,function($params=[]){
return 'write something here...';
});

TicketClientAreaViewCreate

Displayed on the client panel support ticket creation screen.

Return

Return value must be in string or void type.

Hook::add("TicketClientAreaViewDetail",1,function(){
return 'write something here...';
});

TicketClientAreaViewList

Displayed on client panel support ticket list.

Return

Return value must be in string or void type.

Hook::add("TicketClientAreaViewList",1,function(){
return 'write something here...';
});

TicketClientCreated

Called after creating a client support request.

Return

Not Supported

TicketClientCreateValidation

Called after creating a client support request.

Return

Return value must be in string or void type.

Hook::add("TicketClientCreateValidation",1,function($params=[]){
return ['error' => 'write something here...'];
});

TicketAdminCreated

Called after administrator creates support request.

Return

Not Supported

TicketAdminCreateValidation

Called after administrator creates support request.

Return

Return value must be in string or void type.

Hook::add("TicketAdminCreateValidation",1,function($params=[]){
return ['error' => 'write something here...'];
});

TicketClientReplied

Called after responding client support request.

Return

Not Supported

TicketClientReplyValidation

Called after responding client support request.

Return

Return value must be in string or void type.

Hook::add("TicketClientReplyValidation",1,function($params=[]){
return ['error' => 'write something here...'];
});

TicketAdminReplied

Called after administrator responds support request.

Return

Not Supported

TicketAdminReplyValidation

Called after administrator responds support request.

Return

Return value must be in string or void type.

Hook::add("TicketAdminReplyValidation",1,function($params=[]){
return ['error' => 'write something here...'];
});

TicketAdminUpdated

Called after administrator updates support request.

Return

Not Supported

TicketDeleted

Called after the support request is deleted.

Return

Not Supported

TicketReplyModified

Called after support request response is updated.

Return

Not Supported

TicketReplyDeleted

Called after the support request response is deleted.

Return

Not Supported

TicketSolved

Called after the support request is marked as solved by administrator or client.

Return

Not Supported

TicketLockChange

Called after support request lockout status is changed.

Return

Not Supported

TicketDepartmentChange

Called after support request department is changed.

Return

Not Supported

TicketPriorityChange

Called after support request priority is changed.

Return

Not Supported

TicketStatusChange

Called after support request status is changed.

Return

Not Supported

TicketAssignedChange

Called after the person assigned with support request is changed.

Return

Not Supported

TicketServiceChange

Called after the service associated with support request is changed.

Return

Not Supported

Product / Service Shopping Cart

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