Commit 576325f4c8fee98c40b7b38ff5fb39281f2fdf1c
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,6 +197,7 @@ | ||
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | /** | 199 | /** |
| 200 | + * Select Variants for list | ||
| 200 | * @param string $q | 201 | * @param string $q |
| 201 | * @param int|null $shop_id | 202 | * @param int|null $shop_id |
| 202 | * | 203 | * |
| @@ -243,7 +244,13 @@ | @@ -243,7 +244,13 @@ | ||
| 243 | } | 244 | } |
| 244 | return $out; | 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 | public function actionImport($shop_id){ | 255 | public function actionImport($shop_id){ |
| 249 | return $this->render( | 256 | return $this->render( |
| @@ -253,6 +260,12 @@ | @@ -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 | public function actionUpload($shop_id) | 270 | public function actionUpload($shop_id) |
| 258 | { | 271 | { |
| @@ -277,6 +290,10 @@ | @@ -277,6 +290,10 @@ | ||
| 277 | 290 | ||
| 278 | return $data; | 291 | return $data; |
| 279 | } | 292 | } |
| 293 | + /** | ||
| 294 | + * insert variants to stock | ||
| 295 | + * @param $shop_id | ||
| 296 | + */ | ||
| 280 | 297 | ||
| 281 | 298 | ||
| 282 | protected function populateImportTable($shop_id) | 299 | protected function populateImportTable($shop_id) |