In x-cart Admin can longin as customers and place orders on their behalf. Sometimes at checkout it is useful to know if the customer is an admin so 3d secure can be bypassed. To do this you can set a session variable when the admin logs in and views the dashboard.
//Add the following to the /admin/home.php
//find this line at the bottom of the page
if (is_readable($xcart_dir.'/modules/gold_display.php')) {
include $xcart_dir.'/modules/gold_display.php';
}
//add this just before it
// Assign the current location line
if (!empty($login)) {
$smarty->assign('location', $location);
//added by pin z1c to allow for telephone orders
$offline = TRUE;
x_session_register('offline');
x_session_save();
}
//then edit the /cart.php in the root
//find this line
func_display('customer/home.tpl', $smarty);
//add this just before it
// Assign the ability to place an offline order
x_session_register('offline');
$smarty->assign('offline', $offline);
You should now be able to use $offline in the smarty template file