routing

Allows to add custom frontend routing rules.

Shop-Script

Input (passed by reference)

$route array Current route parameters.
… your plugin code …

Output

Custom routing rules in the form of an associative array similar to the way default rules are specified in Shop-Script config file routing.php.

Shop-Script

Plugin code example

PHP

public function routing(&$route)
{
    $url = shopMyPluginHelper::getUrlByRoute($route);
    return array(
        $url => 'frontend/',
    );
}