vendor/shopware/storefront/Resources/views/storefront/component/shipping/shipping-method.html.twig line 1

Open in your IDE?
  1. <div class="shipping-method">
  2.     {% block component_shipping_method_field %}
  3.         <div class="shipping-form-group form-group">
  4.             {% block component_shipping_method_control %}
  5.                 <div class="{{ formRadioWrapperClass }} shipping-method-radio">
  6.                     {% block component_shipping_method_input %}
  7.                         <input type="radio"
  8.                                id="shippingMethod{{ shipping.id }}"
  9.                                name="shippingMethodId"
  10.                                value="{{ shipping.id }}"
  11.                                {% if shipping.id is same as(context.shippingMethod.id) %}checked="checked"{% endif %}
  12.                                class="{{ formCheckInputClass }} shipping-method-input">
  13.                     {% endblock %}
  14.                     {% block component_shipping_method_label %}
  15.                         <label class="{{ formCheckLabelClass }} shipping-method-label"
  16.                                for="shippingMethod{{ shipping.id }}">
  17.                             {% block component_shipping_method_image %}
  18.                                 {% if shipping.media %}
  19.                                     {% sw_thumbnails 'shipping-method-image-thumbnails' with {
  20.                                         media: shipping.media,
  21.                                         sizes: {
  22.                                             'default': '100px'
  23.                                         },
  24.                                         attributes: {
  25.                                             'class': 'shipping-method-image',
  26.                                             'alt': (shipping.media.translated.alt ?: shipping.translated.name),
  27.                                             'title': (shipping.media.translated.title ?: shipping.translated.name)
  28.                                         }
  29.                                     } %}
  30.                                 {% endif %}
  31.                             {% endblock %}
  32.                             {% block component_shipping_method_description %}
  33.                                 <div class="shipping-method-description">
  34.                                     <strong>{{ shipping.translated.name }}</strong>
  35.                                     {% if shipping.translated.description %}
  36.                                         {% set shippingDescription = shipping.translated.description|raw %}
  37.                                         {% if not shipping.id is same as(context.shippingMethod.id) %}
  38.                                             {% set shippingDescription = (shippingDescription|length > 75 ? shippingDescription[:75] ~ ' ...' : shippingDescription) %}
  39.                                         {% endif %}
  40.                                         <p title="{{ shipping.translated.description|raw }}">{{ shippingDescription }}</p>
  41.                                     {% endif %}
  42.                                 </div>
  43.                             {% endblock %}
  44.                         </label>
  45.                     {% endblock %}
  46.                 </div>
  47.             {% endblock %}
  48.         </div>
  49.     {% endblock %}
  50. </div>