custom/plugins/TdsOrlob/src/Resources/views/storefront/component/product/listing.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/listing.html.twig' %}
  2. {% block element_product_listing_wrapper_content %}
  3.     {# {{dump(page.cmsPage.name, context.currentCustomerGroup.name)}} #}
  4.     {% if page.cmsPage.name == 'Mitarbeiter2025' && context.customer.customFields.custom_customer_admin != true %}
  5.     
  6.             <div style="text-align: center;">
  7.                 <b style="font-size: 24px">Hinweis:</b><br><br>Das ist unser Adminbereich. Btte log dich als Admin User im Frontend an. Falls du noch keine Admin User hast, dann erstelle einen Kunden und setze die Kundengruppe auf Admin.<br><br>
  8.                 <div>
  9.                     <a class="btn btn-primary" href="/account/login" target="_self">Anmeldung/Registrierung</a><br>
  10.                 </div>
  11.             </div>
  12.     {# {% elseif context.currentCustomerGroup.id =='cfbd5018d38d41d8adca10d94fc8bdd6' %}
  13.     
  14.         <div style="text-align: center;"></b>
  15.         <br>
  16.         <br>
  17.             <b style="font-size: 24px">Hinweis:</b>
  18.         <br>
  19.         <br>Für eine komplette Einsicht unserer Artikel ist eine Registrierung als Händler erforderlich! Zur Anmeldung und Registrierung gelangen Sie über folgenden Link:<br>
  20.         <br>
  21.         <div>
  22.             <a class="btn btn-primary" href="/account/login" target="_self">Anmeldung/Registrierung</a>
  23.             <br></div>
  24.         </div> #}
  25.                 
  26.     {% else %}
  27.     
  28.         {{ parent() }}
  29.         
  30.     {% endif %}
  31. {% endblock %}
  32. {% block element_product_listing_col %}
  33.     {% for product in searchResult %}
  34.         {# {{ dump(product.customFields.custom_article_example_article) }} #}
  35.         {% if product.customFields.custom_article_example_article != true or context.customer.customFields.custom_customer_admin == true %}
  36.             <div class="cms-listing-col {{ listingColumns }}">
  37.                 {% block element_product_listing_box %}
  38.                     {% sw_include '@Storefront/storefront/component/product/card/box.html.twig' with {
  39.                         'layout': boxLayout,
  40.                         'displayMode': displayMode
  41.                     } %}
  42.                 {% endblock %}
  43.             </div>
  44.         {% endif %}
  45.     {% endfor %}
  46. {% endblock %}
  47.