{% 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 %}