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

Admiral1985

Users
  
  • Posts

    97
  • Joined

  • Last visited

Recent Profile Visitors

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

Admiral1985's Achievements

Collaborator

Collaborator (7/14)

  • Dedicated Rare
  • First Post
  • Collaborator
  • Week One Done
  • One Month Later

Recent Badges

2

Reputation

  1. Ув форумчане проблема такая ( установили шаблон нужно было внести корективы ) и сделать вывод переключателя языка (УКР и РУСС версия ) в моб меню! теперь я его вывел все круто четко ( не работало через js написал скрипт <script> $(document).on('click', '#lang_mob button', function() { var code = $(this).attr('name'); $('#form-language input[name="code"]').val(code); $('#form-language').submit(); }); </script> заработало круто четко ( моб меню работает переключает ) но теперь в десктопе при переключении языка просто идет перезагрузка ! также что бы вывести в моб меню перключатель в controller menu.php добавил код! // custom code my $data['languages'] = array(); $results = $this->model_localisation_language->getLanguages(); foreach ($results as $result) { if ($result['status']) { $data['languages'][] = array( 'name' => $result['name'], 'code' => $result['code'] ); } } $this->load->language('common/menu'); $data['text_language'] = $this->language->get('text_language'); вот ссылка на мой сайт жми знаю что где то что то не так сделал может кто подскажет как решить? забыл написатьв menu.twig сделал вывода такой {% if languages|length > 1 %} <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language"> <div id="lang_mob" class="btn-group dropdown"> <ul class="lang-menu"> {% for language in languages %} <li> <button id="custom-style-lan" type="button" name="{{ language.code }}">{{ language.name }}</button> </li> {% endfor %} </ul> </div> <input type="hidden" name="code" value="" /> <input type="hidden" name="redirect" value="{{ redirect }}" /> </form> {% endif %} в header.twig ( то есть десктоп он такой) <div id="custom-lang-menu" class="language-selector">{{ language }}</div> в принципе одно и тоже код !
  2. у меня 3 входа друг было ! пришлось через JS делать просто сменить заголовок вместо email в lanuage на тел! в twig найти inpute и вместо email поставить text ! через js сделать автозаполнение пороля и скрыть пороль добавить префикс в маску и хоть на костылях все готово! примерно обяснил как решили вопрос !
  3. как можно исправить не подскажете?
  4. Отключил прошу прощения , и-за часто обновления модификаторов отключаеться )
  5. Все привет , столкнулся с проблемой , на главной страници кнопка каталог работает( при переходи в подкатегории или на товар кнопка перестает работать ) множесто ошибок в консоле не могу понять где исправить данные ошибки так как они введут на кэш , я его очишал но не чего не поменялось ( папка min) вот >сайт< буду благодарен за подсказки или помощь!
  6. Всем привет как сделать вход и регистрацию на сайт только по номеру ( СМС не нужны) установил модуль бесплатный для входа ( как убрать ввод пороля?) То есть мне нужно что бы человек входил на сайт только вводя Номер телефона, а регистрация только номер телефона и ФИО ( стоит модуль Simple )
  7. Нашель решение может кому пригодиться ( спасибо добрым людям за подсказку) Закомментируйте везде эту строку rmNotify('success', json['success']); не забываем обновить модификаторы и кэш !
  8. Всем привет подскажите как убрать вспылвающее увидомление одобавление товар в ocstore 3?вот фото прочел несколько статей пока не понял что делать вот скрип в common.js и в product.twig <script> $('body').on('click', '#button-cart', function(){ $.ajax({ url: 'index.php?route=checkout/cart/add', type: 'post', data: $('#product input[type=\'text\'], #product input[type=\'hidden\'], #product input[type=\'radio\']:checked, #product input[type=\'checkbox\']:checked, #product select, #product textarea'), dataType: 'json', cache: false, beforeSend: function() { $('#button-cart').button('loading'); }, complete: function() { $('#button-cart').button('reset'); }, success: function(json) { $('.alert-dismissible, .text-danger').remove(); $('.form-group').removeClass('has-error'); if (json['error']) { if (json['error']['option']) { let errorOption = ''; for (i in json['error']['option']) { var element = $('#input-option' + i.replace('_', '-')); if (element.parent().hasClass('input-group')) { element.parent().after('<div class="text-danger">' + json['error']['option'][i] + '</div>'); } else { element.after('<div class="text-danger">' + json['error']['option'][i] + '</div>'); } errorOption += '<div class="alert-text-item">' + json['error']['option'][i] + '</div>'; } rmNotify('danger', errorOption); } if (json['error']['error_warning']) { rmNotify('danger', json['error']['error_warning']); } if (json['error']['recurring']) { $('select[name=\'recurring_id\']').after('<div class="text-danger">' + json['error']['recurring'] + '</div>'); } // Highlight any found errors $('.text-danger').parent().addClass('has-error'); } if (json['success']) { if (json['isPopup']) { octPopupCart(); } else { rmNotify('success', json['success']); } if (typeof octYandexEcommerce == 'function') { octYandexEcommerce(json); } // Need to set timeout otherwise it wont update the total setTimeout(function() { $('#oct-cart-quantity, .rm-header-cart-quantity, #mobile_cart_index, .oct-fixed-bar-quantity-cart').html(json['total_products']); $('.rm-header-cart-text').html(json['total_amount']); }, 100); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }); </script> это то что в product.twig // Cart add remove functions var cart = { 'add': function(product_id, quantity) { $.ajax({ url: 'index.php?route=checkout/cart/add', type: 'post', data: 'product_id=' + product_id + '&quantity=' + (typeof(quantity) != 'undefined' ? quantity : 1), dataType: 'json', cache: false, beforeSend: function() { $('#cart > button').button('loading'); }, complete: function() { $('#cart > button').button('reset'); }, success: function(json) { $('.alert-dismissible, .text-danger').remove(); if (json['redirect']) { location = json['redirect']; } if (json['error'] && json['error']['error_warning']) { rmNotify('danger', '<div class="alert-text-item">' + json['error']['error_warning'] + '</div>'); } if (json['success']) { if (json['isPopup']) { octPopupCart(); } else { rmNotify('success', json['success']); } if (typeof octYandexEcommerce == 'function') { octYandexEcommerce(json); } // Need to set timeout otherwise it wont update the total setTimeout(function() { $('#oct-cart-quantity, .rm-header-cart-quantity, #mobile_cart_index, .oct-fixed-bar-quantity-cart').html(json['total_products']); $('.rm-header-cart-text').html(json['total_amount']); }, 100); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }, 'update': function(key, quantity) { $.ajax({ url: 'index.php?route=checkout/cart/edit', type: 'post', data: 'key=' + key + '&quantity=' + (typeof(quantity) != 'undefined' ? quantity : 1), dataType: 'json', cache: false, beforeSend: function() { $('#cart > button').button('loading'); }, complete: function() { $('#cart > button').button('reset'); }, success: function(json) { // Need to set timeout otherwise it wont update the total setTimeout(function() { $('#oct-cart-quantity, .rm-header-cart-quantity, #mobile_cart_index, .oct-fixed-bar-quantity-cart').html(json['total_products']); $('.rm-header-cart-text').html(json['total_amount']); }, 100); var now_location = String(document.location.pathname); if ((now_location == '/cart/') || (now_location == '/cart') || (now_location == '/checkout/') || (now_location == '/checkout') || (getURLVar('route') == 'checkout/cart') || (getURLVar('route') == 'checkout/checkout')) { location = 'index.php?route=checkout/cart'; } else { $('#cart > ul').load('index.php?route=common/cart/info ul li'); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }, 'remove': function(key) { $.ajax({ url: 'index.php?route=checkout/cart/remove', type: 'post', data: 'key=' + key, dataType: 'json', cache: false, beforeSend: function() { $('#cart > button').button('loading'); }, complete: function() { $('#cart > button').button('reset'); }, success: function(json) { // Need to set timeout otherwise it wont update the total setTimeout(function() { $('#oct-cart-quantity, .rm-header-cart-quantity, #mobile_cart_index, .oct-fixed-bar-quantity-cart').html(json['total_products']); $('.rm-header-cart-text').html(json['total_amount']); }, 100); var now_location = String(document.location.pathname); if ((now_location == '/cart/') || (now_location == '/cart') || (now_location == '/checkout/') || (now_location == '/checkout') || (getURLVar('route') == 'checkout/cart') || (getURLVar('route') == 'checkout/checkout')) { location = 'index.php?route=checkout/cart'; } else { $('#cart > ul').load('index.php?route=common/cart/info ul li'); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); } } это в common.js Всем заранее спс!
  9. не как не связана , ее функция только выгружать товары !
  10. то есть работает метод автоматического експорта/импорта между учетом товаров и опенкарт! через модуль!
  11. она выгружает в csv файле просто товары, а наш модуль уже через крон должен подтягивать товары на сайт!
  12. я на прямую общаюсь с техподержкой и смысла в этом нет там засорять, но сама тех подержка не может мне помочь с openserver как то их связать нормально , тому пишу сюда Системное администрирование (настройка хостинга, серверов, ПО)
  13. cron коректно работает с rozetka то есть система учета товара выгружает товары в xml формате а розетка заберает и все через крон настроено! но с этим модулем почему то не получаеться , у разраба спросил он говорит с openserver не дуружу хз как помочь, вот если есть толковые люди готовые помочь конечно не за бесплатно тогда гуд естествено за разумную сумму
  14. домен куплен! он подвязан на локальный сервер! вообще не понимаю смысла обсуждения , если человеку удобно так пусть так и будет задача то другая !
×
×
  • 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.