Страница "Контакты" никак не редактиркется OpenCart 3

Тема в разделе "Ошибки и их решения", создана пользователем RafaelAd, 3 дек 2018.

  1. RafaelAd

    RafaelAd Пользователь

    Сообщения:
    35
    Симпатии:
    0
    а что если я просто удалю эти модификаторы?
     
  2. alf89

    alf89 Пользователь

    Сообщения:
    79
    Симпатии:
    9
    От куда я знаю! Я не видел что у них внутри ))))
     
  3. RafaelAd

    RafaelAd Пользователь

    Сообщения:
    35
    Симпатии:
    0
    а вы можете посмотреть? есть ли у вас время свяжемся по телефону и через тим вивер посмотрите?)
     
  4. alf89

    alf89 Пользователь

    Сообщения:
    79
    Симпатии:
    9
    Я рассказал вам что необходимо сделать! Вы вполне можете справится сами.... А что касается меня то простите не могу.
     
  5. RafaelAd

    RafaelAd Пользователь

    Сообщения:
    35
    Симпатии:
    0
    Понял, спасибо большое)
     
  6. Ravilr

    Ravilr Специалист

    Сообщения:
    3.863
    Симпатии:
    1.059
    1. Открываем документацию и читаем читаем. Кеши и прочее, все написано.
    2. Заходим в админку Редактор шаблонов и удаляем все из истории и БОЛЬШЕ не редактируем так шаблон, чтобы не было 100 страниц переписок, а что а как и почему.
    3. Открываем файл на фтп, меням. Нажимаем обновить кеш модификатора и кеш твига и радуемся.
     
    Zman нравится это.
  7. RafaelAd

    RafaelAd Пользователь

    Сообщения:
    35
    Симпатии:
    0
    Снимок4.PNG Вот список модификаторов которые вносят изменения в файлы сайта
     
  8. RafaelAd

    RafaelAd Пользователь

    Сообщения:
    35
    Симпатии:
    0
    Если я так сделаю, я все что сделал на данный момент я потеряю а мне это не нужно
     
  9. alf89

    alf89 Пользователь

    Сообщения:
    79
    Симпатии:
    9
    ну так откройте и посмотрите что к чему там!
     
  10. RafaelAd

    RafaelAd Пользователь

    Сообщения:
    35
    Симпатии:
    0
    В том то и дело что я никак не могу понять что он вносит я не настолько продвинутый пользователь вот код может вы увидите? я ничего такого не нашел
    PHP:
    <?php
    class ControllerInformationContact extends Controller {
        private 
    $error = array();

        public function 
    index() {
            
    $this->load->language('information/contact');

            
    $this->document->setTitle($this->language->get('heading_title'));

            if ((
    $this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
                
    $mail = new Mail($this->config->get('config_mail_engine'));
                
    $mail->parameter $this->config->get('config_mail_parameter');
                
    $mail->smtp_hostname $this->config->get('config_mail_smtp_hostname');
                
    $mail->smtp_username $this->config->get('config_mail_smtp_username');
                
    $mail->smtp_password html_entity_decode($this->config->get('config_mail_smtp_password'), ENT_QUOTES'UTF-8');
                
    $mail->smtp_port $this->config->get('config_mail_smtp_port');
                
    $mail->smtp_timeout $this->config->get('config_mail_smtp_timeout');

                
    $mail->setTo($this->config->get('config_email'));
                
    $mail->setFrom($this->config->get('config_email'));
                
    $mail->setReplyTo($this->request->post['email']);
                
    $mail->setSender(html_entity_decode($this->request->post['name'], ENT_QUOTES'UTF-8'));
                
    $mail->setSubject(html_entity_decode(sprintf($this->language->get('email_subject'), $this->request->post['name']), ENT_QUOTES'UTF-8'));
                
    $mail->setText($this->request->post['enquiry']);
                
    $mail->send();

                
    $this->response->redirect($this->url->link('information/contact/success'));
            }

            
    $data['breadcrumbs'] = array();

            
    $data['breadcrumbs'][] = array(
                
    'text' => $this->language->get('text_home'),
                
    'href' => $this->url->link('common/home')
            );

            
    $data['breadcrumbs'][] = array(
                
    'text' => $this->language->get('heading_title'),
                
    'href' => $this->url->link('information/contact')
            );

            if (isset(
    $this->error['name'])) {
                
    $data['error_name'] = $this->error['name'];
            } else {
                
    $data['error_name'] = '';
            }

            if (isset(
    $this->error['email'])) {
                
    $data['error_email'] = $this->error['email'];
            } else {
                
    $data['error_email'] = '';
            }

            if (isset(
    $this->error['enquiry'])) {
                
    $data['error_enquiry'] = $this->error['enquiry'];
            } else {
                
    $data['error_enquiry'] = '';
            }

            
    $data['button_submit'] = $this->language->get('button_submit');

            
    $data['action'] = $this->url->link('information/contact'''true);

            
    $this->load->model('tool/image');

            if (
    $this->config->get('config_image')) {
                
    $data['image'] = $this->model_tool_image->resize($this->config->get('config_image'), $this->config->get('theme_' $this->config->get('config_theme') . '_image_location_width'), $this->config->get('theme_' $this->config->get('config_theme') . '_image_location_height'));
            } else {
                
    $data['image'] = false;
            }

            
    $data['store'] = $this->config->get('config_name');
            
    $data['address'] = nl2br($this->config->get('config_address'));
            
    $data['geocode'] = $this->config->get('config_geocode');
            
    $data['geocode_hl'] = $this->config->get('config_language');
            
    $data['telephone'] = $this->config->get('config_telephone');
            
    $data['fax'] = $this->config->get('config_fax');
            
    $data['open'] = nl2br($this->config->get('config_open'));
            
    $data['comment'] = $this->config->get('config_comment');
            
    $data['email'] = $this->config->get('config_email');

            
    $data['locations'] = array();

            
    $this->load->model('localisation/location');

            foreach((array)
    $this->config->get('config_location') as $location_id) {
                
    $location_info $this->model_localisation_location->getLocation($location_id);

                if (
    $location_info) {
                    if (
    $location_info['image']) {
                        
    $image $this->model_tool_image->resize($location_info['image'], $this->config->get('theme_' $this->config->get('config_theme') . '_image_location_width'), $this->config->get('theme_' $this->config->get('config_theme') . '_image_location_height'));
                    } else {
                        
    $image false;
                    }

                    
    $data['locations'][] = array(
                        
    'location_id' => $location_info['location_id'],
                        
    'name'        => $location_info['name'],
                        
    'address'     => nl2br($location_info['address']),
                        
    'geocode'     => $location_info['geocode'],
                        
    'telephone'   => $location_info['telephone'],
                        
    'fax'         => $location_info['fax'],
                        
    'image'       => $image,
                        
    'open'        => nl2br($location_info['open']),
                        
    'comment'     => $location_info['comment']
                    );
                }
            }

            if (isset(
    $this->request->post['name'])) {
                
    $data['name'] = $this->request->post['name'];
            } else {
                
    $data['name'] = $this->customer->getFirstName();
            }

            if (isset(
    $this->request->post['email'])) {
                
    $data['email'] = $this->request->post['email'];
            } else {
                
    $data['email'] = $this->customer->getEmail();
            }

            if (isset(
    $this->request->post['enquiry'])) {
                
    $data['enquiry'] = $this->request->post['enquiry'];
            } else {
                
    $data['enquiry'] = '';
            }

            
    // Captcha
            
    if ($this->config->get('captcha_' $this->config->get('config_captcha') . '_status') && in_array('contact', (array)$this->config->get('config_captcha_page'))) {
                
    $data['captcha'] = $this->load->controller('extension/captcha/' $this->config->get('config_captcha'), $this->error);
            } else {
                
    $data['captcha'] = '';
            }

            
    $data['column_left'] = $this->load->controller('common/column_left');
            
    $data['column_right'] = $this->load->controller('common/column_right');
            
    $data['content_top'] = $this->load->controller('common/content_top');
            
    $data['content_bottom'] = $this->load->controller('common/content_bottom');
            
    $data['footer'] = $this->load->controller('common/footer');
            
    $data['header'] = $this->load->controller('common/header');

            
    $this->response->setOutput($this->load->view('information/contact'$data));
        }

        protected function 
    validate() {
            if ((
    utf8_strlen($this->request->post['name']) < 3) || (utf8_strlen($this->request->post['name']) > 32)) {
                
    $this->error['name'] = $this->language->get('error_name');
            }

            if (!
    filter_var($this->request->post['email'], FILTER_VALIDATE_EMAIL)) {
                
    $this->error['email'] = $this->language->get('error_email');
            }

            if ((
    utf8_strlen($this->request->post['enquiry']) < 10) || (utf8_strlen($this->request->post['enquiry']) > 3000)) {
                
    $this->error['enquiry'] = $this->language->get('error_enquiry');
            }

            
    // Captcha
            
    if ($this->config->get('captcha_' $this->config->get('config_captcha') . '_status') && in_array('contact', (array)$this->config->get('config_captcha_page'))) {
                
    $captcha $this->load->controller('extension/captcha/' $this->config->get('config_captcha') . '/validate');

                if (
    $captcha) {
                    
    $this->error['captcha'] = $captcha;
                }
            }

            return !
    $this->error;
        }

        public function 
    success() {
            
    $this->load->language('information/contact');

            
    $this->document->setTitle($this->language->get('heading_title'));

            
    $data['breadcrumbs'] = array();

            
    $data['breadcrumbs'][] = array(
                
    'text' => $this->language->get('text_home'),
                
    'href' => $this->url->link('common/home')
            );

            
    $data['breadcrumbs'][] = array(
                
    'text' => $this->language->get('heading_title'),
                
    'href' => $this->url->link('information/contact')
            );

            
    $data['continue'] = $this->url->link('common/home');

            
    $data['column_left'] = $this->load->controller('common/column_left');
            
    $data['column_right'] = $this->load->controller('common/column_right');
            
    $data['content_top'] = $this->load->controller('common/content_top');
            
    $data['content_bottom'] = $this->load->controller('common/content_bottom');
            
    $data['footer'] = $this->load->controller('common/footer');
            
    $data['header'] = $this->load->controller('common/header');

            
    $this->response->setOutput($this->load->view('common/success'$data));
        }
    }
     
  11. Ставрус

    Ставрус Новичок

    Сообщения:
    7
    Симпатии:
    0
    У меня такая же проблема с эими контактами, так же нифига не редактируются, устанавливал русскую сборку, но даже после переустановки в дефолтной теме эти контакты нифига не редактируются, я всмысле про сам файл страницы, и там нету никаких установленных модификаторов за исключением тех что из коробки
     
  12. alf89

    alf89 Пользователь

    Сообщения:
    79
    Симпатии:
    9
    А вы в админке редактировали файл?
     
  13. Ставрус

    Ставрус Новичок

    Сообщения:
    7
    Симпатии:
    0
    upload_2022-3-18_18-8-49.png

    Короче чувак тема такая, какой то из этих модификаторов реально влияет, так как обновляя их изменения срабатывают, только так
     
  14. alf89

    alf89 Пользователь

    Сообщения:
    79
    Симпатии:
    9
    некоторые модификаторы тут не отображаются "чувак"
     
  15. karpov

    karpov Продвинутый пользователь

    Сообщения:
    1.518
    Симпатии:
    241
    Вы чего в двух соснах заблудились? В директории system есть модификаторы tweak и tweak-54fz
    Один для улучшений и прочего, другой для закона 54фз . Удаляем ненужное и обновляем кеш. ВСЕ!
     
  16. Ставрус

    Ставрус Новичок

    Сообщения:
    7
    Симпатии:
    0
    Слышь умник, ничего там нету, ты конкретнее говори, ато таких гуру как ты пол интернета шляется. Никаких таких модификаторов там нет. Конкретно по шагам расскажи что делать, а нет то и сиди не умничай, ато чисто понты проколотить это много ума не надо
     
  17. Ставрус

    Ставрус Новичок

    Сообщения:
    7
    Симпатии:
    0
    Ну а как их увидеть или отобразить? Чё вы все загадками говорите то? Как бабы чсв своё повышаете я не пойму что ли?
     
  18. Ставрус

    Ставрус Новичок

    Сообщения:
    7
    Симпатии:
    0
    Нет, через phpstorm
     
  19. Ставрус

    Ставрус Новичок

    Сообщения:
    7
    Симпатии:
    0
    На ютубе один чел про opencard вещает, так вот он говорил когда отключаешь эти кеши твигов и сасс, там в модификаторы зайти надо после этого и обновить их состояние, мол что бы изменения применились.
     
  20. karpov

    karpov Продвинутый пользователь

    Сообщения:
    1.518
    Симпатии:
    241
    Так и до бана не далеко. Никому не нравится такое поведение.