Feed Erstellung
Variablen für Feed-Erstellung
Nutze folgende Twig-Variablen, um CLP-Sätze und Hinweise im Feed einzubinden:
<clp>
{% for x in product.extensions.lenzPlatformClp %}
{{ x.translated.name }}:{{ x.translated.text }}{% if not(loop.last) %}|{% endif %}
{% endfor %}
</clp>
<clp_symbol>
{% for x in product.extensions.lenzPlatformClp.filterByProperty('type', 'lenz_clp_symbol') %}
{{ x.translated.name }}:{{ x.translated.text }}{% if not(loop.last) %}|{% endif %}
{% endfor %}
</clp_symbol>
<clp_symbol_alternative>
{% for x in product.extensions.lenzPlatformClp.filterByProperty('type', 'lenz_clp_symbol') %}
{{ productExport.salesChannelDomain.url }}/bundles/lenzplatformclp/storefront/img/clp/{{ x.translated.name|lower }}.gif{% if not(loop.last) %}|{% endif %}
{% endfor %}
</clp_symbol_alternative>
<clp_signal>
{% for x in product.extensions.lenzPlatformClp.filterByProperty('type', 'lenz_clp_signal') %}
{{ x.translated.name }}:{{ x.translated.text }}{% if not(loop.last) %}|{% endif %}
{% endfor %}
</clp_signal>
<clp_h>
{% for x in product.extensions.lenzPlatformClp.filterByProperty('type', 'lenz_clp_h') %}
{{ x.translated.name }}:{{ x.translated.text }}{% if not(loop.last) %}|{% endif %}
{% endfor %}
</clp_h>
<clp_euh>
{% for x in product.extensions.lenzPlatformClp.filterByProperty('type', 'lenz_clp_euh') %}
{{ x.translated.name }}:{{ x.translated.text }}{% if not(loop.last) %}|{% endif %}
{% endfor %}
</clp_euh>
<clp_p>
{% for x in product.extensions.lenzPlatformClp.filterByProperty('type', 'lenz_clp_p') %}
{{ x.translated.name }}:{{ x.translated.text }}{% if not(loop.last) %}|{% endif %}
{% endfor %}
</clp_p>