Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Gann

Users
  
  • Posts

    687
  • Joined

  • Last visited

Everything posted by Gann

  1. Приветствую! Можно скачать файлы, открыть Notepad++. В Notepad++ нажать "Найти и заменить" -> выбрать папку с файлами. Если в БД - экспорт в CVS for EXCEL
  2. Добрый вечер! Столкнулся с проблемой в кодировке. Код: <?php class ControllerFeedLatestProductsRSS extends Controller { public function index() { if ($this->config->get('latest_products_rss_status')) { $output = '<?xml version="1.0" encoding="UTF-8" ?>'; $output .= '<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">'; $output .= '<channel>'; $output .= '<atom:link href="' . HTTP_SERVER . 'index.php?route=feed/latest_products_rss" rel="self" type="application/rss+xml" />'; $output .= '<title><![CDATA[' . $this->config->get('config_name') . ']]></title>'; $output .= '<description><![CDATA[' . $this->config->get('config_meta_description') . ']]></description>'; $output .= '<link><![CDATA[' . HTTP_SERVER . ']]></link>'; $this->load->model('catalog/product'); $this->load->model('localisation/currency'); $this->load->model('tool/image'); $this->load->language('feed/latest_products_rss'); $limit = $this->config->get('latest_products_rss_limit') ? $this->config->get('latest_products_rss_limit') : 100; $show_price = $this->config->get('latest_products_rss_show_price'); $include_tax = $this->config->get('latest_products_rss_include_tax'); $show_image = $this->config->get('latest_products_rss_show_image'); if ($show_image) { $image_width = $this->config->get('latest_products_rss_image_width') ? $this->config->get('latest_products_rss_image_width') : 100; $image_height = $this->config->get('latest_products_rss_image_height') ? $this->config->get('latest_products_rss_image_height') : 100; } $products = $this->model_catalog_product->getLatestProducts($limit); if (isset($this->request->get['currency'])) { $currency = $this->request->get['currency']; } else { $currency = $this->currency->getCode(); } foreach ($products as $product) { if ($product['description']) { $title = html_entity_decode($product['name']); $link = $this->url->link('product/product', 'product_id=' . $product['product_id']); $description = ""; if ($show_price) { if ($include_tax) { if ((float) $product['special']) { $price = $this->currency->format($this->tax->calculate($product['special'], $product['tax_class_id']), $currency, FALSE, TRUE); } else { $price = $this->currency->format($this->tax->calculate($product['price'], $product['tax_class_id']), $currency, FALSE, TRUE); } } else { if ((float) $product['special']) { $price = $this->currency->format($product['special'], $currency, FALSE, TRUE); } else { $price = $this->currency->format($product['price'], $currency, FALSE, TRUE); } } $description .= '<p><strong>' . $this->language->get('text_price') . ' ' . $price . '</strong></p>'; } if ($show_image && $product['image'] != '') { $image_url = $this->model_tool_image->resize($product['image'], $image_width, $image_height); $description .= '<p><a href="' . $link . '"><img src="' . $image_url . '"></a></p>'; } $description .= html_entity_decode($product['description']); $output .= '<item>'; $output .= '<title><![CDATA[' . $title . ']]></title>'; $output .= '<link>' . $link . '</link>'; $output .= '<description><![CDATA[' . $description . ']]></description>'; $output .= '<guid>' . $link . '</guid>'; $output .= '<pubDate>' . date(DATE_RSS, strtotime($product['date_added'])) . '</pubDate>'; $output .= '</item>'; } } $output .= '</channel>'; $output .= '</rss>'; $this->response->addHeader('Content-Type: application/rss+xml'); $this->response->setOutput($output); } } } Этот код выводит кракозяблы. НО! Добавив: $names = $product['name']; print_r(iconv('utf-8','utf-8',$names)); внутри foreach ($products as $product) { - я вижу нормальную кодировку. Объясните, пожалуйста, почему так происходит и как это побороть? Спасибо
  3. Зайдите в настройки: Система -> по магазину щёлк ->вкладка "Сервер" - внизу Визуальный редактор по умолчанию
  4. вероятно, что в боковом меню есть класс hidden-xs п.с. так и есть <aside id="column-left" class="col-sm-3 hidden-xs">
  5. Недавно были проблемы с почтой, с метрикой. В новостях писали. Сам сталкивался с 504 в метрике. Может поэтому и письма не доходили.
  6. Добрый! Приятнее синий цвет меню В остальном - классно смотрится. Позабавил демо-текст в советах специалиста: "далеко-далеко... рыбные тексты"
  7. Здравствуйте! Да, шапка видна, но при открытии страницы с товаром - открывается не с шапки. Скролл. Не с того места открывается. Скрипты надо смотреть.
  8. Скачать / Купить дополнение INTOPS - информационные страницы в топменю Модуль позволяет выводить информационные страницы в основном меню OcStore 2.1 В каждой статье появляется галочка "Отображать в меню", аналогично галочке "Отображать в футере". Выбранные статьи отображаются в меню после меню категорий (ТОП меню) УСТАНОВКА Распаковать и установить intops.ocmod.xml через стандартный установщик. Второй файл - импортировать в БД (1 строчка) Добавил Gann Добавлено 09.07.2018 Категория Меню, дизайн, внешний вид Системные требования Метод активации Без активации Ioncube Loader Нет ocStore 2.1 OpenCart.Pro, ocShop Не проверялось Обращение к серверу разработчика  
  9. , сарказм сила) _______ По теме: если актуально, обращайтесь. Не очень дорого, довольно быстро. Контакты в профиле - сайт с портфолио.
  10. Напишите адрес сайта в личные сообщения, посмотрю
  11. привет! Лучший модуль кэширования для опенкарт - это TURBO. Джек Кэши даже сравнивать не буду - пользовался, знаю.
  12. Привет! Надо зайти на хостинг. Открыть путь /admin/language/russian/catalog/product.php Здесь: $_['entry_model'] = 'Модель:'; $_['entry_sku'] = 'Артикул:'; $_['entry_upc'] = 'Срок изготовления:'; $_['entry_ean'] = 'EAN:'; $_['entry_jan'] = 'JAN:'; $_['entry_isbn'] = 'ISBN:'; $_['entry_mpn'] = 'MPN:'; Это для админки. Для фронта: /catalog/language/russian/product/product.php Вероятнее всего в пути не russian, а en-us или просто en - язык русский не подключён, так что ли
  13. нет проблем) если нужна услуга - обращайтесь, решим по доменам, и мета-данным
  14. Проблемы будут, но они все решаемые. Можно и без доменов обойтись - дешевле будет.
  15. да у вас там вообще кашка какая то) Стилями тут, конечно, можно исхитриться и сделать, но лучше всего - править код вывода характеристик. Т.е. шаблон product.tpl
  16. Не понимаю - отправить и дороговато. Ещё проще - не так, как вы написали. В настройки задаёте что дописать, в мета-тегах - выводится.
  17. PRO ничем не лучше - такие же глюки. Для метатегов, описаний и т.д. есть решение (если надо прям чтобы для каждого поддомена свои были) - 13 т.р. под вашу версию. На 1 язык распространяется. Есть попроще - с дописыванием своего текста для поддомена.
×
×
  • 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.