Commit 576325f4c8fee98c40b7b38ff5fb39281f2fdf1c

Authored by Anastasia
1 parent 17104392

paginator

Showing 1 changed file with 18 additions and 1 deletions   Show diff stats
controllers/VariantCountController.php
... ... @@ -197,6 +197,7 @@
197 197 }
198 198  
199 199 /**
  200 + * Select Variants for list
200 201 * @param string $q
201 202 * @param int|null $shop_id
202 203 *
... ... @@ -243,7 +244,13 @@
243 244 }
244 245 return $out;
245 246 }
246   -
  247 +
  248 + /**
  249 + * Show import form action
  250 + * @param $shop_id
  251 + *
  252 + * @return string
  253 + */
247 254  
248 255 public function actionImport($shop_id){
249 256 return $this->render(
... ... @@ -253,6 +260,12 @@
253 260 ]
254 261 );
255 262 }
  263 + /**
  264 + * Upload file action
  265 + * @param $shop_id
  266 + *
  267 + * @return array
  268 + */
256 269  
257 270 public function actionUpload($shop_id)
258 271 {
... ... @@ -277,6 +290,10 @@
277 290  
278 291 return $data;
279 292 }
  293 + /**
  294 + * insert variants to stock
  295 + * @param $shop_id
  296 + */
280 297  
281 298  
282 299 protected function populateImportTable($shop_id)
... ...