Пример #1
0
function fn_yandex_market_change_order_status(&$status_to, &$status_from, &$order_info, &$force_notification, &$order_statuses, &$place_order)
{
    Yml::clearCaches($order_info['company_id']);
    if (!empty($order_info['yandex_market'])) {
        if ($place_order) {
            $force_notification = array('C' => false);
            // We don't know real email yet
        } else {
            $status_obj = new OrderStatus($order_info);
            $res = $status_obj->change($status_to, $status_from);
            if ($res === false) {
                $status_to = $status_from;
                // Prevent
            }
        }
    }
}
Пример #2
0
<?php

/***************************************************************************
*                                                                          *
*   (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev    *
*                                                                          *
* This  is  commercial  software,  only  users  who have purchased a valid *
* license  and  accept  to the terms of the  License Agreement can install *
* and use this program.                                                    *
*                                                                          *
****************************************************************************
* PLEASE READ THE FULL TEXT  OF THE SOFTWARE  LICENSE   AGREEMENT  IN  THE *
* "copyright.txt" FILE PROVIDED WITH THIS DISTRIBUTION PACKAGE.            *
****************************************************************************/
use Tygh\Ym\Yml;
if (!defined('BOOTSTRAP')) {
    die('Access denied');
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    return;
}
if ($mode == 'update_status') {
    Yml::clearCaches();
}