Skip to content

Commit d5ec5fc

Browse files
authored
Merge pull request #1042 from vishal-singh-webkul/gli-2102
Updated: Created different block for the customer general and customer KPI configuration in the customer preferences in the admin office.
2 parents 36f8d2c + 85f3eba commit d5ec5fc

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

controllers/admin/AdminCustomerPreferencesController.php

+16-5
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public function __construct()
5050

5151
$this->fields_options = array(
5252
'general' => array(
53-
'title' => $this->l('General'),
54-
'icon' => 'icon-cogs',
55-
'fields' => array(
53+
'title' => $this->l('General'),
54+
'icon' => 'icon-cogs',
55+
'fields' => array(
5656
'PS_REGISTRATION_PROCESS_TYPE' => array(
5757
'title' => $this->l('Registration process type'),
5858
'hint' => $this->l('The "Only account creation" registration option allows the customer to register faster, and create his/her address later.'),
@@ -121,6 +121,15 @@ public function __construct()
121121
'cast' => 'intval',
122122
'type' => 'bool'
123123
),
124+
),
125+
'submit' => array(
126+
'title' => $this->l('Save'),
127+
),
128+
),
129+
'customer_kpi' => array(
130+
'title' => $this->l('Customer KPI configuration'),
131+
'icon' => 'icon-cogs',
132+
'fields' => array(
124133
'PS_KPI_FREQUENT_CUSTOMER_NB_ORDERS' => array(
125134
'title' => $this->l('Number of orders to use to calculate frequent customers'),
126135
'hint' => $this->l('Set the number of orders to use to calculate frequent customers.'),
@@ -157,8 +166,10 @@ public function __construct()
157166
'class' => 'fixed-width-xl',
158167
),
159168
),
160-
'submit' => array('title' => $this->l('Save')),
161-
),
169+
'submit' => array(
170+
'title' => $this->l('Save'),
171+
),
172+
)
162173
);
163174
}
164175

0 commit comments

Comments
 (0)