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

Open in your IDE?
  1. {% sw_extends "@Storefront/storefront/page/product-detail/buy-widget-form.html.twig" %}
  2. {% block page_product_detail_buy_form_inner %}
  3.     {% if page.acessoryOptions.accessoryPosition == "below" %}
  4.         {% block hueb_accessories_total_price_above_buy_button %}
  5.             {% if page.crossSellings.elements|length > 0 and page.HuebertAccessoriesDirectly.config.accessoryTotalPrice == "aboveBuyButton" and (page.product.calculatedListingPrice.from.unitPrice == page.product.calculatedListingPrice.to.unitPrice)%}
  6.                 {% for crossSelling in page.crossSellings.elements %}{% if not break %}
  7.                     {% if crossSelling.crossSelling.display == "everywhere" or crossSelling.crossSelling.display == "pluginOnly" or not crossSelling.crossSelling.display %}
  8.                         {% if page.product.calculatedPrices|length == 1 %}
  9.                             {% set initPrice = page.product.calculatedPrices.first.unitPrice|currency %}
  10.                         {% else %}
  11.                             {% set initPrice = page.product.calculatedPrice.unitPrice|currency %}
  12.                         {% endif %}
  13.                         <div class="hueb-accessories_total-wrapper">
  14.                             <div class="hueb-accessories_total">
  15.                                 {{ "huebert-acessories-directly.product-detail.accessory-total-price"|trans|sw_sanitize }}
  16.                             </div>
  17.                             <p class="hueb-accessories_price">
  18.                                 <span id="hueb-accessories_total-price">{{ initPrice }} </span>{{ "general.star"|trans|sw_sanitize }}
  19.                             </p>
  20.                         </div>
  21.                         {% set break = true %}
  22.                     {% endif %}
  23.                 {% endif %}{% endfor %}
  24.             {% endif %}
  25.         {% endblock %}
  26.         {{ parent() }}
  27.     {% endif %}
  28.     {% block hueb_acessories_directly %}
  29.         {% sw_include '@HuebertAccessoriesDirectly/storefront/page/product-detail/hueb-accessories-accordion.html.twig' %}
  30.     {% endblock %}
  31.     {% if page.acessoryOptions.accessoryPosition == "above" or not page.acessoryOptions.accessoryPosition %}
  32.         {{ block('hueb_accessories_total_price_above_buy_button') }}
  33.         {{ parent() }}
  34.     {% endif %}
  35. {% endblock %}