Hallo,
in den Produkten habe ich ein Auswahlfeld als Zusatzfeld definiert, bei dem auch eine Mehrfachauswahl möglich ist.
Bei Auswahl einer Option soll ein der Option zugeordnetes Bild im Frontend angezeigt werden.
{% block option1 %}
{% if OPTION1 IST AUSGEWÄHLT %}
<a href=""><img src="" class="" alt="" title=""></a>
{% endif %}
{% endblock %}
{% block option2 %}
{% if OPTION2 IST AUSGEWÄHLT %}
<a href=""><img src="" class="" alt="" title=""></a>
{% endif %}
{% endblock %}
Wie muss denn die If Anweisung aussehen, damit das Bild nur angezeigt wird, wenn die Option ausgewählt ist?
Shopware 6.4.2.1
Vielen Dank schon mal für Eure Hife.
Liebe Grüße
Jaqueline