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

Leaderboard

Popular Content

Showing content with the highest reputation on 01/23/2020 in Posts

  1. При большом количестве файлов в одной папке будут замедляться IO операции. В кэше файлов будет в разы больше.
    2 points
  2. В связи с участившимися обращениями пользователей шаблона о предупреждениях google по поводу прекращения поддержки старого типа микро-разметки хлебных крошек , теперь для скачивания доступен архив breadcrumb_schema.org_fix.zip, содержащий файлы : Breadcrumb_schema.org_fix.ocmod.xml - модификатор , для установки из админки catalog\view\theme\unishop\template\product\category.tpl - файл страницы категорий catalog\view\theme\unishop\template\product\product.tpl - файл страницы товара После установки или замены (вместе с заменой файлов модификатор не нужно ставить, только или модификатор или замена файлов) , обязательно (!) обновлять кэш модификаторов. Скачать архив можно на той же странице , где и шаблон. Внимание! И файлы и модификатор тестировались и предназначены только для последней на данный момент версии v2.5.0.0 , в следующем обновлении, данное исправление будет уж включено изначально в файлы шаблона.
    2 points
  3. Делал такое для 2.1.0.2.1. admin/controller/sale/order.php public function getNew() { $this->load->model('sale/order'); $this->response->addHeader('Content-Type: application/json'); $this->response->addHeader('Cache-Control: no-cache, no-store, must-revalidate'); $this->response->addHeader('Pragma: no-cache'); $this->response->addHeader('Expires: 0'); $this->response->addHeader('X-Robots-Tag: noindex, nofollow'); $this->response->setOutput(json_encode($this->model_sale_order->getNewOrdersCount())); } admin/model/sale/order.php public function getNewOrdersCount() { $result = array(); $query = $this->db->query("SELECT COUNT(*) AS count FROM " . DB_PREFIX . "order WHERE order_status_id = 1"); if($query->num_rows) { $result['count'] = $query->row['count']; } else { $result['count'] = 0; } $query = $this->db->query("SELECT order_id FROM " . DB_PREFIX . "order WHERE order_status_id = 1 ORDER BY order_id DESC LIMIT 1"); if($query->num_rows) { $result['last_id'] = $query->row['order_id']; } else { $result['last_id'] = 0; } return $result; } admin/view/javascript/common.js вставить в блок $(document).ready(... // Новые заказы var new_orders_popup_opened = false, new_orders_query_pending = false, notify_sound = new Audio('view/sounds/notify.ogg'); setInterval(function(){ if(new_orders_popup_opened || new_orders_query_pending) { return; } new_orders_query_pending = true; $.get('index.php', { route: 'sale/order/getnew', token: getURLVar('token') }, function(data){ new_orders_query_pending = false; if(typeof data !== 'object') { return; } var count = parseInt(data.count), last_id = parseInt(data.last_id), current_id = window.sessionStorage && parseInt(sessionStorage.getItem('lastOrderID')) || 0; // Обновить количество заказов в верхней панели $('#header .new-orders-count').text(count); // Всплывающее окно if(last_id > current_id) { sessionStorage.setItem('lastOrderID', last_id); if($('#new-orders-modal').length) { $('#new-orders-modal .modal-body').html('<p>На сайте был оформлен новый заказ. Всего необработанных заказов: <b>' + count + '</b>.</p>'); } else { $(document.body).append('\n\ <div id="new-orders-modal" class="modal fade" tabindex="-1" role="dialog">\n\ <div class="modal-dialog" role="document">\n\ <div class="modal-content">\n\ <div class="modal-header">\n\ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>\n\ <h4 class="modal-title">Оформлен новый заказ</h4>\n\ </div>\n\ <div class="modal-body">\n\ <p>На сайте был оформлен новый заказ. Всего необработанных заказов: <b>' + count + '</b>.</p>\n\ </div>\n\ <div class="modal-footer">\n\ <button type="button" class="btn btn-default" data-dismiss="modal">Закрыть</button>\n\ <a class="btn btn-primary" href="index.php?route=sale/order&token=' + getURLVar('token') + '">Просмотреть заказы</a>\n\ </div>\n\ </div><!-- /.modal-content -->\n\ </div><!-- /.modal-dialog -->\n\ </div><!-- /.modal -->\n\ '); } $('#new-orders-modal').one('shown.bs.modal', function(){ new_orders_popup_opened = true; notify_sound.play(); }).one('hidden.bs.modal', function(){ new_orders_popup_opened = false; }).modal('show'); } }, 'json'); }, 30000);
    1 point
  4. это не есть хорошо (см. выше) но вряд ли является причиной, иначе бы у вас тормоза проявились уже в списке товаров какой-то конкретный товар, или со всеми так? если первое - внимательно смотреть что с ним может быть не так, сравнить с нормальными если со всеми - вероятно причина в каком-то из установленных дополнений/модов, добавляющих дополнительный функционал в карточку товара в админке ищите виновника путем поочередного отключения их модификаторов (кеш модификаторов каждый раз после отключения не забывайте обновить)
    1 point
  5. Может у него OpenCart - и этого функционала нет. Разберется ))) варианты показали.
    1 point
  6. Все хорошо) Просто отсылка была из другой темы ) Если быть серьезным, то да @halfhope сделает свою работу. Можете к нему обратиться. @asimakow - ставили ли вы в последнее время какие нибудь модули ?
    1 point
  7. На данный момент тестируется новая разметка х/к на демо шаблона. Так как проблема появилась недавно, будет учтена в следующем обновлении шаблона. В данный момент соберу или ocmod или архив с готовыми файлами.
    1 point
  8. 1. Файл конфиг находится в корневом каталоге папок /public_html , а второй в /public_html/admin 2. Ну, переименуйте в каком-нибудь файле .htaccess, сделайте так .htaccess1 Основной файл:проверьте, чтобы не было txt - .haccess.txt Зайдите в него, удалите всё что было и поставьте так Options +FollowSymlinks # Prevent Directoy listing Options -Indexes # Prevent Direct Access to files <FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))"> Require all denied ## For apache 2.2 and older, replace "Require all denied" with these two lines : # Order deny,allow # Deny from all </FilesMatch> # SEO URL Settings RewriteEngine On #Редирект с www to non-www(https) RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ https://%1/$1 [R=301,L] # Редирект с http на https создан автоматически при заказе бесплатного ssl-сертификата RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L] #Конец редиректа # If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase / RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L] RewriteRule ^system/download/(.*) index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] # для сжатия HTML-файлов: AddOutputFilterByType DEFLATE text/html # для сжатия текстовых файлов используйте: AddOutputFilterByType DEFLATE text/plain # сжать JavaScript или включить сжатие для других различных типов файлов командами: AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml # сжать все JavaScript, HTML и CSS файлы при помощи GZIP: <IfModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text\.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image\.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* </IfModule> # Кеширование файлов <FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf)$"> Header set Cache-Control "max-age=2592000" </FilesMatch> ### Additional Settings that may need to be enabled for some servers ### Uncomment the commands by removing the # sign in front of it. ### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that. # 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it: php_flag register_globals off # 2. If your cart has magic quotes enabled, This may work to disable it: # php_flag magic_quotes_gpc Off # 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try # php_value upload_max_filesize 999M # 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value post_max_size 999M # 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_execution_time 200 # 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields # php_value max_input_time 200 # 7. disable open_basedir limitations # php_admin_value open_basedir none ### Display PHP errors ### Uncomment the commands by removing the # sign in front of it. php_flag display_startup_errors on php_flag display_errors on php_flag html_errors on php_flag track_errors on php_value error_reporting "E_ALL"
    1 point
  9. INSERT INTO oc_url_alias (query, keyword) VALUES ('product/allreviewspage', 'otzivy'); Наверное так
    1 point
  10. 1 point
  11. 1 point
  12. В описание модуля тогда уберите что версия 3 только для ос 2 и вопросов лишних не будет.
    1 point
  13. Здравствуйте, postcalc.ru - с нового года требует указывать Ключ домена. Решение-1: Выберите delivery.pochta.ru вместо postcalc.ru https://yadi.sk/i/Si7fSjx-b5lslw Решение-2: укажите ключ домена для postcalc.ru в настройке: https://yadi.sk/i/dSIaQuhvpgqZNA Если у Вас нет такой настройки - то скачайте последнюю версию модуля и перезалейте файлы из папки upload в корень сайта по FTP
    1 point
  14. Добрый день, мы запланировали добавить настройку в модуль управления всплывающей корзины, можно будет выбрать отображать эту сумму с учетом доставки или нет.
    1 point
Guest
×
  • 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.