{% sw_extends '@Storefront/storefront/page/content/index.html.twig' %}{% block page_content %}{% include '@LeadManager/storefront/page/loading/loading.html.twig' %}{# INFO: Delete breadcrumb #}<div class="cms-page">{% block page_content_blocks %}{% sw_include "@Storefront/storefront/page/content/detail.html.twig" with {'cmsPage': page.cmsPage} %}{% endblock %}</div>{% endblock %}{% block base_body %}{{ parent() }}<script type="text/javascript">let envChannel = "d";if ( window.innerWidth <= 1024 && window.innerWidth >= 768 ) {envChannel = "t";} else if ( window.innerWidth <= 768 ){envChannel = "m";}let listProducts = [];let productBoxes = document.querySelectorAll('.cms-element-virgin-product-box');let listProductCurrentPriceTf = '';for (let i = 0; i < productBoxes.length; ++i) {if (productBoxes[i].querySelector('.product-price')) {listProductCurrentPriceTf = productBoxes[i].querySelector('.product-price');} else if (productBoxes[i].querySelector('.total-price-discount')) {listProductCurrentPriceTf = productBoxes[i].querySelector('.total-price-discount');} else {let totalPriceBase = productBoxes[i].querySelectorAll('.total-price-base');if (totalPriceBase.length > 1) {listProductCurrentPriceTf = totalPriceBase[1];} else {listProductCurrentPriceTf = totalPriceBase[0];}}listProducts.push({list_product_id: productBoxes[i].querySelector('input[name="product-id"]').value,list_product_name: productBoxes[i].querySelector('input[name="product-name"]').value,list_product_currentprice_tf: listProductCurrentPriceTf.innerText.match(/[+-]?\d+(\.\d+)?/)[0],list_product_url_page: '',list_product_url_picture: '',});}var tc_vars = {env_template : "listing",env_channel : envChannel,env_work : "{{ app.request.server.get('APP_ENV') }}",env_language : "{{ tagCommanderVariables['envLanguage'] }}",env_country : "{{ tagCommanderVariables['envCountry'] }}",env_currency : "{{ tagCommanderVariables['envCurrency'] }}",user_id : "{{ tagCommanderVariables['userId'] }}",user_email : "{{ tagCommanderVariables['userEmail'] }}",category_id : "{{ tagCommanderVariables['categoryId'] }}",category_name : "{{ tagCommanderVariables['categoryName'] }}",list_products : listProducts}function tagCommanderEventDatalayerTrigger(product) {if ("undefined" === typeof tC) {return;}let productVirginExerpType = product.customFields['virgin_exerp_type'];if (productVirginExerpType === 'EFT') {tC.event.acqMens(this,{'id': 'AcqMens','user_email': "{{ tagCommanderVariables['userEmail'] }}",'product_id': product.productNumber,'product_sku': product.name,'product_name': product.name,'product_originalprice_ati': product.price[0].gross,'product_discount_ati': '','product_currentprice_tf': '','product_url_page': '','product_url_picture': ''});} else if (productVirginExerpType === 'CASH') {tC.event.acqAnn(this,{'id': 'AcqAnn','user_email': "{{ tagCommanderVariables['userEmail'] }}",'product_id': product.productNumber,'product_sku': product.name,'product_name': product.name,'product_originalprice_ati': product.price[0].gross,'product_discount_ati': '','product_currentprice_tf': '','product_url_page': '','product_url_picture': ''});} else {tC.event.acqGen(this,{'id': 'AcqGen','user_email': "{{ tagCommanderVariables['userEmail'] }}",'product_id': product.productNumber,'product_sku': product.name,'product_name': product.name,'product_originalprice_ati': product.price[0].gross,'product_discount_ati': '','product_currentprice_tf': '','product_url_page': '','product_url_picture': ''});}}</script>{% endblock %}