nuance_chat_extension
extends abstract_extension
in package
Extension: nuance_chat_extension - online chat interface & integration - ATP Custom Plugin for WordPress
Tags
Table of Contents
- VERSION = '23.1103.1'
- __construct() : void
- constructor method
- addActionsAndFilters() : void
- Add filters and actions - called from main plugin
- body_scripts() : void
- page body
- chat_debugging() : array<string|int, mixed>
- Get the chat array for debugging
- check_cart_remove() : void
- check item removed from cart
- get_chat_array() : mixed
- get chat values
- getChatId() : string
- get the javascript for the qualified sale event
- getScriptTag() : string
- get the script tag
- head_scripts() : void
- page head
- initialize() : void
- initialize method - called from main plugin
- saveChatId() : void
- Save the chat id atpCustom.AjaxRequest('nuance_chat.saveChatId',{chatid: evt.chatID, customerid: evt.customerID, agentid: evt.agentID, bizrule: evt.bizRuleName});
- setDataPass() : string
- get the javascript for the data pass array
- setSalesTracking() : string
- get the javascript for the sales tracking arrays
Constants
VERSION
public
string
VERSION
= '23.1103.1'
extension version
Methods
__construct()
constructor method
public
__construct(object $plugin) : void
Parameters
- $plugin : object
-
main plugin object
Return values
void —addActionsAndFilters()
Add filters and actions - called from main plugin
public
addActionsAndFilters() : void
Return values
void —body_scripts()
page body
public
body_scripts() : void
Return values
void —chat_debugging()
Get the chat array for debugging
public
chat_debugging(mixed $debugging_array) : array<string|int, mixed>
Parameters
- $debugging_array : mixed
Return values
array<string|int, mixed> —extended array with [ extension_name => [key=>value array] ]
check_cart_remove()
check item removed from cart
public
check_cart_remove(mixed $cart_item_key[, mixed $wcCart = null ]) : void
Parameters
- $cart_item_key : mixed
- $wcCart : mixed = null
Return values
void —get_chat_array()
get chat values
public
get_chat_array() : mixed
Return values
mixed —getChatId()
get the javascript for the qualified sale event
public
getChatId() : string
Return values
string —getScriptTag()
get the script tag
public
getScriptTag() : string
Return values
string —- the script tag
head_scripts()
page head
public
head_scripts() : void
Return values
void —initialize()
initialize method - called from main plugin
public
initialize() : void
Return values
void —saveChatId()
Save the chat id atpCustom.AjaxRequest('nuance_chat.saveChatId',{chatid: evt.chatID, customerid: evt.customerID, agentid: evt.agentID, bizrule: evt.bizRuleName});
public
saveChatId(mixed $params) : void
Parameters
- $params : mixed
Return values
void —setDataPass()
get the javascript for the data pass array
public
setDataPass() : string
Return values
string —setSalesTracking()
get the javascript for the sales tracking arrays
public
setSalesTracking() : string