custom/plugins/Theme3S/src/Resources/views/storefront/component/buy-widget/buy-widget.html.twig line 1

  1. {% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget.html.twig' %}
  2. {% block buy_widget %}
  3. <div id="bodyId" class="product-detail-buy{% if elementId %}-{{ elementId }}{% endif %} js-magnifier-zoom-image-container">
  4. {% block buy_widget_rich_snippets %}
  5. {% block buy_widget_rich_snippets_brand %}
  6. {% if product.manufacturer %}
  7. <div itemprop="brand" itemtype="https://schema.org/Brand" itemscope>
  8. <meta itemprop="name" content="{{ product.manufacturer.translated.name }}" />
  9. </div>
  10. {% endif %}
  11. {% endblock %}
  12. {% block buy_widget_rich_snippets_gtin13 %}
  13. {% if product.ean %}
  14. <meta itemprop="gtin13"
  15. content="{{ product.ean }}"/>
  16. {% endif %}
  17. {% endblock %}
  18. {% block buy_widget_rich_snippets_mpn %}
  19. {% if product.manufacturerNumber %}
  20. <meta itemprop="mpn"
  21. content="{{ product.manufacturerNumber }}"/>
  22. {% endif %}
  23. {% endblock %}
  24. {% block buy_widget_rich_snippets_weight %}
  25. {% if product.weight %}
  26. <meta itemprop="weight"
  27. content="{{ product.weight }} kg"/>
  28. {% endif %}
  29. {% endblock %}
  30. {% block buy_widget_rich_snippets_height %}
  31. {% if product.height %}
  32. <meta itemprop="height"
  33. content="{{ product.height }} mm"/>
  34. {% endif %}
  35. {% endblock %}
  36. {% block buy_widget_rich_snippets_width %}
  37. {% if product.width %}
  38. <meta itemprop="width"
  39. content="{{ product.width }} mm"/>
  40. {% endif %}
  41. {% endblock %}
  42. {% block buy_widget_rich_snippets_depth %}
  43. {% if product.length %}
  44. <meta itemprop="depth"
  45. content="{{ product.length }} mm"/>
  46. {% endif %}
  47. {% endblock %}
  48. {% block buy_widget_rich_snippets_release_date %}
  49. <meta itemprop="releaseDate"
  50. content="{{ product.releaseDate|format_date(pattern="Y-MM-dd", locale=app.request.locale) }}"/>
  51. {% endblock %}
  52. {% endblock %}
  53. {% if not feature('FEATURE_NEXT_16992') %}
  54. {# @deprecated tag:v6.5.0 tag:)(FEATURE_NEXT_16992) - Block will be removed in v6.5.0 #}
  55. {% block buy_widget_not_available %}
  56. {% endblock %}
  57. {% endif %}
  58. <script>
  59. /*
  60. setSortingWrapperHeight();
  61. function setSortingWrapperHeight(){
  62. var Cartheader = $("#ShopIcons").html();
  63. $("#ShopIconInner").css("top", "45px");
  64. $("#ShopIconInner").css("right", "0px");
  65. }
  66. */
  67. </script>
  68. <div class="productLogoContainer">
  69. {% for group in product.sortedProperties %}
  70. {% if group.name == 'Logo' %}
  71. {% for option in group.options %}
  72. {% set first = 'bundles/theme3s/images/' %}
  73. {% if option.translated.name == 'multi-econ.png' %}{% set second = "MULTI-Econ-schwarz.svg" %}{% endif %}
  74. {% if option.translated.name == 'multi-splash.png' %}{% set second = "MULTI-Splash-schwarz.svg" %}{% endif %}
  75. {% if option.translated.name == 'multi-tec.png' %}{% set second = "MULTI-Tec-schwarz.svg" %}{% endif %}
  76. {% if option.translated.name == 'protec-plus.png' %}{% set second = "Protec_Plus.svg" %}{% endif %}
  77. {% if option.translated.name == 'protec-classic.png' %}{% set second = "Protec_Classic.svg" %}{% endif %}
  78. {% if option.translated.name == 'protec-comfort.png' %}{% set second = "Protec_Comfort.svg" %}{% endif %}
  79. {% if option.translated.name == 'prochem-1.png' %}{% set second = "ProChem_I_Logo.svg" %}{% endif %}
  80. {% if option.translated.name == 'prochem-2.png' %}{% set second = "ProChem_II_Logo_k.svg" %}{% endif %}
  81. {% if option.translated.name == 'prochem-3.png' %}{% set second = "ProChem_III_Logo_k.svg" %}{% endif %}
  82. {% if option.translated.name == 'prochem-5.png' %}{% set second = "ProChem_V_Logo_k.svg" %}{% endif %}
  83. {% if option.translated.name == 'prochem-6.png' %}{% set second = "ProChem_VI_Logo_k.svg" %}{% endif %}
  84. {% set url = "#{first}#{second}" %}
  85. {% if second != '' %}
  86. <img class="productLogoImage" src="{{ absolute_url(asset(url)) }}">
  87. {% endif %}
  88. {% endfor %}
  89. {% endif %}
  90. {% endfor %}
  91. </div>
  92. <div class="prodcttitle"><h1>{{ element.data.product.translated.name }}</h1></div>
  93. {% set bWappen = 0 %}
  94. {% for group in product.sortedProperties %}
  95. {% if group.description == 'Schutztypen' %}
  96. {% set bWappen = 1 %}
  97. {% endif %}
  98. {% if group.description == 'Protection types' %}
  99. {% set bWappen = 1 %}
  100. {% endif %}
  101. {% endfor %}
  102. {% if page.header.activeLanguage.translationCode.code == 'en-GB' %}
  103. {% set Title = "Protection types" %}
  104. {% elseif page.header.activeLanguage.translationCode.code == 'nl-NL' %}
  105. {% set Title = "Soorten bescherming" %}
  106. {% elseif page.header.activeLanguage.translationCode.code == 'es-ES' %}
  107. {% set Title = "Tipos de protección" %}
  108. {% elseif page.header.activeLanguage.translationCode.code == 'fr-FR' %}
  109. {% set Title = "Types de protection" %}
  110. {% elseif page.header.activeLanguage.translationCode.code == 'it-IT' %}
  111. {% set Title = "Tipi di protezione" %}
  112. {% else %}
  113. {% set Title = "Schutztypen" %}
  114. {% endif %}
  115. {% if bWappen == 1 %}
  116. <div class="CatName"><div class="congiguratorname">{{ Title }}</div><!--<div onclick="run()" class="informationicon">i</div>--></div>
  117. <div class="clearingItem"></div>
  118. {% endif %}
  119. <div class="product-wappen-wrapper">
  120. {% set en11491 = "noactive" %}
  121. {% set en11495 = "noactive" %}
  122. {% set en14126 = "noactive" %}
  123. {% set en10732 = "noactive" %}
  124. {% set typ1 = "noactive" %}
  125. {% set typ2 = "noactive" %}
  126. {% set typ3 = "noactive" %}
  127. {% set typ4 = "noactive" %}
  128. {% set typ5 = "noactive" %}
  129. {% set typ6 = "noactive" %}
  130. {% set kat3 = "noactive" %}
  131. {% for group in product.sortedProperties %}
  132. {% for option in group.options %}
  133. {% if option.translated.name == 'EN 1149-1' %}
  134. {% set en11491 = "active" %}
  135. {% endif %}
  136. {% if option.translated.name == 'EN 1149-5' %}
  137. {% set en11495 = "active" %}
  138. {% endif %}
  139. {% if option.translated.name == 'EN 14126' %}
  140. {% set en14126 = "active" %}
  141. {% endif %}
  142. {% if option.translated.name == 'EN 1073-2' %}
  143. {% set en10732 = "active" %}
  144. {% endif %}
  145. {% if option.translated.name == 'Typ 1' %}
  146. {% set typ1 = "active" %}
  147. {% endif %}
  148. {% if option.translated.name == 'Typ 2' %}
  149. {% set typ1 = "active" %}
  150. {% endif %}
  151. {% if option.translated.name == 'Typ 3' %}
  152. {% set typ3 = "active" %}
  153. {% endif %}
  154. {% if option.translated.name == 'Typ 4' %}
  155. {% set typ4 = "active" %}
  156. {% endif %}
  157. {% if option.translated.name == 'Typ 5' %}
  158. {% set typ5 = "active" %}
  159. {% endif %}
  160. {% if option.translated.name == 'Typ 6' %}
  161. {% set typ6 = "active" %}
  162. {% endif %}
  163. {% if option.translated.name == 'Kat III' %}
  164. {% set kat3 = "active" %}
  165. {% endif %}
  166. {% endfor %}
  167. {% endfor %}
  168. <div id="en11491" class="wappen-icon en11491 {{ en11491 }}"></div>
  169. <div id="en11495" class="wappen-icon en11495 {{ en11495 }}"></div>
  170. <div id="en14126" class="wappen-icon en14126 {{ en14126 }}"></div>
  171. <div id="en10732" class="wappen-icon en10732 {{ en10732 }}"></div>
  172. <div id="typ1" class="wappen-icon typ1 {{ typ1 }}"></div>
  173. <div id="typ2" class="wappen-icon typ2 {{ typ2 }}"></div>
  174. <div id="typ3" class="wappen-icon typ3 {{ typ3 }}"></div>
  175. <div id="typ4" class="wappen-icon typ4 {{ typ4 }}"></div>
  176. <div id="typ5" class="wappen-icon typ5 {{ typ5 }}"></div>
  177. <div id="typ6" class="wappen-icon typ6 {{ typ6 }}"></div>
  178. <div id="kat3" class="wappen-icon kat3 {{ kat3 }}"></div>
  179. <div class="clearingItem"></div>
  180. {% if page.header.activeLanguage.translationCode.code == 'en-GB' %}
  181. {% set ProductDetailTooltipen11491 = "surface resistivity" %}
  182. {% set ProductDetailTooltipen11495 = "material requirements" %}
  183. {% set ProductDetailTooltipen14126 = "biological protection" %}
  184. {% set ProductDetailTooltipen10732 = "contaminated radioactive particles" %}
  185. {% set ProductDetailTooltiptyp1 = "gases" %}
  186. {% set ProductDetailTooltiptyp3 = "liquids" %}
  187. {% set ProductDetailTooltiptyp4 = "sprays" %}
  188. {% set ProductDetailTooltiptyp5 = "solid fibers" %}
  189. {% set ProductDetailTooltiptyp6 = "liquid chemicals" %}
  190. {% set ProductDetailTooltipkat3 = "physical damage to health" %}
  191. {% elseif page.header.activeLanguage.translationCode.code == 'nl-NL' %}
  192. {% set ProductDetailTooltipen11491 = "oppervlakte weerstand" %}
  193. {% set ProductDetailTooltipen11495 = "materiële eisen" %}
  194. {% set ProductDetailTooltipen14126 = "biologische bescherming" %}
  195. {% set ProductDetailTooltipen10732 = "besmette radioactieve deeltjes" %}
  196. {% set ProductDetailTooltiptyp1 = "gassen" %}
  197. {% set ProductDetailTooltiptyp3 = "vloeistoffen" %}
  198. {% set ProductDetailTooltiptyp4 = "spuiten" %}
  199. {% set ProductDetailTooltiptyp5 = "stevige vezels" %}
  200. {% set ProductDetailTooltiptyp6 = "vloeibare chemicaliën" %}
  201. {% set ProductDetailTooltipkat3 = "fysieke schade aan de gezondheid" %}
  202. {% elseif page.header.activeLanguage.translationCode.code == 'es-ES' %}
  203. {% set ProductDetailTooltipen11491 = "Resistencia superficial" %}
  204. {% set ProductDetailTooltipen11495 = "Requisitos de materiales" %}
  205. {% set ProductDetailTooltipen14126 = "protección biológica" %}
  206. {% set ProductDetailTooltipen10732 = "partículas radiactivas contaminadas" %}
  207. {% set ProductDetailTooltiptyp1 = "Gas" %}
  208. {% set ProductDetailTooltiptyp3 = "Liquidos" %}
  209. {% set ProductDetailTooltiptyp4 = "Pulverización" %}
  210. {% set ProductDetailTooltiptyp5 = "Partículas sólidas" %}
  211. {% set ProductDetailTooltiptyp6 = "químicos líquidos" %}
  212. {% set ProductDetailTooltipkat3 = "daño a la salud física" %}
  213. {% elseif page.header.activeLanguage.translationCode.code == 'fr-FR' %}
  214. {% set ProductDetailTooltipen11491 = "Résistance superficielle" %}
  215. {% set ProductDetailTooltipen11495 = "Exigences matérielles" %}
  216. {% set ProductDetailTooltipen14126 = "Protection biologique" %}
  217. {% set ProductDetailTooltipen10732 = "particules radioactives contaminées" %}
  218. {% set ProductDetailTooltiptyp1 = "Gaz" %}
  219. {% set ProductDetailTooltiptyp3 = "Liquides" %}
  220. {% set ProductDetailTooltiptyp4 = "Pulvérisation" %}
  221. {% set ProductDetailTooltiptyp5 = "Particules solides" %}
  222. {% set ProductDetailTooltiptyp6 = "produits chimiques liquides" %}
  223. {% set ProductDetailTooltipkat3 = "dommages à la santé physique" %}
  224. {% elseif page.header.activeLanguage.translationCode.code == 'it-IT' %}
  225. {% set ProductDetailTooltipen11491 = "Resistenza superficiale" %}
  226. {% set ProductDetailTooltipen11495 = "Requisiti materiali" %}
  227. {% set ProductDetailTooltipen14126 = "Protezione biologica" %}
  228. {% set ProductDetailTooltipen10732 = "particelle radioattive contaminate" %}
  229. {% set ProductDetailTooltiptyp1 = "Gas" %}
  230. {% set ProductDetailTooltiptyp3 = "Liquidi" %}
  231. {% set ProductDetailTooltiptyp4 = "Spray" %}
  232. {% set ProductDetailTooltiptyp5 = "Particelle solide" %}
  233. {% set ProductDetailTooltiptyp6 = "prodotti chimici liquidi" %}
  234. {% set ProductDetailTooltipkat3 = "danni alla salute fisica" %}
  235. {% else %}
  236. {% set ProductDetailTooltipen11491 = "Oberflächenwiderstand" %}
  237. {% set ProductDetailTooltipen11495 = "Materialanforderungen" %}
  238. {% set ProductDetailTooltipen14126 = "Biologischer Schutz" %}
  239. {% set ProductDetailTooltipen10732 = "kontaminierte radioaktive Partikel" %}
  240. {% set ProductDetailTooltiptyp1 = "Gase" %}
  241. {% set ProductDetailTooltiptyp3 = "Flüssigkeiten" %}
  242. {% set ProductDetailTooltiptyp4 = "Spray" %}
  243. {% set ProductDetailTooltiptyp5 = "Feste Partikel" %}
  244. {% set ProductDetailTooltiptyp6 = "flüssige Chemikalien" %}
  245. {% set ProductDetailTooltipkat3 = "körperliche Gesundheitsschäden" %}
  246. {% endif %}
  247. <script>
  248. $("#en11491").attr('title', '{{ ProductDetailTooltipen11491 }}');
  249. $("#en11495").attr('title', '{{ ProductDetailTooltipen11495 }}');
  250. $("#en14126").attr('title', '{{ ProductDetailTooltipen14126 }}');
  251. $("#en10732").attr('title', '{{ ProductDetailTooltipen10732 }}');
  252. $("#typ1").attr('title', '{{ ProductDetailTooltiptyp1 }}');
  253. $("#typ2").attr('title', '{{ ProductDetailTooltiptyp2 }}');
  254. $("#typ3").attr('title', '{{ ProductDetailTooltiptyp3 }}');
  255. $("#typ4").attr('title', '{{ ProductDetailTooltiptyp4 }}');
  256. $("#typ5").attr('title', '{{ ProductDetailTooltiptyp5 }}');
  257. $("#typ6").attr('title', '{{ ProductDetailTooltiptyp6 }}');
  258. $("#kat3").attr('title', '{{ ProductDetailTooltipkat3 }}');
  259. </script>
  260. </div>
  261. {% block buy_widget_buy_container %}
  262. {% block buy_widget_configurator_include %}
  263. {% if product.parentId and configuratorSettings|length > 0 %}
  264. <div class="product-detail-configurator-container">
  265. {% sw_include '@Storefront/storefront/component/buy-widget/configurator.html.twig' %}
  266. </div>
  267. {% endif %}
  268. {% endblock %}
  269. {% block buy_widget_delivery_informations %}
  270. <div class="product-detail-delivery-information">
  271. {% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
  272. </div>
  273. {% endblock %}
  274. <div itemprop="offers"
  275. itemscope
  276. itemtype="{% if product.calculatedPrices|length > 1 %}http://schema.org/AggregateOffer{% else %}http://schema.org/Offer{% endif %}">
  277. {% block buy_widget_data %}
  278. {% block buy_widget_data_rich_snippet_url %}
  279. <meta itemprop="url"
  280. content="{{ seoUrl('frontend.detail.page', { productId: product.id }) }}"/>
  281. {% endblock %}
  282. {% block buy_widget_data_rich_snippet_price_range %}
  283. {% if product.calculatedPrices|length > 1 %}
  284. {% set lowestPrice = false %}
  285. {% set highestPrice = false %}
  286. {% for price in product.calculatedPrices %}
  287. {% if not lowestPrice or price.unitPrice < lowestPrice %}
  288. {% set lowestPrice = price.unitPrice %}
  289. {% endif %}
  290. {% if not highestPrice or price.unitPrice > highestPrice %}
  291. {% set highestPrice = price.unitPrice %}
  292. {% endif %}
  293. {% endfor %}
  294. <meta itemprop="lowPrice" content="{{ lowestPrice }}"/>
  295. <meta itemprop="highPrice" content="{{ highestPrice }}"/>
  296. <meta itemprop="offerCount" content="{{ product.calculatedPrices|length }}"/>
  297. {% endif %}
  298. {% endblock %}
  299. {% block buy_widget_data_rich_snippet_price_currency %}
  300. <meta itemprop="priceCurrency"
  301. content="{{ context.currency.translated.shortName }}"/>
  302. {% endblock %}
  303. {% block buy_widget_price %}
  304. <div class="product-detail-price-container">
  305. {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-price.html.twig' %}
  306. </div>
  307. {% endblock %}
  308. {% block buy_widget_tax %}
  309. <div class="product-detail-tax-container">
  310. {% if context.taxState == "gross" %}
  311. {% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
  312. {% else %}
  313. {% set taxText = "general.netTaxInformation"|trans|sw_sanitize %}
  314. {% endif %}
  315. <p class="product-detail-tax">
  316. {% block buy_widget_tax_link %}
  317. <a class="product-detail-tax-link"
  318. href="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"
  319. title="{{ taxText }}"
  320. {{ dataBsToggleAttr }}="modal"
  321. data-url="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">
  322. {{ taxText }}
  323. </a>
  324. {% endblock %}
  325. </p>
  326. </div>
  327. {% endblock %}
  328. {% set remoteClickOptions = {
  329. selector: "#review-tab-" ~ product.id,
  330. scrollToElement: true
  331. } %}
  332. {% set reviewTabHref = "#review-tab-" ~ product.id ~ "-pane" %}
  333. {% block buy_widget_reviews %}
  334. {% if product.ratingAverage > 0 and totalReviews > 0 and config('core.listing.showReview') %}
  335. <div class="product-detail-reviews">
  336. {% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
  337. points: product.ratingAverage,
  338. style: 'text-primary'
  339. } %}
  340. <a {{ dataBsToggleAttr }}="tab"
  341. class="product-detail-reviews-link"
  342. data-offcanvas-tabs="true"
  343. data-remote-click="true"
  344. data-remote-click-options='{{ remoteClickOptions|json_encode }}'
  345. href="{{ reviewTabHref }}"
  346. aria-controls="review-tab-pane">
  347. {{ totalReviews }}
  348. {{ "detail.reviewLinkText"|trans({'%count%': totalReviews})|sw_sanitize }}
  349. </a>
  350. </div>
  351. {% endif %}
  352. {% endblock %}
  353. {% endblock %}
  354. {% block buy_widget_buy_form %}
  355. {% if product.active %}
  356. <div class="product-detail-form-container">
  357. {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}
  358. </div>
  359. {% endif %}
  360. {% endblock %}
  361. </div>
  362. {% endblock %}
  363. {% if config('core.cart.wishlistEnabled') %}
  364. {% block buy_widget_wishlist %}
  365. {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
  366. showText: true,
  367. size: 'md',
  368. productId: product.id
  369. } %}
  370. {% endblock %}
  371. {% endif %}
  372. <!-- {% block buy_widget_ordernumber_container %}
  373. {% if product.productNumber %}
  374. <div class="product-detail-ordernumber-container">
  375. {% block buy_widget_ordernumber_label %}
  376. <span class="product-detail-ordernumber-label">
  377. {{ "detail.productNumberLabel"|trans|sw_sanitize }}
  378. </span>
  379. {% endblock %}
  380. {% block buy_widget_ordernumber %}
  381. <meta itemprop="productID"
  382. content="{{ product.id }}"/>
  383. <span class="product-detail-ordernumber"
  384. itemprop="sku">
  385. {{ product.productNumber }}
  386. </span>
  387. {% endblock %}
  388. </div>
  389. {% endif %}
  390. {% endblock %}-->
  391. </div>
  392. {% endblock %}