I am using 3.0.2.0
I have made an XML file to display an * sign after the price in product/category
and to show text below the price.
The text has to change to German when this language is selected. But it will not work.
I am not a pro, so well explained help would be much appreciated

Here is my code:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>Add Delivery Time Below Price</name>
<code>add-delivery-time-below-price</code>
<version>1.0</version>
<author>me</author>
<link></link>
<file path="catalog/view/theme/*/template/product/category.twig">
<operation>
<search><![CDATA[{{ price }}]]></search>
<add position="after"><![CDATA[
<div style="font-size: 7pt; margin-top: 5px;">
{% if session.language == 'de' %}
Lieferzeit (DE): 14 Werktage**
{% else %}
Delivery Time (DE): 14 working days**
{% endif %}
</div>
]]></add>
</operation>
<operation>
<search><![CDATA[{{ price }}]]></search>
<add position="after"><![CDATA[ * ]]></add>
</operation>
</file>
</modification>