Changeset View
Changeset View
Standalone View
Standalone View
modules/in-commerce/units/orders/orders_event_handler.php
Show First 20 Lines • Show All 3787 Lines • ▼ Show 20 Line(s) | |||||
$fields['SubNumber']['format'] = str_replace('%03d', '%0'.$order_sub_number.'d', $fields['SubNumber']['format']); | $fields['SubNumber']['format'] = str_replace('%03d', '%0'.$order_sub_number.'d', $fields['SubNumber']['format']); | ||||
$site_helper = $this->Application->recallObject('SiteHelper'); | $site_helper = $this->Application->recallObject('SiteHelper'); | ||||
/* @var $site_helper SiteHelper */ | /* @var $site_helper SiteHelper */ | ||||
$fields['BillingCountry']['default'] = $site_helper->getDefaultCountry('Billing'); | $fields['BillingCountry']['default'] = $site_helper->getDefaultCountry('Billing'); | ||||
$fields['ShippingCountry']['default'] = $site_helper->getDefaultCountry('Shipping'); | $fields['ShippingCountry']['default'] = $site_helper->getDefaultCountry('Shipping'); | ||||
if (!$this->Application->isAdminUser) { | if ( !$this->Application->isAdminUser && $this->Application->isWebRequest() ) { | ||||
$user_groups = explode(',', $this->Application->RecallVar('UserGroups')); | $user_groups = explode(',', $this->Application->RecallVar('UserGroups')); | ||||
$default_group = $this->Application->ConfigValue('User_LoggedInGroup'); | $default_group = $this->Application->ConfigValue('User_LoggedInGroup'); | ||||
if (!in_array($default_group, $user_groups)){ | if (!in_array($default_group, $user_groups)){ | ||||
$user_groups[] = $default_group; | $user_groups[] = $default_group; | ||||
} | } | ||||
$sql_part = ''; | $sql_part = ''; | ||||
▲ Show 20 Lines • Show All 334 Lines • Show Last 20 Lines |