Exemple #1
0
<?php

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
    die;
}
CModule::IncludeModule('mk.rees46');
// render js to track item view event
\Rees46\Events::view($arParams['item_id']);
Exemple #2
0
 /**
  * @deprecated Rees46\Events::purchase
  */
 public static function purchase($order_id)
 {
     Events::purchase($order_id);
 }
<?php

require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php';
if (IsModuleInstalled('mk.rees46') && IsModuleInstalled('sale')) {
    CModule::IncludeModule('sale');
    CModule::IncludeModule('mk.rees46');
    if (class_exists('Rees46\\Events')) {
        \Rees46\Events::purchase(null);
    }
}
LocalRedirect(GetOrderUrl());