I am using opencart V 3.0.3.7
I have a code structure in twig file like
<ul> // this is fixed
<li>
{% if somecondition %}
<ul>
<li> </li>
</ul> // Here <ul> </ul> is added dymanically...so number of <ul> </ul> tags is not fixed.
{% endif %}
</li>
</ul> // this is fixed. want to search this tag in xml
I want to search last in xml file
For first instance, works like
<search index="0"><![CDATA[<ul>]]></search>
How to search LAST ???
You have four
<ul>tags. And the last tag index is 3. So you can add in XMLindex="3"in thesearchtag.And after which position you add this.
There is three-position:
You can add any position as per your code requirements.
Change Lines:
Full Examples :