Commit 175d0da092578eb0c7b8cbb94d46e8c10712d580

Authored by Anastasia
1 parent 52b28882

price and count update

controllers/VariantCountController.php
... ... @@ -12,7 +12,7 @@
12 12 use artbox\catalog\models\Variant;
13 13 use yii\web\Response;
14 14 use PHPExcel_IOFactory;
15   - use yii\helpers\ArrayHelper;
  15 +
16 16  
17 17 /**
18 18 * VariantCountController implements the CRUD actions for VariantToShop model.
... ...
views/shop/_form.php
... ... @@ -58,7 +58,7 @@
58 58 <?= Html::checkbox("Shop[modeStr][$key][off]", ( isset($model->modeStr[ $key ][ 'off' ]) ) ? true : false) ?>
59 59 <?= Html::endTag('div'); ?>
60 60 <?php endforeach; ?>
61   - <?php if ($model->modeStr[ 'data' ]): ?>
  61 + <?php if (isset($model->modeStr[ 'data' ])): ?>
62 62  
63 63 <?php foreach ($model->modeStr[ 'data' ] as $key => $data): ?>
64 64 <?= Html::beginTag('div') ?>
... ...