{% macro renderPossibleShippingMethods( form, entity, events = {}, view = 'oroorder/js/app/views/possible-shipping-methods-view' ) %} {% if entity.shippingMethod and entity.shippingMethodType and entity.estimatedShippingCost %} {% set savedShippingMethod = { method: entity.shippingMethod, type: entity.shippingMethodType, cost: entity.estimatedShippingCost.value } %} {% set savedShippingMethodLabel = oro_shipping_method_with_type_label(entity.shippingMethod, entity.shippingMethodType) ~ ': ' ~ entity.estimatedShippingCost|oro_format_price() %} {% endif %} {% set options = { view: view, savedShippingMethodLabel: savedShippingMethodLabel|default(null)|escape, savedShippingMethod: savedShippingMethod|default(null) } %} {% if events|length > 0 %} {% set options = options|merge({events: events}) %} {% endif %}
{{ 'oro.order.btn.calculate_shipping'|trans }}
{{ form_row(form.calculateShipping) }} {{ form_row(form.shippingMethod) }} {{ form_row(form.shippingMethodType) }} {{ form_row(form.estimatedShippingCostAmount) }}
{% endmacro %} {% macro hiddenCollection(form) %}
{% if form.children|length %} {% for child in form.children %} {{ form_widget(child) }} {% endfor %} {% endif %}
{% endmacro %}