{% extends 'layouts/app.html.twig' %} {% block title %}Profile wariantów{% endblock %} {% block app_content %} {% include 'partials/_flash_messages.html.twig' %}

Słowniki / Mapowania

{{ editing_profile ? 'Edytuj profil wariantów' : 'Profile wariantów' }}

Klasyczny profil wariantów wskazuje gotowy zestaw wartości atrybutów PrestaShop używany do generowania kombinacji. W trybie JSON-expansion rozmiary i dopłaty ustawiasz w regułach model + kolor → rozmiary/ceny, więc ten widok jest opcjonalny.

{{ form_start(form, { attr: { class: 'stack-form' } }) }}
{{ form_row(form.code) }} {{ form_row(form.name) }} {{ form_row(form.productType) }} {{ form_row(form.active) }}
{{ form_row(form.description) }}
{{ form_errors(form.attributeValues) }}
{% for value in form.attributeValues %} {% endfor %}
{% if editing_profile %} Anuluj edycję {% endif %}
{{ form_end(form) }}

Lista profili wariantów

{% for item in items %} {% else %} {% endfor %}
Kod Nazwa Typ produktu Liczba wartości Aktywny Akcje
{{ item.code }} {{ item.name }} {{ item.productType ? item.productType.name : '—' }} {{ item.items|length }} {% if item.active %} tak {% else %} nie {% endif %} Edytuj
Brak profili wariantów.
{% endblock %}