custom/plugins/HuebertAccessoriesDirectly/src/Resources/views/storefront/page/product-detail/buy-widget-price.html.twig line 1

Open in your IDE?
  1. {% sw_extends "@Storefront/storefront/page/product-detail/buy-widget-price.html.twig" %}
  2. {% block page_product_detail_price_content %}
  3.     {# added from other plugin #}
  4.     {% if page.product.translated.customFields.deposittype %}
  5.         <div class="product-detail-deposittype">
  6.             {{ page.product.translated.customFields.deposittype }}
  7.         </div>
  8.     {% endif %}
  9.     <input type="hidden" data-hueb-price="{{ price.unitPrice }}">
  10.     <input type="hidden" data-hueb-price-currency="{{ context.currency.translated.shortName }}"/>
  11.     {% set isRegulationPrice = price.regulationPrice != null %}
  12.     <div>
  13.         {% set listPrice = price.listPrice %}
  14.         {% if page.crossSellings|length > 0 and page.HuebertAccessoriesDirectlyBundling %}
  15.             {% sw_include '@HuebertAccessoriesDirectlyBundling/storefront/page/product-detail/hueb-bundle-main-price.html.twig' ignore missing %}
  16.         {% else %}
  17.             <p class="product-detail-price{% if listPrice.percentage > 0 %} with-list-price{% endif %}">
  18.                 {{ price.unitPrice|currency }}{{ "general.star"|trans|sw_sanitize }}
  19.             </p>
  20.         {% endif %}
  21.         {% if listPrice.percentage > 0 %}
  22.             {% block page_product_detail_was_price %}
  23.                 {{ parent() }}
  24.             {% endblock %}
  25.         {% endif %}
  26.         {% block hueb_accessories_total_price %}
  27.             {% if page.crossSellings.elements|length > 0 and page.HuebertAccessoriesDirectly.config.accessoryTotalPrice == "belowPrice" %}
  28.                 {% for crossSelling in page.crossSellings.elements %}{% if not break %}
  29.                     {% if crossSelling.crossSelling.display == "everywhere" or crossSelling.crossSelling.display == "pluginOnly" or not crossSelling.crossSelling.display %}
  30.                         <div class="hueb-accessories_total-wrapper">
  31.                             <p class="hueb-accessories_total">
  32.                                 {{ "huebert-acessories-directly.product-detail.accessory-total-price"|trans|sw_sanitize }}
  33.                                 <span class="hueb-accessories_price"><span
  34.                                             id="hueb-accessories_total-price">{{ price.unitPrice|currency }}</span>{{ "general.star"|trans|sw_sanitize }}
  35.                                 </span>
  36.                             </p>
  37.                         </div>
  38.                         {% set break = true %}
  39.                     {% endif %}
  40.                 {% endif %}{% endfor %}
  41.             {% endif %}
  42.             {% if page.crossSellings|length > 0 and page.HuebertAccessoriesDirectlyBundling %}
  43.                 {% sw_include '@HuebertAccessoriesDirectlyBundling/storefront/page/product-detail/hueb-bundle-extra-price.html.twig' ignore missing %}
  44.             {% endif %}
  45.         {% endblock %}
  46.         {% if isRegulationPrice %}
  47.             <div class="product-detail-list-price-wrapper">
  48.                 <span class="regulation-price"> &nbsp;{{ "general.listPricePreviously"|trans({'%price%': price.regulationPrice.price|currency }) }}{{ "general.star"|trans|sw_sanitize }}</span>
  49.             </div>
  50.         {% endif %}
  51.         {# added from other plugin #}
  52.         {% if page.product.translated.customFields.deposit %}
  53.             {% set deposit = page.product.translated.customFields.deposit|currency %}
  54. {#            <div class="product-detail-deposit">#}
  55. {#                {{ "FlowsiteDepositSystemBasic.plusDeposit"|trans({#}
  56. {#                    '%deposit%': deposit#}
  57. {#                })|sw_sanitize }}#}
  58. {#            </div>#}
  59.         {% endif %}
  60.     </div>
  61. {% endblock %}
  62. {% block page_product_detail_price_block_table_body_cell_quantity %}
  63.     {{ parent() }}
  64.     <td style="display: none;">
  65.         <input type="hidden" data-hueb-price="{{ price.unitPrice }}"/>
  66.         <input type="hidden" data-hueb-price-currency="{{ context.currency.translated.shortName }}"/>
  67.     </td>
  68. {% endblock %}