custom/static-plugins/LDSCustom/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_was_price_wrapper %}
  3.     <span class="product-detail-list-price-wrapper">
  4.         {% if beforeListPriceSnippetExists %}
  5.             {{"listing.beforeListPrice"|trans|trim}}
  6.         {% endif %}
  7.         <span {% if not (afterListPriceSnippetExists or beforeListPriceSnippetExists) %} class="list-price-price" {% endif %}>{{ listPrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}</span>
  8.         {% if afterListPriceSnippetExists %}
  9.             {{"listing.afterListPrice"|trans|trim}}
  10.         {% endif %}
  11.     </span>
  12. {% endblock %}
  13. {% block page_product_detail_price_block_table_head_inner %}
  14.     <tr class="product-block-prices-row">
  15.         <th scope="col" class="product-block-prices-cell">
  16.             {{ "detail.dataColumnQuantity"|trans|sw_sanitize }}
  17.         </th>
  18.         <th scope="col" class="product-block-prices-cell" style="padding-left: 2px;">
  19.             {{ "detail.dataColumnPrice"|trans|sw_sanitize }}
  20.         </th>
  21.         {% if page.product.calculatedPrice.referencePrice %}
  22.             <th scope="col" class="product-block-prices-cell">
  23.                 {{ "detail.dataColumnReferencePrice"|trans|sw_sanitize }}
  24.             </th>
  25.         {% else %}
  26.             <th class="product-block-prices-cell"></th>
  27.         {% endif %}
  28.     </tr>
  29. {% endblock %}
  30. {% block page_product_detail_price_block_table_body_cell_price %}
  31.     <td class="product-block-prices-cell" style="padding-left: 38px;">
  32.         {% sw_include '@Storefront/storefront/component/product/block-price.html.twig' with {
  33.             price: price
  34.         } only %}
  35.     </td>
  36. {% endblock %}
  37. {% block page_product_detail_price_block_table_body_cell_reference_price %}
  38.     {% if price.referencePrice is not null %}
  39.         <td class="product-block-prices-cell product-block-prices-cell-thin">
  40.             {{ price.referencePrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}
  41.             /
  42.             {{ price.referencePrice.referenceUnit }}
  43.             {{ price.referencePrice.unitName }}
  44.         </td>
  45.     {% else %}
  46.         <td class="product-block-prices-cell"></td>
  47.     {% endif %}
  48. {% endblock %}