| Line 106... |
Line 106... |
| 106 |
// $this->set('source_ids',Configure::read('storemapping'));
|
106 |
// $this->set('source_ids',Configure::read('storemapping'));
|
| 107 |
$this->set('categories',Configure::read('Categories'));
|
107 |
$this->set('categories',Configure::read('Categories'));
|
| 108 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
108 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
| 109 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
109 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
| 110 |
$shortage_status = array(0=>'No',1=>'Yes');
|
110 |
$shortage_status = array(0=>'No',1=>'Yes');
|
| - |
|
111 |
$buyBoxFlag = array(1 => 'Yes', 0 => 'No');
|
| 111 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status'));
|
112 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status','buyBoxFlag'));
|
| 112 |
}
|
113 |
}
|
| 113 |
|
114 |
|
| 114 |
public function admin_addtoexisting() {
|
115 |
public function admin_addtoexisting() {
|
| 115 |
if ($this->request->is('post')) {
|
116 |
if ($this->request->is('post')) {
|
| 116 |
$this->log(print_r($this->request->data,1),'masterdatas');
|
117 |
$this->log(print_r($this->request->data,1),'masterdatas');
|
| Line 134... |
Line 135... |
| 134 |
// $this->set('source_ids',Configure::read('storemapping'));
|
135 |
// $this->set('source_ids',Configure::read('storemapping'));
|
| 135 |
$this->set('categories',Configure::read('Categories'));
|
136 |
$this->set('categories',Configure::read('Categories'));
|
| 136 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
137 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
| 137 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
138 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
| 138 |
$shortage_status = array(0=>'No',1=>'Yes');
|
139 |
$shortage_status = array(0=>'No',1=>'Yes');
|
| - |
|
140 |
$buyBoxFlag = array(1 => 'Yes', 0 => 'No');
|
| 139 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status'));
|
141 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status','buyBoxFlag'));
|
| 140 |
}
|
142 |
}
|
| 141 |
|
143 |
|
| 142 |
public function admin_update($id) {
|
144 |
public function admin_update($id) {
|
| 143 |
if ($this->request->is('post')) {
|
145 |
if ($this->request->is('post')) {
|
| 144 |
$this->log(print_r($this->request->data,1),'masterdatas');
|
146 |
$this->log(print_r($this->request->data,1),'masterdatas');
|
| Line 169... |
Line 171... |
| 169 |
// $this->set('source_ids',Configure::read('storemapping'));
|
171 |
// $this->set('source_ids',Configure::read('storemapping'));
|
| 170 |
$this->set('categories',Configure::read('Categories'));
|
172 |
$this->set('categories',Configure::read('Categories'));
|
| 171 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
173 |
$stock_statuses = array(0=>'OOS',1=>'In Stock');
|
| 172 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
174 |
$statuses = array(2=>'EOL',1=>'Active',3=>'In Process',4=>'Exclusive');
|
| 173 |
$shortage_status = array(0=>'No',1=>'Yes');
|
175 |
$shortage_status = array(0=>'No',1=>'Yes');
|
| - |
|
176 |
$buyBoxFlag = array(1 => 'Yes', 0 => 'No');
|
| 174 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status','data'));
|
177 |
$this->set(compact('stock_statuses','statuses','sources','shortage_status','data','buyBoxFlag'));
|
| 175 |
}
|
178 |
}
|
| 176 |
|
179 |
|
| 177 |
public function admin_search(){
|
180 |
public function admin_search(){
|
| 178 |
$page = $this->request->query('page');
|
181 |
$page = $this->request->query('page');
|
| 179 |
if(!isset($page)){
|
182 |
if(!isset($page)){
|