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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  2.  {% block page_product_detail_buy_container %}
  3.    <div itemprop="offers"
  4.         itemscope
  5.         itemtype="{% if page.product.calculatedPrices|length > 1 %}http://schema.org/AggregateOffer{% else %}http://schema.org/Offer{% endif %}">
  6.      {% block page_product_detail_data %}
  7.        {% block page_product_detail_data_rich_snippet_url %}
  8.          <meta itemprop="url"
  9.                content="{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}"/>
  10.        {% endblock %}
  11.        {% block page_product_detail_data_rich_snippet_price_range %}
  12.          {% if page.product.calculatedPrices|length > 1 %}
  13.            {% set lowestPrice = false %}
  14.            {% set highestPrice = false %}
  15.            {% for price in page.product.calculatedPrices %}
  16.              {% if not lowestPrice or price.unitPrice < lowestPrice %}
  17.                {% set lowestPrice = price.unitPrice %}
  18.              {% endif %}
  19.              {% if not highestPrice or price.unitPrice > highestPrice %}
  20.                {% set highestPrice = price.unitPrice %}
  21.              {% endif %}
  22.            {% endfor %}
  23.            <meta itemprop="lowPrice" content="{{ lowestPrice }}"/>
  24.            <meta itemprop="highPrice" content="{{ highestPrice }}"/>
  25.            <meta itemprop="offerCount" content="{{ page.product.calculatedPrices|length }}"/>
  26.          {% endif %}
  27.        {% endblock %}
  28.        {% block page_product_detail_data_rich_snippet_price_currency %}
  29.          <meta itemprop="priceCurrency"
  30.                content="{{ context.currency.translated.shortName }}"/>
  31.        {% endblock %}
  32. {% if page.product.translated.customFields.sal_product_shopping %}
  33.        {% block page_product_detail_price %}
  34.          <div class="product-detail-price-container">
  35.            {% sw_include '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' %}
  36.          </div>
  37.        {% endblock %}
  38.        {% block page_product_detail_tax %}
  39.          <div class="product-detail-tax-container">
  40.            {% if context.taxState == "gross" %}
  41.              {% set taxText = "general.grossTaxText"|trans|sw_sanitize %}
  42.            {% else %}
  43.              {% set taxText = "general.netTaxInformation"|trans|sw_sanitize %}
  44.            {% endif %}
  45.   
  46.            <p class="product-detail-tax">
  47.              {% block page_product_detail_tax_link %}
  48.               {{ taxText }}
  49.                <a class="product-detail-tax-link"
  50.                   href="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"
  51.                   title="{{ 'checkout.shippingCosts'|trans }}"
  52.                   data-toggle="modal"
  53.                   data-url="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">
  54.                  {{ 'checkout.shippingCosts'|trans }}
  55.                </a>
  56.              {% endblock %}
  57.            </p>
  58.          </div>
  59.        {% endblock %}
  60. {% else %}
  61. {% endif %}
  62.        {% block page_product_detail_delivery_informations %}
  63.          <div class="product-detail-delivery-information">
  64.            {% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
  65.          </div>
  66.        {% endblock %}
  67.      {% endblock %}
  68.      {% block page_product_detail_configurator_include %}
  69.        {% if page.product.parentId and page.configuratorSettings|length > 0 %}
  70.          <div class="product-detail-configurator-container">
  71.            {% sw_include '@Storefront/storefront/page/product-detail/configurator.html.twig' %}
  72.          </div>
  73.        {% endif %}
  74.      {% endblock %}
  75.      {% block page_product_detail_buy_form %}
  76.        {% if page.product.active %}
  77.          <div class="product-detail-form-container">
  78.            {% sw_include '@Storefront/storefront/page/product-detail/buy-widget-form.html.twig' %}
  79.          </div>
  80.        {% endif %}
  81.      {% endblock %}
  82.    </div>
  83.  {% endblock %}
  84. {% block page_product_detail_ordernumber_container %}{% endblock %}