Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?=
- $this->tabs([
- ['title' => 'Основное', 'hash' => 'main'],
- ['title' => 'META-данные', 'hash' => 'meta'],
- //['title' => 'Дополнительные поля', 'hash' => 'additionals'],
- ['title' => 'Изображения', 'hash' => 'images', 'class' => 'tab3'],
- ['title' => 'Размеры', 'hash' => 'sizes'],
- ])
- ?>
- <form action="" method="post" enctype="multipart/form-data" id="editProduct">
- <?= $this->tabs()->open() ?>
- <?= $this->tabs()->start('main') ?>
- <?= Core_Plugin_Fields::getInstance()->populate($this->dataId, 'general_product') ?>
- <?= $this->tabs()->end('main') ?>
- <?= $this->tabs()->start('meta') ?>
- <?= $this->meta()->fields($this->dataId) ?>
- <?= $this->tabs()->end('meta') ?>
- <?= $this->tabs()->start('additionals') ?>
- <?= Core_Plugin_Fields::getInstance()->populate($this->dataId, 'additional_product') ?>
- <?= $this->tabs()->end('addiitonals') ?>
- <?= $this->tabs()->start('images') ?>
- <?= Core_Plugin_Data::getInstance()->populateImages($this->dataId, 'catalog_product', ['multiple' => true]) ?>
- <?= $this->tabs()->end('images') ?>
- <?= $this->tabs()->start('sizes') ?>
- <p>Введите количество для доступных размеров. Остальные размеры для данного товара не будут выводиться.</p>
- <?php foreach ($this->sizes as $v): ?>
- <div>
- <label for="i_<?= $v['size_id'] ?>"><?= $v['size_title'] ?></label>
- <input type="text" name="sizes[<?= $v['size_id'] ?>]" id="i_<?= $v['size_id'] ?>" value="<?=(int)$v['count']?>">
- </div>
- <?php endforeach ?>
- <?= $this->tabs()->end('sizes') ?>
- <?= $this->tabs()->close() ?>
- <input type="submit" id="submit" value="Сохранить">
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement