HEX
Server: Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 mod_fcgid/2.3.9 PHP/5.4.16
System: Linux dvm.vladweb.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: region-gk.ru (1016)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: /home/temp/yarusvl.ru/adminx/core/SettingsFeedAdmin.php
<?php

require_once('api/Mgc.php');

class SettingsFeedAdmin extends Mgc {

    /*Настройки выгрузки в яндекс*/
    public function fetch() {
        if($this->request->method('POST')) {
            $this->settings->yandex_export_not_in_stock = $this->request->post('yandex_export_not_in_stock', 'boolean');
            $this->settings->yandex_available_for_retail_store = $this->request->post('yandex_available_for_retail_store', 'boolean');
            $this->settings->yandex_available_for_reservation = $this->request->post('yandex_available_for_reservation', 'boolean');
            $this->settings->yandex_short_description = $this->request->post('yandex_short_description', 'boolean');
            $this->settings->yandex_has_manufacturer_warranty = $this->request->post('yandex_has_manufacturer_warranty', 'boolean');
            $this->settings->yandex_has_seller_warranty = $this->request->post('yandex_has_seller_warranty', 'boolean');
            $this->settings->yandex_sales_notes = $this->request->post('yandex_sales_notes');
            $this->design->assign('message_success', 'saved');
        }

        return $this->design->fetch('settings_feed.tpl');
    }

}