Пример #1
0
function list_customers_interests($pCustomersId)
{
    $ret = 'none';
    if ($interests = CommerceCustomer::getCustomerInterests($pCustomersId)) {
        $ret = '';
        foreach ($interests as $i) {
            if ($i['is_interested']) {
                $ret .= $i['interests_name'] . ',';
            }
        }
    }
    return $ret;
}
Пример #2
0
                }
            }
        }
        $gBitSmarty->assign_by_ref('fulfillmentFiles', $fulfillmentFiles);
    }
}
$gBitSmarty->assign('customerStats', zen_get_customers_stats($order->customer['id']));
if ($order_exists) {
    if ($paymentModule = $order->getPaymentModule()) {
        if (method_exists($paymentModule, 'admin_notification')) {
            $gBitSmarty->assign('notificationBlock', $paymentModule->admin_notification($oID));
        }
    }
    $gBitSmarty->assign('isForeignCurrency', !empty($order->info['currency']) && $order->info['currency'] != DEFAULT_CURRENCY);
    $gBitSmarty->assign('orderStatuses', commerce_get_statuses(TRUE));
    $gBitSmarty->assign('customersInterests', CommerceCustomer::getCustomerInterests($order->customer['id']));
    print '<div class="row">';
    print '<div class="col-md-8">' . $gBitSmarty->fetch('bitpackage:bitcommerce/admin_order.tpl') . '</div>';
    print '<div class="col-md-4">' . $gBitSmarty->fetch('bitpackage:bitcommerce/admin_order_status_history_inc.tpl') . '</div>';
    print '</div>';
    // check if order has open gv
    $gv_check = $gBitDb->query("select `order_id`, `unique_id`\n\t\t\t\t\t\t\tfrom " . TABLE_COUPON_GV_QUEUE . "\n\t\t\t\t\t\t\twhere `order_id` = '" . $_REQUEST['oID'] . "' and `release_flag`='N'");
    if ($gv_check->RecordCount() > 0) {
        $goto_gv = '<a href="' . zen_href_link_admin(FILENAME_GV_QUEUE, 'order=' . $_REQUEST['oID']) . '">' . zen_image_button('button_gift_queue.gif', IMAGE_GIFT_QUEUE) . '</a>';
        echo '			<tr><td align="right"><table width="225"><tr>';
        echo '				<td align="center">';
        echo $goto_gv . '&nbsp;&nbsp;';
        echo '				</td>';
        echo '			</tr></table></td></tr>';
    }
    ?>