src/widgets/notice/NotifyProductEmailModalWidget.php
public function run()
    {
        $this->model = new ShopQuantityNoticeEmail();
        $this->model->loadDefaultValues();
        $this->model->shop_product_id = $this->product_id;

        if (!$this->model->shop_product_id) {
            throw new InvalidConfigException("Porduct id not found");
        }

        if (!$this->view_file) {
            if ($this->footer !== false) {
                $formId = $this->id."-form";
                $this->footer = '
                    <button class="btn btn-primary" onclick="$(\'#'.$formId.'\').submit(); return false;">'.\Yii::t('skeeks/shop/app',
                        'Submit').'</button>

                ';

                /*<button type="button" class="btn btn-default" data-dismiss="modal">' . \Yii::t('skeeks/shop/app', 'Close') . '</button>*/
            }

            echo $this->render('notify-modal-email');
        } else {
            echo $this->render($this->view_file);
        }

        \skeeks\cms\base\widgets\ActiveFormAjaxSubmit::end();
        parent::run();
    }
public function run()
    {
        $this->model = new ShopQuantityNoticeEmail();
        $this->model->loadDefaultValues();
        $this->model->shop_product_id = $this->product_id;

        if (!$this->model->shop_product_id) {
            throw new InvalidConfigException("Porduct id not found");
        }

        if (!$this->view_file) {
            if ($this->footer !== false) {
                $formId = $this->id."-form";
                $this->footer = '
                    <button class="btn btn-primary" onclick="$(\'#'.$formId.'\').submit(); return false;">'.\Yii::t('skeeks/shop/app',
                        'Submit').'</button>

                ';

                /*<button type="button" class="btn btn-default" data-dismiss="modal">' . \Yii::t('skeeks/shop/app', 'Close') . '</button>*/
            }

            echo $this->render('notify-modal-email');
        } else {
            echo $this->render($this->view_file);
        }

        \skeeks\cms\base\widgets\ActiveFormAjaxSubmit::end();
        parent::run();
    }
Renders the widget.