{% macro channel_pricings(channel_pricing_forms, product_variant, body = null, options = {}) %} {% set options = { accordion_id: 'product-channel-pricings' }|merge(options) %} {% set accordion_flush = options.accordion_flush|default(false) %}
{% for channel_code, channel_pricing_form in channel_pricing_forms %}

{% if body is not null %} {{ include(template_from_string(body), { channel_code: channel_code, channel_pricing_form: channel_pricing_form, product_variant: product_variant}) }} {% else %} {% for field in channel_pricing_form %} {{ form_row(field) }} {% endfor %} {% endif %}
{% endfor %}
{% endmacro %}