Перейти к публикации
Поиск в
  • Дополнительно...
Искать результаты, содержащие...
Искать результаты в...

Banditman

Новичок
  
  • Публикаций

    48
  • Зарегистрирован

  • Посещение

1 подписчик

О Banditman

  • День рождения 01.01.1970

Посетители профиля

Блок последних посетителей выключен и не отображается другим пользователям.

Достижения Banditman

Contributor

Contributor (5/14)

  • Conversation Starter
  • First Post
  • Collaborator
  • Reacting Well Редкая
  • Week One Done

Последние медали

0

Репутация

  1. Ага, спасибо, реально глаза нечего не видят уже)))
  2. Всем привет! Сайт отверстал, все было хорошо, начал настраивать отправку сообщений с форм и вот привет! Пропал placeholder "Имя" в footer, причем на после фокуса не чего, а если что то написать и стереть и он появляется! Что на него повлияло не пойму! Все стили перерыл и скрипты так и не нашел! Сайт (это тестовый) http://curtains.74my.ru/ Хелпми!)
  3. Спасибо, вот это мне точно подойдет без напильника!)))
  4. То есть отрезать табы в шаблоне модуля (.twig) и вывести его несколько раз на странице, выбрав вывод только одной категории?
  5. Вот это думаю почти то что надо, жаль только что товары самому которые нужно отображать в нем выбрать нельзя!
  6. Хороший модуль, но табы не нужны, категории нужно вывести друг под другом, так что не подходит(
  7. Приветствую форумчане! Помогите найти модуль который выводит определенное кол-во товаров в модуле на главной (не обязательно, можно просто с указанием страницы и и позиции в макете) из выбранной категории (такое есть точно в Virtuemart). Пример: Opencart 3 - Нужно вывести 5-ть категорий товаров с заголовком либо самопрописным, либо название категории (из-за этого не подходит модуль - Рекомендуемые - тут придется модуль пилить что бы вместо заголовка рекомендуемые выводилось название которое указано в админке) - так же допустим в оном модуле вывести 3-ри товара, во втором 6-ть и т.п. Подскажите кто то встречал данный модуль который кастомно позволяет выводить такие данные?
  8. Это был OpenServer, не особо удобно работать с Gulp на боевом хостинге
  9. Решил проблему! Раскодировать придется ручками, нужно заменить все спец символы HTML поиск и замена и прогнать декодером SQL - String Text
  10. Всем привет, после неудачной установки модуля, слетел весь сайт Opencart 3.0.3.2 Решено было восстановить из резерва БД и Файлы Все восстановилось но есть один нюанс пропали все модули через которые я выводил HTML При входе в модуль он пустой, но называется так же Посмотрев БД я увидел, что весь код в БД остался, но он в зашифрованном виде! Может кто знает как это расшифровать, писать заново верстку очень не хочется! Вот пример одного модуля {"name":"Home Page - \u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438","module_description":{"1":{"title":"\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438","description":"<div class="row all-category"> <div class="col-xs-6 col-sm-3"> <div class="col-sm-12 img-all-cat"> <a href="\/katalog\/med" title="\u041a\u0443\u043f\u0438\u0442\u044c \u043c\u0451\u0434"><img class="cat-img" src="image\/catalog\/product\/menu\/med-ico-menu.png"><\/a> <\/div> <div class="col-sm-12"> <a href="\/katalog\/med" title="\u041a\u0443\u043f\u0438\u0442\u044c \u043c\u0451\u0434 \u043e\u0442 155 \u0440\u0443\u0431\u043b\u0435\u0439"><p>\u043e\u0442 155 \u0440\u0443\u0431.<\/p><\/a> <\/div> <\/div>
  11. Всем привет! Помогите добавить поле Телефон в форму обратной связи OpenCart 3.0.3.2 Редактирую 2-ва файла 1. Сама форма contact.twig Добавил input <div class="form-group required"> <label class="col-sm-2 control-label" for="input-telephone">{{ entry_telephone }}</label> <div class="col-sm-10"> <input type="text" name="telephone" value="{{ telephone }}" id="input-telephone" class="form-control" /> {% if error_telephone %} <div class="text-danger">{{ error_telephone }}</div> {% endif %} </div> </div> 2. Контролер contact.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->setText($this->request->post['telephone']); //- вот тут добавил telephone $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['telephone'])) { $data['error_telephone'] = $this->error['telephone']; } else { $data['error_telephone'] = ''; } 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['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['telephone'])) { $data['telephone'] = $this->request->post['telephone']; } else { $data['telephone'] = $this->customer->gettelephone(); } 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)); } }
  12. Спасибо! Мне только структур построения шаблона разобрать!
  13. Ожидал такого ответа! Просто смотрел бегом, файловая система отличается от Joomla, хотелось бы разобраться через документы как и с джумла!
×
×
  • Создать...

Важная информация

На нашем сайте используются файлы cookie и происходит обработка некоторых персональных данных пользователей, чтобы улучшить пользовательский интерфейс. Чтобы узнать для чего и какие персональные данные мы обрабатываем перейдите по ссылке. Если Вы нажмете «Я даю согласие», это означает, что Вы понимаете и принимаете все условия, указанные в этом Уведомлении о Конфиденциальности.