Does ADD AFTER inserts the text right after the match, or in the next line?
Here are the details of my test:
order_list.twig has a line:
Code: Select all
<td class="text-right">{{ order.total }}</td>
Code: Select all
<file path="admin/view/template/sale/order_list.twig">
<operation>
<search><![CDATA[<td class="text-right">{{ order.total }}]]></search>
<add position="after"><![CDATA[ {{ order.currency_code }} ]]></add>
</operation>
</file>
But after applying the modification, the cache shows:
Code: Select all
// line 132
echo twig_get_attribute($this->env, $this->source, $context["order"], "total", [], "any", false, false, false, 132);
echo "</td>";
// line 133
echo twig_get_attribute($this->env, $this->source, $context["order"], "currency_code", [], "any", false, false, false, 133);
Is this how it is supposed to work, or am I doing something wrong?
Thanks