public function onLoadSupportedConversionPages() : array

Fires while fetching the pages that support the conversion codes.


Description

Loads a list of supported pages that can be used while creating/editing a conversion code.

The name of the page must be equals to the view name in the front-end. In example, the page displaying the list of employees is called "employeeslist".

By default the system supports the following pages:

  • confirmapp - the page used to fill the custom fields;
  • order - the landing page after a successful purchase.

Return Value

Array. A list of supported pages.


Example

/**
 * Loads a list of supported pages that can be used while creating/editing a conversion code.
 * The name of the page must be equals to the view name in the front-end. In example, the page
 *
 * @return  array  An array of supported pages.
 */
public function onLoadSupportedConversionPages()
{
    return [
        // add support for the employee details page
        'employeesearch',
        // add support for the service details page
        'servicesearch',
    ];
}

Changelog

VersionDescription
1.7 Introduced.
Last Update: 2021-10-06 17:01
Helpful?