custom/plugins/MDR_Theme/src/Resources/views/storefront/page/product-detail/delivery-tab.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
  2. {% block utilities_offcanvas_content %}
  3.     {% block page_product_detail_delivery_container %}
  4.         {% if page.product.customFields.nxs_attributes_scope_of_delivery %}
  5.         <table class="nxs-detail-tab-shipping">
  6.             <tbody>
  7.             <tr>
  8.                 <th>
  9.                     {{ 'nxs-shipping-costs.shippingScope'|trans() }}
  10.                 </th>
  11.                 <td>
  12.                     {{ page.product.customFields.nxs_attributes_scope_of_delivery|raw }}
  13.                 </td>
  14.             </tr>
  15.             </tbody>
  16.         </table>
  17.         {% endif %}
  18.         {% if context.context.nxsShippingCostsCollection.nxsShippingCosts %}
  19.             {% for nxsShippingCost in context.context.nxsShippingCostsCollection.nxsShippingCosts %}
  20.                 <table class="nxs-detail-tab-shipping">
  21.                     <tbody>
  22.                     <tr>
  23.                         <th>
  24.                             {{ 'nxs-shipping-costs.shippingMethod'|trans() }}
  25.                         </th>
  26.                         <td>
  27.                             <span>
  28.                                 {{ nxsShippingCost.shippingMethodName }}
  29.                             </span>
  30.                         </td>
  31.                     </tr>
  32.                     {% if  nxsShippingCost.shippingTime %}
  33.                     <tr>
  34.                         <th>
  35.                             {{ 'nxs-shipping-costs.shippingTime'|trans() }}
  36.                         </th>
  37.                         <td>
  38.                             <span>
  39.                                 {{ nxsShippingCost.shippingTime }} {{ 'nxs-shipping-costs.days'|trans() }}
  40.                             </span>
  41.                         </td>
  42.                     </tr>
  43.                     {% endif %}
  44.                         {% for cost in nxsShippingCost.shippingCosts %}
  45.                             {% if loop.last %}
  46.                                 <tr>
  47.                                     <th>
  48.                                         {{ 'nxs-shipping-costs.shippingCosts'|trans() }} ({{ 'nxs-shipping-costs.from2'|trans() }} {{ cost.min }} {{ 'nxs-shipping-costs.shippingUnit'|trans() }})
  49.                                     </th>
  50.                                     <td>
  51.                                         <span>
  52.                                             {{ cost.price|currency }}
  53.                                         </span>
  54.                                     </td>
  55.                                 </tr>
  56.                             {% else %}
  57.                                 <tr>
  58.                                     <th>
  59.                                         {{ 'nxs-shipping-costs.shippingCosts'|trans() }} ({{ 'nxs-shipping-costs.from'|trans() }} {{ cost.min }} {{ 'nxs-shipping-costs.to'|trans() }} {{ cost.max}} {{ 'nxs-shipping-costs.shippingUnit'|trans() }})
  60.                                     </th>
  61.                                     <td>
  62.                                         <span>
  63.                                             {{ cost.price|currency }}
  64.                                         </span>
  65.                                     </td>
  66.                                 </tr>
  67.                             {% endif %}
  68.                         {% endfor %}
  69.                     </tbody>
  70.                 </table>
  71.                 <br>
  72.             {% endfor %}
  73.         {% else %}
  74.             {% if context.context.nxs_additional_delivery_time %}
  75.                 <table class="nxs-detail-tab-shipping">
  76.                     <tbody>
  77.                     <tr>
  78.                         <th>
  79.                             {{ 'nxs-shipping-costs.shippingTime'|trans() }}
  80.                         </th>
  81.                         <td>
  82.                             <span>
  83.                                 {{ context.context.nxs_additional_delivery_time }}
  84.                             </span>
  85.                         </td>
  86.                     </tr>
  87.                     </tbody>
  88.                 </table>
  89.             {% endif %}
  90.             {{ 'nxs-shipping-costs.noShippingCostsAvailable'|trans() }}
  91.         {% endif %}
  92.     {% endblock %}
  93. {% endblock %}