M
M
Muvka2018-06-29 18:57:22
opencart
Muvka, 2018-06-29 18:57:22

Why is  added when setting the modifier?

I'm trying to write a breadcrumb modifier for OC 3, in general it turned out, but for some reason this symbol is added. What's wrong? Here is the code

<file path="catalog/view/theme/*/template/checkout/{cart,checkout}*.twig">
  <operation error="skip">
        <search><![CDATA[{% for breadcrumb in breadcrumbs %}]]></search>
  <add position="replace" offset="3"><![CDATA[{% for key, breadcrumb in breadcrumbs %}{% if key + 1 < breadcrumbs|length %}<li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li>{% else %}<li>{{ breadcrumb.text }}</li>{% endif %}{% endfor %}</ul>]]></add>
  </operation> 
</file>

5b3656cd55d92712148402.png
The validator swears that only li should be in ul...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2018-07-03
@zoozag

Some of the files are in the wrong encoding. UTF-8 with BOM instead of UTF-8 without BOM

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question