Your cart is empty!
Load Supported Types
public function onLoadSupportedConversionTypes() : array
Fires while fetching the e-commerce types that support the conversion codes.
Description
Loads a list of supported types that can be used while creating/editing a conversion code.
The name of the type must be equals to the database table name. In example, the table holding the orders of the packages is called package_order
. The selected table must own the following columns for a correct tracking:
Column | Type | Description |
id |
int(10) | The record primary key. |
conversion |
varchar(64) | Holds the conversion cookie signature. |
By default the system supports the following types:
- reservation - the appointments e-commerce.
Return Value
Array. A list of supported types.
Example
/**
* Loads a list of supported types that can be used while creating/editing a conversion code.
* The name of the type must be equals to the database table name. In example, the table holding
* the orders of the packages is called "package_order".
*
* @return array An array of supported types.
*/
public function onLoadSupportedConversionTypes()
{
// IMPORTANT: do not forget to alter the database table, which must specify the conversion column
return [
// add support for the packages e-commerce
'package_order',
];
}
Changelog
Version | Description |
---|---|
1.7 | Introduced. |
Last Update: 2021-10-06 17:03
Helpful?