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

johnsnow91

Newbie
  
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

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

johnsnow91's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. А как добавить строку после, например, последнего Div в шаблоне?
  2. Всем спасибо за помощь. Действительно, невнимательно смотрел, куда добавляю, но не только в этом проблема. Все вышеперечисленное важно. Как то, что случайно можно добавить не в тот блок, так и сама строчка кода. К примеру возьмем шаблон shipping_method.twig {% if error_warning %} <div class="alert alert-warning alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }}</div> {% endif %} {% if shipping_methods %} <p>{{ text_shipping_method }}</p> {% for shipping_method in shipping_methods %} <p><strong>{{ shipping_method.title }}</strong></p> {% if not shipping_method.error %} {% for quote in shipping_method.quote %} <div class="radio"> <label> {% if quote.code == code or not code %} {% set code = quote.code %} <input type="radio" name="shipping_method" value="{{ quote.code }}" checked="checked" /> {% else %} <input type="radio" name="shipping_method" value="{{ quote.code }}" /> {% endif %} {{ quote.title }} - {{ quote.text }}</label> </div> {% endfor %} {% else %} <div class="alert alert-danger alert-dismissible">{{ shipping_method.error }}</div> {% endif %} {% endfor %} {% endif %} <p><strong>{{ text_comments }}</strong></p> <p> <textarea name="comment" rows="8" class="form-control">{{ comment }}</textarea> </p> <div class="buttons"> <div class="pull-right"> <input type="button" value="{{ button_continue }}" id="button-shipping-method" data-loading-text="{{ text_loading }}" class="btn btn-primary" /> </div> </div> Модификатор: <?xml version="1.0" encoding="utf-8"?> <modification> <name>test</name> <version>1.0</version> <author>test</author> <link>test</link> <code>test</code> <file path="catalog/view/theme/default/template/checkout/shipping_method.twig"> <operation> <search><![CDATA[ {% if shipping_methods %} ]]></search> <add position="before"><![CDATA[ test ]]></add> </operation> </file> </modification> Добавит тестовый текст перед выводом доставок. Модификатор: <?xml version="1.0" encoding="utf-8"?> <modification> <name>test</name> <version>1.0</version> <author>test</author> <link>test</link> <code>test</code> <file path="catalog/view/theme/default/template/checkout/shipping_method.twig"> <operation> <search><![CDATA[ <div class="buttons"> <div class="pull-right"> <input type="button" value="{{ button_continue }}" id="button-shipping-method" data-loading-text="{{ text_loading }}" class="btn btn-primary" /> </div> </div> ]]></search> <add position="after"><![CDATA[ test ]]></add> </operation> </file> </modification> Ничего не добавит. Устранение переносов ничего не дает. Если есть версии, прошу напишите, всем будущим читателям будет очень полезно.
  3. Нет, но я читал, что там в базе сохраняется, если через менеджер шаблонов править и проверил таблицу oc_theme - она пуста. Может там еще какая-то есть, где чисто теоретически можно посмотреть?
  4. Всем привет. Может не очень понятный заголовок, поэтому описываю подробно. Работает на open server. Установлен ocmod, фикс для локалки и fix theme editor. Модификаторы php срабатывают, но модификаторы для шаблонов twig - нет. При том, что файл с новыми данными создается в Storage, но в списке методов не отображается Модификатор просто для примера: <?xml version="1.0" encoding="utf-8"?> <modification> <name>test</name> <version>1.0</version> <author>test</author> <link>test</link> <code>test</code> <file path="catalog/view/theme/default/template/checkout/shipping_method.twig"> <operation> <search><![CDATA[ {% if error_warning %} ]]></search> <add position="after"><![CDATA[ asdasdasdasdasdasd ]]></add> </operation> </file> </modification> Ошибок никаких нет и кэши все сбрасывал
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.