app/template/default/Product/weight_size.twig line 1

Open in your IDE?
  1. {#
  2. * Plugin Name : DeliveryPlus4
  3. *
  4. * Copyright (C) BraTech Co., Ltd. All Rights Reserved.
  5. * http://www.bratech.co.jp/
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. #}
  10. <style>
  11.   .ec-productRole .ec-productRole__weight {
  12.     padding: 14px 0;
  13.     border-bottom: 1px dotted #ccc; }
  14.   .ec-productRole .ec-productRole__size {
  15.     padding: 14px 0;
  16.     border-bottom: 1px dotted #ccc; }
  17. </style>
  18. {% if Product.deliveryplus_weight_min %}
  19. <div class="ec-productRole__weight">
  20.     {% if Product.deliveryplus_weight_min == Product.deliveryplus_weight_max %}
  21.     {{ 'deliveryplus.common.1'|trans }}: <span id="deliveryplus_weight_default">{{ Product.deliveryplus_weight_min / 10 }}kg</span>
  22.     {% else %}
  23.     {{ 'deliveryplus.common.1'|trans }}: <span id="deliveryplus_weight_default">{{ Product.deliveryplus_weight_min / 10 }} ~ {{ Product.deliveryplus_weight_max / 10 }}</span>
  24.     {% endif %}
  25. </div>
  26. {% endif %}
  27. {% if Product.deliveryplus_size_min %}
  28. <div class="ec-productRole__size">
  29.     {% if Product.deliveryplus_size_min == Product.deliveryplus_size_max %}
  30.     {{ 'deliveryplus.common.2'|trans }}: <span id="deliveryplus_size_default">{{ Product.deliveryplus_size_min / 1 }}</span>
  31.     {% else %}
  32.     {{ 'deliveryplus.common.2'|trans }}: <span id="deliveryplus_size_default">{{ Product.deliveryplus_size_min / 1 }} ~ {{ Product.deliveryplus_size_max / 1}}</span>
  33.     {% endif %}
  34. </div>
  35. {% endif %}