Перейти к публикации
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

opalko

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

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

  • Посещение

Информация

  • Пол
    Не определился

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

1 174 просмотра профиля

Достижения opalko

Apprentice

Apprentice (3/14)

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

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

1

Репутация

  1. я просил решение или исполнителя, не нашлось ни одного, ни второго... Сарказм с Вашей стороны тут совершенно неуместен
  2. Круто, что люди разбираются, вот только толку от этого никакого. Решение уже нашел, но выкладывать не буду. Если кому-то что-то подобное понадобится, возможно предоставлю, а на форум выкладывать не буду. Форум не помогает, нечего и ему помогать, как-то так...
  3. Пробовал много вариантов, - либо код загружается со страницей, либо вообще не загружается, походу мне нужна подробная инструкция или исполнитель
  4. Есть такого рода код <div id="sayduck-3d-viewer-container" style="min-height:450px;min-width:300px;width:100%;height:100%;" data-product-uuid="c7ff8330-f9bd-0139-842f-2e52a99cf55b"></div><script type="text/javascript" src="https://viewer.sayduck.com"></script> Его нужно добавить на страницу описания товара. Но если напрямую воткнуть в описание (сомневаюсь что так вообще правильно) загружается около 25мб данных, поэтому нужно чтобы код не загружался вместе со всей страницей товара, а открывался после нажатия на кнопку. Прошу помощи, как это можно реализовать?
  5. А нормальное демо есть?
  6. в стили блока отвечающего за вывод описания добавьте -webkit-line-clamp: 6; /* Число отображаемых строк */ display: -webkit-box; /* Включаем флексбоксы */ -webkit-box-orient: vertical; /* Вертикальная ориентация */ overflow: hidden; /* Обрезаем всё за пределами блока */
  7. Какие вводные нужны, может этом проблема или в $, напишите обсудим. Задача то пустяковая, много времени не потребуется
  8. Подскажите, как убрать дополнительное описание на страницах пагинации?
  9. В опенкарт 2.3 (может и в других), есть отдельные страницы корзины и оформления заказа. Оформление за модулем симпл, а корзина - это штатная страница опенкарта (не всплывающее окно, а страница с адресом //мой сайт/cart/ На этой странице можно посчитать предварительную стоимость доставки, туда-то мне и нужно добавить поле города. Я не могу дать ссылку на сайт, потому что он доступен по определенному ip, а по доменному имени в сети другой сайт. Что-бы было понятно о чем речь, вот ссылка на демо опенкарта http://demo-opencart.ru/ . Купите товар и нажмите перейти в корзину, а не оформить заказ.
  10. Расскажите пожалуйста более подробно... Модуль установлен и настроен правильно. Симпл настраивал для вывода регионов, городов и отделений, там всё выводится и работает. Но вот только там нужно просто в нужные поля прописать правильные вызовы, типа getShippingCities. В опенкарте, городов нету, есть только страны и регионы, поэтому я решил по принципу их добавления в файле шаблона, добавить поле Город. И оно появилось (на фото с ошибкой), но списка нет, как мне кажется он должен появится если в контроллер прописать правильный код с нужным вызовом правильного метода. Но я в этом совсем не шарю. Пробывал по аналогии с регионами добавлять код, но там zone, zone_id, я разницы не знаю, и просто добавляя аналогичные куски кода с city, и city_id, получаю ошибку 500.
  11. 1. если бы я разбирался в коде, этой темы не было бы 2. "Ну это вопрос не ко мне, если есть навыки, то можете все добавить" - ответ автора модуля
  12. В корзине опенкарт 2.3 есть пункт -Узнать стоимость доставки. Для расчета есть выбор стран и регионов с выпадающим списком, но нет городов. Сами города есть в базе, получены посредством модуля НоваяПочта Api. Но как добавить их в контроллер? Кто разбирается, прошу помочь... Код из контроллера shipping.php <?php class ControllerExtensionTotalShipping extends Controller { public function index() { if ($this->config->get('shipping_status') && $this->config->get('shipping_estimator') && $this->cart->hasShipping()) { $this->load->language('extension/total/shipping'); $data['heading_title'] = $this->language->get('heading_title'); $data['text_shipping'] = $this->language->get('text_shipping'); $data['text_shipping_method'] = $this->language->get('text_shipping_method'); $data['text_select'] = $this->language->get('text_select'); $data['text_none'] = $this->language->get('text_none'); $data['text_loading'] = $this->language->get('text_loading'); $data['entry_country'] = $this->language->get('entry_country'); $data['entry_zone'] = $this->language->get('entry_zone'); $data['entry_postcode'] = $this->language->get('entry_postcode'); $data['button_quote'] = $this->language->get('button_quote'); $data['button_shipping'] = $this->language->get('button_shipping'); $data['button_cancel'] = $this->language->get('button_cancel'); if (isset($this->session->data['shipping_address']['country_id'])) { $data['country_id'] = $this->session->data['shipping_address']['country_id']; } else { $data['country_id'] = $this->config->get('config_country_id'); } $this->load->model('localisation/country'); $data['countries'] = $this->model_localisation_country->getCountries(); if (isset($this->session->data['shipping_address']['zone_id'])) { $data['zone_id'] = $this->session->data['shipping_address']['zone_id']; } else { $data['zone_id'] = ''; } if (isset($this->session->data['shipping_address']['postcode'])) { $data['postcode'] = $this->session->data['shipping_address']['postcode']; } else { $data['postcode'] = ''; } if (isset($this->session->data['shipping_method'])) { $data['shipping_method'] = $this->session->data['shipping_method']['code']; } else { $data['shipping_method'] = ''; } return $this->load->view('extension/total/shipping', $data); } } public function quote() { $this->load->language('extension/total/shipping'); $json = array(); if (!$this->cart->hasProducts()) { $json['error']['warning'] = $this->language->get('error_product'); } if (!$this->cart->hasShipping()) { $json['error']['warning'] = sprintf($this->language->get('error_no_shipping'), $this->url->link('information/contact')); } if ($this->request->post['country_id'] == '') { $json['error']['country'] = $this->language->get('error_country'); } if (!isset($this->request->post['zone_id']) || $this->request->post['zone_id'] == '') { $json['error']['zone'] = $this->language->get('error_zone'); } $this->load->model('localisation/country'); $country_info = $this->model_localisation_country->getCountry($this->request->post['country_id']); if ($country_info && $country_info['postcode_required'] && (utf8_strlen(trim($this->request->post['postcode'])) < 2 || utf8_strlen(trim($this->request->post['postcode'])) > 10)) { $json['error']['postcode'] = $this->language->get('error_postcode'); } if (!$json) { $this->tax->setShippingAddress($this->request->post['country_id'], $this->request->post['zone_id']); if ($country_info) { $country = $country_info['name']; $iso_code_2 = $country_info['iso_code_2']; $iso_code_3 = $country_info['iso_code_3']; $address_format = $country_info['address_format']; } else { $country = ''; $iso_code_2 = ''; $iso_code_3 = ''; $address_format = ''; } $this->load->model('localisation/zone'); $zone_info = $this->model_localisation_zone->getZone($this->request->post['zone_id']); if ($zone_info) { $zone = $zone_info['name']; $zone_code = $zone_info['code']; } else { $zone = ''; $zone_code = ''; } $this->session->data['shipping_address'] = array( 'firstname' => '', 'lastname' => '', 'company' => '', 'address_1' => '', 'address_2' => '', 'postcode' => $this->request->post['postcode'], 'city' => '', 'zone_id' => $this->request->post['zone_id'], 'zone' => $zone, 'zone_code' => $zone_code, 'country_id' => $this->request->post['country_id'], 'country' => $country, 'iso_code_2' => $iso_code_2, 'iso_code_3' => $iso_code_3, 'address_format' => $address_format ); $quote_data = array(); $this->load->model('extension/extension'); $results = $this->model_extension_extension->getExtensions('shipping'); foreach ($results as $result) { if ($this->config->get($result['code'] . '_status')) { $this->load->model('extension/shipping/' . $result['code']); $quote = $this->{'model_extension_shipping_' . $result['code']}->getQuote($this->session->data['shipping_address']); if ($quote) { $quote_data[$result['code']] = array( 'title' => $quote['title'], 'quote' => $quote['quote'], 'sort_order' => $quote['sort_order'], 'error' => $quote['error'] ); } } } $sort_order = array(); foreach ($quote_data as $key => $value) { $sort_order[$key] = $value['sort_order']; } array_multisort($sort_order, SORT_ASC, $quote_data); $this->session->data['shipping_methods'] = $quote_data; if ($this->session->data['shipping_methods']) { $json['shipping_method'] = $this->session->data['shipping_methods']; } else { $json['error']['warning'] = sprintf($this->language->get('error_no_shipping'), $this->url->link('information/contact')); } } $this->response->addHeader('Content-Type: application/json'); $this->response->setOutput(json_encode($json)); } public function shipping() { $this->load->language('extension/total/shipping'); $json = array(); if (!empty($this->request->post['shipping_method'])) { $shipping = explode('.', $this->request->post['shipping_method']); if (!isset($shipping[0]) || !isset($shipping[1]) || !isset($this->session->data['shipping_methods'][$shipping[0]]['quote'][$shipping[1]])) { $json['warning'] = $this->language->get('error_shipping'); } } else { $json['warning'] = $this->language->get('error_shipping'); } if (!$json) { $shipping = explode('.', $this->request->post['shipping_method']); $this->session->data['shipping_method'] = $this->session->data['shipping_methods'][$shipping[0]]['quote'][$shipping[1]]; $this->session->data['success'] = $this->language->get('text_success'); $json['redirect'] = $this->url->link('checkout/cart'); } $this->response->addHeader('Content-Type: application/json'); $this->response->setOutput(json_encode($json)); } public function country() { $json = array(); $this->load->model('localisation/country'); $country_info = $this->model_localisation_country->getCountry($this->request->get['country_id']); if ($country_info) { $this->load->model('localisation/zone'); $json = array( 'country_id' => $country_info['country_id'], 'name' => $country_info['name'], 'iso_code_2' => $country_info['iso_code_2'], 'iso_code_3' => $country_info['iso_code_3'], 'address_format' => $country_info['address_format'], 'postcode_required' => $country_info['postcode_required'], 'zone' => $this->model_localisation_zone->getZonesByCountryId($this->request->get['country_id']), 'status' => $country_info['status'] ); } $this->response->addHeader('Content-Type: application/json'); $this->response->setOutput(json_encode($json)); } }
  13. После установки на 2.3 получаю ошибки 2021-10-12 1:28:37 - PHP Warning: fopen(/var/www/kolyao01/data/www/vazon.pp.ua/catalog/view/theme//stylesheet/seocms.css): failed to open stream: No such file or directory in /var/www/kolyao01/data/www/vazon.pp.ua/catalog/controller/module/blog.php on line 1953 2021-10-12 1:28:37 - PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/kolyao01/data/www/vazon.pp.ua/catalog/controller/module/blog.php on line 1954 2021-10-12 1:28:37 - PHP Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/kolyao01/data/www/vazon.pp.ua/catalog/controller/module/blog.php on line 1955 Подскажите как поправить?
  14. /catalog/language/russian/russian.php или /catalog/language/ru-ru/ru-ru.php меняете <i class="fa fa-home"></i> на <i class="fa fa-home"></i><span class="disp">Главная</span> /catalog/view/theme/ВАША ТЕМА/stylesheet/stylesheet.css добавляете внизу .disp {display:none;} Класс "disp" можете указать любой на своё усмотрение, но обязательно в обеих файлах они должны быть одинаковыми и не забудьте обновить кэш
×
×
  • Создать...

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

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