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

dofus

Пользователи
  
  • Публикаций

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

  • Посещение

Информация

  • Пол
    Мужчина
  • Город:
    Стамбул

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

2 523 просмотра профиля

Достижения dofus

Enthusiast

Enthusiast (6/14)

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

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

3

Репутация

  1. Разобрался. Вполне работает эта связка, если добавлять код в нужный контролер. Я же по невнимательности добавил код в контроллер product.php, а правки вносил в шаблон category.twig в этом и проблема)
  2. Всем привет! Проблема такая: Необходимо было реализовать функцию, при которой со страницы категорий на страницу продукта может перейти только зареганый пользователь Сделал так в контроллере $data['logged'] = $this->customer->isLogged(); И так в шаблоне <div class="us-module-img"> {% if logged %}<a href="{{ product.href }}">{% else %} {% endif %} <img src="{{ product.thumb }}"{% if oct_lazyload %} data-srcset="{{ product.thumb }} 100w" srcset="{{ oct_lazy_image }} 100w" sizes="100vw"{% endif %} class="img-fluid{% if oct_lazyload %} oct-lazy{% endif %}" alt="{{ product.name }}" title="{{ product.name }}" width="340px" height="{{ product.height }}" /></a> </div> <div class="us-module-caption d-flex flex-column"> <div class="us-module-title"> {% if logged %}<a href="{{ product.href }}">{{ product.name }}</a>{% else %}{{ product.name }}{% endif %} Но отрабатывает только else, в независимости от того, зареган ты или нет. В чем может быть проблема? Заранее всем спасибо!
  3. dofus

    Кривая выдача MegaFilterPro

    Нет, на самом деле модуль использует страницу product/special.twig
  4. dofus

    Кривая выдача MegaFilterPro

    Спасибо конечно за ответ) Но в этом и проблема, что не понятно где шаблон результатов. Методом тыка понял, что модуль использует special.twig, но проблема не решается, что бы я не делал, он выдает в формате grid
  5. Друзья, всем привет. Спасайте. Ситуация такая: Поставили MegaFilter Pro на главную, вроде все работает, но выдает страницу с товаром в представлении grid, а нужно list По всему сайту настроили, а для фильтра не могу. Уже и Special правил и что только не делал( Скрин как выглядят категории везде Скрин категории Как выглядит выдача фильтра Скрин выдачи поиска Сайт Сайт Заранее всем спасибо!
  6. вот либо лыжи не едут, либо я совсем тугой Мало того что этот код ничего не выдал Я создал копию information.twig и information.php Скорректировал контроллер Создал макет в админке ииии все равно выдает пустую информационную страницу без нужного скрипта я хз
  7. Я об этом и говорю. Причем всё очень плачевно
  8. Так же скрипт пропадает со всех страниц, и нигде не появляется
  9. Сделал в точности как Вы сказали, но скрипт пропал со всех информационных страниц и на странице /delivery не появился( Я понимаю что дело во мне и что я затупок, но хотелось бы найти место, где я туплю
  10. не выдает вообще ничего... Подозреваю что дело в том, что магазин на OC 3x и twig
  11. Был бы рад, если было бы так просто НО Код вставленный через редактор не работает <meta charset=" utf-8" =""=""> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/3.1.0/css/font-awesome.min.css"> <div class="page"> <!-- tabs --> <div class="pcss3t pcss3t-effect-scale pcss3t-theme-1"> <input type="radio" name="pcss3t" checked="" id="tab1" class="tab-content-first"> <label for="tab1"><img src="https://amalora.ru/sdek.jpg" style="width: 100px;"></label> <input type="radio" name="pcss3t" id="tab2" class="tab-content-2"> <label for="tab2"><img src="https://amalora.ru/bb.jpg" style="width: 100px;"></label> <input type="radio" name="pcss3t" id="tab3" class="tab-content-3"> <label for="tab3"><img src="https://amalora.ru/or.jpg" style="width: 100px;"></label> <input type="radio" name="pcss3t" id="tab5" class="tab-content-last"> <label for="tab5"><img src="https://amalora.ru/pr.jpg" style="width: 100px;"></label> <ul> <li class="tab-content tab-content-first typography"> <h1>Nikola Tesla</h1> <p> </p> </li> <li class="tab-content tab-content-2 typography" style="height: 740px;"> <p>Стоимость доставки расчитывается для заказа стоимостью 2500 рублей и весом 1 кг. </br> Точную стоимость доставки Вы можете узнать при оформлении заказа</p> <p> <div id="boxberry_map"></div> <script> boxberry.openOnPage('boxberry_map'); boxberry.open(callback_function, '1$Yi5bHpD1-g8mdc5UubTuyYKLyDkIck3D','Москва','77737', 2000, 1000, 0, 27, 17, 5); //Описать функцию callback_function, например: function callback_function(result){ document.getElementById('city').innerHTML = result.name; document.getElementById('js-pricedelivery').innerHTML = result.price; document.getElementById('code_pvz').innerHTML = result.id; result.name = encodeURIComponent(result.name) // Что бы избежать проблемы с кириллическими символами, на страницах отличными от UTF8, вы можете использовать функцию encodeURIComponent() document.getElementById('name').innerHTML = result.name; document.getElementById('address').innerHTML = result.address; document.getElementById('workschedule').innerHTML = result.workschedule; document.getElementById('phone').innerHTML = result.phone; document.getElementById('period').innerHTML = result.period; if (result.prepaid=='1') { alert('Отделение работает только по предоплате!'); } } </script></p> </li> <li class="tab-content tab-content-3 typography"> <h1>Albert Einstein</h1> <p>German-born theoretical physicist who developed the general theory of relativity, one of the two pillars of modern physics (alongside quantum mechanics). While best known for his mass–energy equivalence formula E = mc2 (which has been dubbed "the world's most famous equation"), he received the 1921 Nobel Prize in Physics "for his services to theoretical physics, and especially for his discovery of the law of the photoelectric effect". The latter was pivotal in establishing quantum theory.</p> <p>Near the beginning of his career, Einstein thought that Newtonian mechanics was no longer enough to reconcile the laws of classical mechanics with the laws of the electromagnetic field. This led to the development of his special theory of relativity. He realized, however, that the principle of relativity could also be extended to gravitational fields, and with his subsequent theory of gravitation in 1916, he published a paper on the general theory of relativity.</p> <p class="text-right"><em>Find out more about Albert Einstein from <a href="http://en.wikipedia.org/wiki/Albert_Einstein" target="_blank">Wikipedia</a>.</em></p> </li> <li class="tab-content tab-content-last typography"> <div class="typography"> <h1>Isaac Newton</h1> <p>English physicist and mathematician who is widely regarded as one of the most influential scientists of all time and as a key figure in the scientific revolution. His book Philosophiæ Naturalis Principia Mathematica ("Mathematical Principles of Natural Philosophy"), first published in 1687, laid the foundations for most of classical mechanics. Newton also made seminal contributions to optics and shares credit with Gottfried Leibniz for the invention of the infinitesimal calculus.</p> <p>Newton's Principia formulated the laws of motion and universal gravitation that dominated scientists' view of the physical universe for the next three centuries. It also demonstrated that the motion of objects on the Earth and that of celestial bodies could be described by the same principles. By deriving Kepler's laws of planetary motion from his mathematical description of gravity, Newton removed the last doubts about the validity of the heliocentric model of the cosmos.</p> <p class="text-right"><em>Find out more about Isaac Newton from <a href="http://en.wikipedia.org/wiki/Isaac_Newton" target="_blank">Wikipedia</a>.</em></p> </div> </li> </ul> </div> <!--/ tabs --> </div>
  12. Привет друзья!Есть необходимость вывести скрипт на информационной странице с ДоставкойРеализовано было все путем добавления в файл information.tpl следующего <? if ($_SERVER['REQUEST_URI']=="/delivery") { //здесь ваш код } ?> Но скрипт появился на всех информационных страницахПример: https://amalora.ru/delivery https://amalora.ru/about_us Подскажите, где ошибка?
×
×
  • Создать...

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

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