Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Banditman

Новичок
  
  • Posts

    48
  • Joined

  • Last visited

1 Follower

About Banditman

  • Birthday 01/01/1970

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Banditman's Achievements

Contributor

Contributor (5/14)

  • Conversation Starter
  • First Post
  • Collaborator
  • Reacting Well Rare
  • Week One Done

Recent Badges

0

Reputation

  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, хотелось бы разобраться через документы как и с джумла!
×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.