update adminorders page min date and updated configuration

This commit is contained in:
Shreesh Arora
2024-03-13 16:05:24 +05:30
parent 263ba57ac5
commit 0a1651d6ca
5 changed files with 37 additions and 18 deletions

View File

@@ -78,6 +78,16 @@ class AdminOrderPreferencesControllerCore extends AdminController
'class' => 'fixed-width-xl',
'suffix' => $this->l('day(s)'),
),
'PS_BACKDATE_ORDER_SUPERADMIN' => array(
'title' => $this->l('Allow backdate order from Back-office for super-admin'),
'hint' => $this->l('Allow superadmin to create bookings for backdate'),
'type' => 'bool',
),
'PS_BACKDATE_ORDER_EMPLOYEES' => array(
'title' => $this->l('Allow backdate order from Back-office for employees'),
'hint' => $this->l('Allow employees to create bookings for backdate'),
'type' => 'bool',
),
),
'submit' => array(
'title' => $this->l('Save'),
@@ -197,22 +207,6 @@ class AdminOrderPreferencesControllerCore extends AdminController
),
'submit' => array('title' => $this->l('Save'))
),
'back_date_order' => array(
'title' => $this->l('Backdate Order Restrictions'),
'icon' => 'icon-cogs',
'fields' => array(
'PS_BACKDATE_ORDER_SUPERADMIN' => array(
'title' => $this->l('Allow backdate order from Back-office for super-admin'),
'hint' => $this->l('Allow superadmin to create bookings for backdate'),
'type' => 'bool',
),
'PS_BACKDATE_ORDER_EMPLOYEES' => array(
'title' => $this->l('Allow backdate order from Back-office for employees'),
'hint' => $this->l('Allow employees to create bookings for backdate'),
'type' => 'bool',
),
)
)
);
if (!Configuration::get('PS_ALLOW_MULTISHIPPING')) {