custom/plugins/AcrisRrpCS/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. {#NOTE: In this twig, price = calculatedPrice#}
  3. {% block page_product_detail_price_inner %}
  4.     {% if page.product.calculatedPrices.extensions.acris_rrp_highest_rrp_struct %}
  5.         {% block acris_rrp_highest_only_price %}
  6.             {% sw_include "@Storefront/storefront/utilities/acris-rrp.html.twig" with { price: page.product.calculatedPrices.extensions.acris_rrp_highest_rrp_struct, rrpPriceRule: context.extensions.acris_rrp_rule_struct.rrpRule, rrpPriceHide: page.product.calculatedPrices.extensions.acris_rrp_price_hide_struct.rrpPriceHide } %}
  7.         {% endblock %}
  8.     {% endif %}
  9.     {{ parent() }}
  10. {% endblock %}
  11. {% block page_product_detail_price_block_table_head_inner %}
  12.     <tr class="product-block-prices-row">
  13.         <th scope="col" class="product-block-prices-cell">
  14.             {{ "detail.dataColumnQuantity"|trans|sw_sanitize }}
  15.         </th>
  16.         <th scope="col" class="product-block-prices-cell">
  17.             {{ "detail.dataColumnPrice"|trans|sw_sanitize }}
  18.         </th>
  19.         {% if page.product.calculatedPrices.extensions.acris_rrp_price_exists_struct.getRrpPriceExists() %}
  20.             <th scope="col" class="product-block-prices-cell">
  21.                 {{ 'acris-rrp-product-detail.textBeforeTable'|trans|sw_sanitize }}
  22.             </th>
  23.         {% endif %}
  24.         {% if page.product.calculatedPrice.referencePrice %}
  25.             <th scope="col" class="product-block-prices-cell">
  26.                 {{ "detail.dataColumnReferencePrice"|trans|sw_sanitize }}
  27.             </th>
  28.         {% endif %}
  29.     </tr>
  30. {% endblock %}
  31. {% block page_product_detail_price_block_table_body_cell_price %}
  32.     {{ parent() }}
  33.     {% if page.product.calculatedPrices.extensions.acris_rrp_price_exists_struct.getRrpPriceExists() %}
  34.         <td class="product-block-prices-cell">
  35.             {% if context.extensions.acris_rrp_rule_struct.rrpRule is not empty and context.extensions.acris_rrp_rule_struct.rrpRule.active and context.extensions.acris_rrp_rule_struct.rrpRule.detailDisplay %}
  36.                 {% sw_include "@Storefront/storefront/utilities/acris-rrp-table.html.twig" with { price: price, rrpPriceRule: context.extensions.acris_rrp_rule_struct.rrpRule } %}
  37.             {% endif %}
  38.         </td>
  39.     {% endif %}
  40. {% endblock %}
  41. {% block page_product_detail_price_content %}
  42.     {% if price and context.extensions.acris_rrp_rule_struct.rrpRule is not empty and context.extensions.acris_rrp_rule_struct.rrpRule.active and context.extensions.acris_rrp_rule_struct.rrpRule.detailDisplay %}
  43.         {% sw_include "@Storefront/storefront/utilities/acris-rrp.html.twig" with { price: price.extensions.acris_rrp_price_price_struct, rrpPriceRule: context.extensions.acris_rrp_rule_struct.rrpRule, rrpPriceHide: price.extensions.acris_rrp_price_hide_struct.rrpPriceHide } %}
  44.     {% endif %}
  45.     {{ parent() }}
  46. {% endblock %}