?? GreyFile — Mystic File Browser

Current path: home/webdevt/prestashop17/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Forms/



?? Go up: /home/webdevt/prestashop17/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage

?? Viewing: form_shipping.html.twig

{#**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 *#}
{% set dimension_unit, weight_unit = configuration('PS_DIMENSION_UNIT'), configuration('PS_WEIGHT_UNIT') %}

<div class="col-md-12 pb-1">
  <h2>{{ 'Package dimension'|trans({}, 'Admin.Catalog.Feature') }}</h2>
  <p class="subtitle">{{ 'Adjust your shipping costs by filling in the product dimensions.'|trans({}, 'Admin.Catalog.Feature') }}</p>
</div>

<div class="col-xl-2 col-lg-3">
  <div class="form-group">
    <label class="form-control-label">{{ form.width.vars.label }}</label>
    {{ form_errors(form.width) }}
    <div class="input-group">
      {{ form_widget(form.width) }}
      <div class="input-group-append">
        <span class="input-group-text">{{ dimension_unit }}</span>
      </div>
    </div>
  </div>
</div>
<div class="col-xl-2 col-lg-3">
  <div class="form-group">
    <label class="form-control-label">{{ form.height.vars.label }}</label>
    {{ form_errors(form.height) }}
    <div class="input-group">
      {{ form_widget(form.height) }}
      <div class="input-group-append">
        <span class="input-group-text">{{ dimension_unit }}</span>
      </div>
    </div>
  </div>
</div>
<div class="col-xl-2 col-lg-3">
  <div class="form-group">
    <label class="form-control-label">{{ form.depth.vars.label }}</label>
    {{ form_errors(form.depth) }}
    <div class="input-group">
      {{ form_widget(form.depth) }}
      <div class="input-group-append">
        <span class="input-group-text">{{ dimension_unit }}</span>
      </div>
    </div>
  </div>
</div>
<div class="col-xl-2 col-lg-3">
  <div class="form-group">
    <label class="form-control-label">{{ form.weight.vars.label }}</label>
    {{ form_errors(form.weight) }}
    <div class="input-group">
      {{ form_widget(form.weight) }}
      <div class="input-group-append">
        <span class="input-group-text">{{ weight_unit }}</span>
      </div>
    </div>
  </div>
</div>

<div class="col-md-12">
  <div class="form-group">
    <h2>
      {{ form.additional_delivery_times.vars.label }}
      <span class="help-box" data-toggle="popover"
        data-content="{{ "Display delivery time for a product is advised for merchants selling in Europe to comply with the local laws."|trans({}, 'Admin.Catalog.Help') }}" ></span>
    </h2>
    <div class="row">
       <div class="col-md-12" {% if block('widget_container_attributes') is defined %} {{ block('widget_container_attributes') }} {% endif %}>
          {% for child in form.additional_delivery_times %}
            {% if child.vars.value == 1 %}
              <div class="widget-radio-inline">
                {{ form_widget(child) }}
                <a href="{{ path('admin_product_preferences') }}" class="btn sensitive px-0" target=_blank><i class="material-icons">open_in_new</i> {{ "edit"|trans({}, 'Admin.Catalog.Help') }}</a>
              </div>
            {% else %}
              {{ form_widget(child) }}
            {% endif %}
          {% endfor %}
        </div>
     </div>
  </div>
</div>

<div class="col-xl-6 col-lg-6">
  <div class="form-group">
    <label class="form-control-label">{{ form.delivery_in_stock.vars.label }}</label>
    {{ form_errors(form.delivery_in_stock) }}
    {{ form_widget(form.delivery_in_stock) }}
    <p class="subtitle italic">{{ 'Leave empty to disable.'|trans({}, 'Admin.Catalog.Feature') }}</p>
  </div>
</div>
<div class="col-xl-6 col-lg-6">
  <div class="form-group">
    <label class="form-control-label">{{ form.delivery_out_stock.vars.label }}</label>
    {{ form_errors(form.delivery_out_stock) }}
    {{ form_widget(form.delivery_out_stock) }}
    <p class="subtitle italic">{{ 'Leave empty to disable.'|trans({}, 'Admin.Catalog.Feature') }}</p>
  </div>
</div>

<div class="col-md-12">
  <div class="form-group">
    <h2>
      {{ form.additional_shipping_cost.vars.label }}
      <span class="help-box" data-toggle="popover"
        data-content="{{ "If a carrier has a tax, it will be added to the shipping fees. Does not apply to free shipping."|trans({}, 'Admin.Catalog.Help') }}" ></span>
    </h2>
    <label class="form-control-label">{{ 'Does this product incur additional shipping costs?'|trans({}, 'Admin.Catalog.Feature') }}</label>
    <div class="row">
      <div class="col-md-2">
        {{ form_widget(form.additional_shipping_cost) }}
      </div>
    </div>
  </div>
</div>

<div class="col-md-12">
  <div class="form-group">
    <h2>{{ form.selectedCarriers.vars.label }}</h2>
    {{ form_widget(form.selectedCarriers) }}
  </div>
</div>

<div class="col-md-12">
  <div class="alert alert-warning" role="alert">
    <p class="alert-text">
        {{ 'If no carrier is selected then all the carriers will be available for customers orders.'|trans({}, 'Admin.Catalog.Notification')|raw }}
    </p>
  </div>
</div>

<div class="col-md-12">
  <div id="warehouse_combination_collection" class="col-md-12 form-group" data-url="{{ path('admin_warehouse_refresh_product_warehouse_combination_form') }}">
    {% if asm_globally_activated and isNotVirtual and isChecked %}
      {{ include('@PrestaShop/Admin:Product/ProductPage/Forms/form_warehouse_combination.html.twig', { 'warehouses': warehouses, 'form': form }) }}
    {% endif %}
  </div>
</div>

{{ renderhook('displayAdminProductsShippingStepBottom', { 'id_product': id_product }) }}


??

??