Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

TarasKhust

Користувачі
  
  • Публікації

    103
  • З нами

  • Відвідування

Усі публікації користувача TarasKhust

  1. <?xml version="1.0" encoding="utf-8"?> <modification> <name>Minimum order</name> <code>minimum_order</code> <version>1.5</version> <author>TarasKhust</author> <link>https://opencartforum.com/user/709934-taraskhust/</link> <file path="admin/controller/setting/setting.php"> <operation> <search><![CDATA[$data['entry_invoice_prefix'] = $this->language->get('entry_invoice_prefix');]]></search> <add position="before"><![CDATA[$data['entry_order_min'] = $this->language->get('entry_order_min');]]></add> </operation> <operation> <search><![CDATA[$data['help_invoice_prefix'] = $this->language->get('help_invoice_prefix');]]></search> <add position="before"><![CDATA[$data['help_order_min'] = $this->language->get('help_order_min');]]></add> </operation> <operation> <search><![CDATA[if (isset($this->request->post['config_invoice_prefix'])) {]]></search> <add position="before"><![CDATA[ if (isset($this->request->post['config_order_min'])) { $data['config_order_min'] = $this->request->post['config_order_min']; } elseif ($this->config->has('config_order_min')) { $data['config_order_min'] = $this->config->get('config_order_min'); } else { $data['config_order_min'] = ''; } ]]></add> </operation> </file> <file path="admin/language/ru*/setting/setting.php"> <operation> <search><![CDATA[$_['entry_invoice_prefix']]]></search> <add position="before"><![CDATA[$_['entry_order_min'] = 'Минимальная сумма заказа';]]></add> </operation> <operation> <search><![CDATA[$_['help_invoice_prefix']]]></search> <add position="before"><![CDATA[$_['help_order_min'] = 'Минимальная сумма заказа в магазине.';]]></add> </operation> </file> <file path="admin/language/en*/setting/setting.php"> <operation> <search><![CDATA[$_['entry_invoice_prefix']]]></search> <add position="before"><![CDATA[$_['entry_order_min'] = 'Minimum order';]]></add> </operation> <operation> <search><![CDATA[$_['help_invoice_prefix']]]></search> <add position="before"><![CDATA[$_['help_order_min'] = 'Minimum order.';]]></add> </operation> </file> <file path="catalog/language/ru*/{russian,ru-ru}.php"> <operation> <search><![CDATA[$_['text_home']]]></search> <add position="before"><![CDATA[$_['text_order_min'] = 'Минимальная сумма заказа %s';]]></add> </operation> </file> <file path="catalog/language/en*/{english,en-gb}.php"> <operation> <search><![CDATA[$_['text_home']]]></search> <add position="before"><![CDATA[$_['text_order_min'] = 'Minimum order %s';]]></add> </operation> </file> <file path="admin/view/template/setting/setting.tpl"> <operation> <search><![CDATA[<legend><?php echo $text_checkout; ?></legend>]]></search> <add position="after"><![CDATA[ <div class="form-group"> <label class="col-sm-2 control-label" for="input-order-min"><span data-toggle="tooltip" title="<?php echo $help_order_min; ?>"><?php echo $entry_order_min; ?></span></label> <div class="col-sm-10"> <input type="text" name="config_order_min" value="<?php echo $config_order_min; ?>" placeholder="<?php echo $entry_order_min; ?>" id="input-order-min" class="form-control" /> </div> </div> ]]></add> </operation> </file> <file path="catalog/controller/checkout/cart.php"> <operation> <search><![CDATA[unset($this->session->data['error']);]]></search> <add position="after"><![CDATA[ } elseif ($this->cart->hasProducts() && ($this->cart->getTotal() < $this->config->get('config_order_min'))) { $data['error_warning'] = sprintf($this->language->get('text_order_min'), $this->currency->format($this->config->get('config_order_min'), $this->session->data['currency'])); $data['error'] = true; ]]></add> </operation> </file> <file path="catalog/controller/checkout/{checkout,confirm,shipping_method}.php"> <operation> <search><![CDATA[if ((!$this->cart->hasProducts() && empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout'))) {]]></search> <add position="replace"><![CDATA[if ((!$this->cart->hasProducts() && empty($this->session->data['vouchers'])) || (!$this->cart->hasStock() && !$this->config->get('config_stock_checkout')) || (($this->cart->getTotal() < $this->config->get('config_order_min')) && $this->cart->hasProducts() )) {]]></add> </operation> </file> <file path="catalog/view/theme/*/template/checkout/cart.tpl"> <operation> <search><![CDATA[<div class="pull-right"><a href="<?php echo $checkout; ?>" class="btn btn-primary"><?php echo $button_checkout; ?></a></div>]]></search> <add position="replace"><![CDATA[<div class="pull-right"><a href="<?php echo $checkout; ?>" class="<?php echo (!isset($error)) ? 'btn btn-primary' : 'btn btn-primary disabled ' ; ?>"><?php echo $button_checkout; ?></a></div>]]></add> </operation> </file> <!-- ADD SSTORE FastOrder compatibility --> <file path="catalog/controller/checkout/fastorder/fastorder.php"> <operation> <search index="1"><![CDATA[unset($this->session->data['error']);]]></search> <add position="after"><![CDATA[ } elseif ($this->cart->getTotal() < $this->config->get('config_order_min')) { $data['error_warning_cart'] = sprintf($this->language->get('text_order_min'), $this->currency->format($this->config->get('config_order_min'), $this->session->data['currency'])); $data['error'] = true; ]]></add> </operation> </file> <!-- END SSTORE FastOrder compatibility --> </modification> можете установить как модуль, потом в настройках магазина вкладка ОПЦИИ>ОФОРМЛЕНИЕ ЗАКАЗА>МИНИМАЛЬНАЯ СУММА ЗАКАЗА
  2. поставил ngnix+php-fpm время отклика сервера стало менше 0.2 сек оценка в гугл 89/100 и ето с кучей скриптов в шапке что очень хорошо. вот моя конфигурация VPS Centos 6.8, nginx/1.10.2 php-fpm, mysql 5.5 php 5.6 gzip FastGGi Ocstore 2.1 шаблон Shopstore 2 ядра 2.8 герц memory 4gb SSD 100gb Хост Germany
  3. Нашел где был спрятан кеш мегаменю, в модуле Модификатор Octemplates TEMPLATE - Auto-search (ocmod-files-to-upload/autosearch.ocmod.xml) Достаточно обновить етот модуль Время ответа сервера стало с 0.68 - 0.54 Следующий шаг будет ngnix оценка гугл 85\100
  4. обновил ети 3 модификатор Модификатор Octemplates TEMPLATE - Auto-search (ocmod-files-to-upload/autosearch.ocmod.xml) Модификатор стикеров Octemplates TEMPLATE - Product stickers (ocmod-files-to-upload/install_stickers.ocmod.xml) Главный модификатор Octemplates TEMPLATE - ShopStore2 (ocmod-files-to-upload/sstore.ocmod.xml) без замены файлов
  5. по поводу отладчика у меня ocstore 2.1 все работает но есть пару ошибок 2016-11-08 15:34:47 - PHP Notice: Undefined index: file in /var/www/posud55/data/www/posda-n.com.ua/system/library/db.php on line 25 2016-11-08 15:34:47 - PHP Notice: Undefined index: line in /var/www/posud55/data/www/posa.com.ua/system/library/db.php on line 26 2016-11-08 15:34:47 - PHP Notice: Undefined index: file in /var/www/posud55/data/www/posa-uicom.ua/system/library/db.php on line 25 if (!empty($caller[1])) { $row['file'] = $caller[1]['file']; $row['line'] = $caller[1]['line']; } else { $row['file'] = $caller[0]['file']; $row['line'] = $caller[0]['line']; }
  6. ето теперь кешируеться? в новой версии? в своей я не наблюдаю такого. у вас фото кешируемые несжатые ето делаеться двома дополнениями OptiPNG, jpegoptim если б фото сжали была б оценка все 88 ато и 89 как минимум.
  7. https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fposuda-ukraina.com.ua%2Fstolovaya-posuda%2F&tab=desktop быстро тока грузиться главная страница, страница с товарами и страница с товаров грузиться за 0.50 сек Убрал модуль 4 в одном с категорий он много забирал, и некишируеться надо что развче переделывать ajax ставить, ну и мегаменю тоже много тянет смотрел через debugmode около 700мск В общем сайт быстро работает проблема тока при первой загрузке страницы.
  8. хорошо б сделать что б создавалься атрибут если его нету прямо тут http://prntscr.com/d4d6ev
  9. Добрый Вечер! смотрю у вас быстро открываются страницы на демо без задержек, в прошлый раз было время отклика у вас выше 0.50 сек, 1.вы оптимизировали модули шаблона или настроили кеширование елементов, или поставили vchache модуль? 2.Вижу что ищо Ngnix стоит, он у вас стоит в связке с Апаче? У меня версия шаблона 3.7 стоит боюсь обновлять много чего кастимизовал, но если время отклика реально снизилось изза оптимизации шаблона то буду по етапно обновлять, на данный момент у меня страница с товарамы открываеться в первый раз за 0.87 сек Стоит VPS 2x2800грц ядра 4 гиг оперативки, 100 гиг SSD CEntos 6.8 Apache 2.2 php 5.3
  10. у меня такой все устраивает лишние страницы в индекс нелезят User-agent: * Host:posuda.com.ua Allow: /*.css Allow: /*.js Allow: /*.jpg Allow: /*.jpeg Allow: /*.png Disallow: /download Disallow: /system Disallow: /admin Disallow: /export Disallow: /affiliates Disallow: /my-account/ Disallow: /order-history/ Disallow: /wishlist/ Disallow: /add-return/ Disallow: /search/ Disallow: /index.php?route=account/account Disallow: /index.php?route=product/manufacturer Disallow: /index.php?route=product/category Disallow: /index.php?route=checkout/fastorder/fastorder Disallow: /*?sort= Disallow: /*&sort= Disallow: /*?order= Disallow: /*&order= Disallow: /*?limit= Disallow: /*&limit= Disallow: /*?filter_name= Disallow: /*&filter_name= Disallow: /*?filter_sub_category= Disallow: /*&filter_sub_category= Disallow: /*?filter_description= Disallow: /*&filter_description= Disallow: /*?tracking= Disallow: /*&tracking= Sitemap:http://posuda.com.ua/sitemap.xml а также на некоторые страницы прописаны теги nofolow noindex http://prntscr.com/d3e4vx
  11. Добрый Вечер! вижу исправили проблему в времям отклика сервера, у меня она составляет 1 сек, как мне грамотно обновить, может достаточно модули обновить, что б не слетели все остальные мои доработки на сайте...??
  12. я отвечу как обладатель етого крутого модуля, Вы все говорите верно не будет работать, но в комплект вход собственная разработка автора модуля просмотренные он работает, но надо стиль ему дописывать под ваш сайт.
  13. Спасибо! я тоже хотел проверить, а теперь уже знаю:)
  14. Здравствуйте! уже сделал, вот такой код вставил в виджет <a href="http://posuda-ukraina.com.ua/terms" title="Хочу"><img alt="Клубная карта" src="/image/catalog/clybnaya-kartka.png" style="float: left;width: 100%;height: auto;position: relative;min-height: 1px;" </a> и поправил етот кусок footer .socials a { display: block; float: left; vertical-align: middle; width: 100%; height: auto; font-size: 12px; line-height: 39px; } и в итоге красиво получилось. PS/ если прописать class="img-responsive" то также неправильно отображается.
  15. Здравсвуйте! не подскажите как мне правельно вставить фото с сылкой вместо виджета в футер, где была карта, я его вставил, но фото неадаптивное, если прописывать with 100%, неработает, работает только если указать в пикселях, даже если прописать стиль для него и поставить в div то также... http://prntscr.com/cxghy3 http://prntscr.com/cxgibi
×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.