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

Open in your IDE?
  1. {% sw_extends '@parent/storefront/page/product-detail/buy-widget.html.twig' %}
  2. {% block page_product_detail_rich_snippets %}{% endblock %}
  3. {% block page_product_detail_data_rich_snippet_url %}{% endblock %}
  4. {% block page_product_detail_data_rich_snippet_price_currency %}{% endblock %}
  5. {% block page_product_detail_data_rich_snippet_price_range %}
  6.     {% if page.product.calculatedPrices|length > 1 %}
  7.         {% set lowestPrice = false %}
  8.         {% set highestPrice = false %}
  9.         {% for price in page.product.calculatedPrices %}
  10.             {% if not lowestPrice or price.unitPrice < lowestPrice %}
  11.                 {% set lowestPrice = price.unitPrice %}
  12.             {% endif %}
  13.             {% if not highestPrice or price.unitPrice > highestPrice %}
  14.                 {% set highestPrice = price.unitPrice %}
  15.             {% endif %}
  16.         {% endfor %}
  17.     {% endif %}
  18. {% endblock %}
  19. {% block page_product_detail_ordernumber_container %}
  20.     <p class="nxs-custom-description">
  21.         {% if page.product.translated.customFields.nxs_attributes_short_description %}
  22.             {% set textShortDesc =  page.product.translated.customFields.nxs_attributes_short_description|raw|striptags|split(' ') %}
  23.                 <span class="d-none d-md-block">
  24.                     {{ page.product.translated.customFields.nxs_attributes_short_description|raw|striptags }}
  25.                 </span>
  26.         {% endif %}
  27.     </p>
  28.     <div class="nxs-custom-info-list">
  29.         {{ page.product.translated.customFields.migration_attribute_4_product_usps_178|raw }}
  30.     </div>
  31. {% endblock %}
  32. {% block page_product_detail_tax %}
  33.     {% set taxRate =  page.product.calculatedPrice.taxRules.elements|first.taxRate %}
  34.     <div class="product-detail-tax-container">
  35.         {% if context.taxState == "gross" %}
  36.             {% if taxRate %}
  37.                 {% set taxText = "general.grossTaxWithRate"|trans({'%rate%' : taxRate})|sw_sanitize %}
  38.             {% else %}
  39.                 {% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
  40.             {% endif %}
  41.         {% else %}
  42.             {% set taxText = "general.netTaxInformation"|trans|sw_sanitize %}
  43.         {% endif %}
  44.         <p class="product-detail-tax">
  45.             {% block page_product_detail_tax_link %}
  46.                 <a class="product-detail-tax-link"
  47.                    href="{{ path('frontend.cms.page',{ id: shopware.config.core.basicInformation.shippingPaymentInfoPage }) }}"
  48.                    title="{{ taxText }}"
  49.                    data-toggle="modal"
  50.                    data-url="{{ path('frontend.cms.page',{ id: shopware.config.core.basicInformation.shippingPaymentInfoPage }) }}">
  51.                     {{ taxText }}
  52.                 </a>
  53.             {% endblock %}
  54.         </p>
  55.     </div>
  56. {% endblock %}
  57. {% block page_product_detail_reviews %}
  58. {% endblock %}