Briciole di pane

Navigazione categorie commerciali

Contenuto categoria

Zaini e Astucci

Zaini e Astucci

Navigazione categorie commerciali

Si è verificato un errore nell'elaborarazione del modello.
Java method "static pie.commerce.categories.util.CategoriesUtil.getCurrentChannelERC()" threw an exception; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign currentChannelERC = categorie...  [in template "20099#20125#10437389" at line 9, column 9]
----
1<#-- Commerce Categories Navigation Template --> 
2<button id="buttonCategoryMobile" class="btn btn-primary button-category-mobile"> 
3	<span><@liferay.language key="categories"/></span> 
4	<svg id="Icon_Angle_Right" data-name="Icon/AngleRight" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"> 
5		<use href ="${themeDisplay.getPathThemeImages()}/svg/icon_angle_right.svg#Icon_Angle_Right" class="nav-icon" /> 
6	</svg> 
7</button> 
8<div id="${randomNamespace}" class="category-nav-bar list-group"> 
9	<#assign currentChannelERC = categoriesUtil.getCurrentChannelERC() /> 
10	<#assign cnt = 0 /> 
11	<#if entries?has_content> 
12		<#assign entries = categoriesUtil.prepareCategories(entries, currentChannelERC) /> 
13		<#list entries as assetCategory> 
14				<#assign cnt += 1/> 
15				<#assign accordion = "accordion"+ cnt/> 
16				<div id="${accordion}" class="list-group-item p-1"> 
17					<#assign friendlyURL=cpAssetCategoriesNavigationDisplayContext.getFriendlyURL( 
18						assetCategory.getCategoryId(), themeDisplay) /> 
19					<#assign assetCategoryChildList=cpAssetCategoriesNavigationDisplayContext.getChildAssetCategories( 
20						assetCategory.getCategoryId()) /> 
21					<#assign hasChilds=(assetCategoryChildList?size) gt 0 /> 
22					<div class="entry-category"> 
23						<div class="entry-category-link"> 
24								<#if hasChilds> 
25									<#assign cnt +=1 /> 
26									<#assign collapseOne="collapse" + cnt /> 
27									<button class="fbtn btn btn-link" data-toggle="collapse" data-target="#${collapseOne}" aria-expanded="false" aria-controls="${collapseOne}"> 
28										<svg style="pointer-events: none;" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-hidden="true" class="bi bi-caret-right-fill" viewBox="0 1 16 16"> 
29												<path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z" /> 
30										</svg> 
31									</button> 
32									<a href="javascript:void(0)" onclick="updateCategoryURL('${friendlyURL?html}')" class="link-secondary"> 
33										${assetCategory.getName()} 
34									</a> 
35								<#else> 
36									<a href="javascript:void(0)" onclick="updateCategoryURL('${friendlyURL?html}')" class="link-secondary empty-child"> 
37										${assetCategory.getName()} 
38									</a> 
39								</#if> 
40						</div> 
41						<#if hasChilds> 
42								<div id="${collapseOne}" class="collapse" aria-labelledby="headingOne" data-parent="#${accordion}"> 
43									<#assign assetCategoryChildList=categoriesUtil.prepareCategories(assetCategoryChildList, currentChannelERC) /> 
44									<#list assetCategoryChildList as assetCategoryChild> 
45										<#assign cnt +=1 /> 
46										<#assign accordion2="accordion" + cnt /> 
47										<div id="${accordion2}" class="ml-3"> 
48												<#assign friendlyURL_child=cpAssetCategoriesNavigationDisplayContext.getFriendlyURL( 
49													assetCategoryChild.getCategoryId(), themeDisplay) /> 
50												<#assign assetCategoryGrandChildList=cpAssetCategoriesNavigationDisplayContext.getChildAssetCategories( 
51													assetCategoryChild.getCategoryId()) /> 
52												<#assign hasGrandChilds=(assetCategoryGrandChildList?size) gt 0 /> 
53												<div class="entry-category-link"> 
54													<#if hasGrandChilds> 
55														<#assign cnt +=1 /> 
56														<#assign collapseTwo="collapse" + cnt /> 
57														<button class="cbtn btn btn-link collapsed" data-toggle="collapse" data-target="#${collapseTwo}" aria-expanded="false" aria-controls="${collapseTwo}"> 
58															<svg style="pointer-events: none;" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-hidden="true" class="bi bi-caret-right" viewBox="0 1 16 16"> 
59																<path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z" /> 
60															</svg> 
61														</button> 
62														<a href="javascript:void(0)" onclick="updateCategoryURL('${friendlyURL_child}')" class="link-secondary"> 
63															<span> 
64																${assetCategoryChild.getName()} 
65															</span> 
66														</a> 
67													<#else> 
68														<a href="javascript:void(0)" onclick="updateCategoryURL('${friendlyURL_child}')" class="link-secondary empty-child"> 
69															<span> 
70																${assetCategoryChild.getName()} 
71															</span> 
72														</a> 
73													</#if> 
74												</div> 
75												<#if hasGrandChilds> 
76													<div id="${collapseTwo}" class="collapse ml-6" aria-labelledby="headingTwo" data-parent="#${accordion2}"> 
77														<#assign assetCategoryGrandChildList=categoriesUtil.prepareCategories(assetCategoryGrandChildList, currentChannelERC) /> 
78														<#list assetCategoryGrandChildList as assetCategoryGrandChild> 
79																<#assign friendlyURL_grandchild=cpAssetCategoriesNavigationDisplayContext.getFriendlyURL( 
80																	assetCategoryGrandChild.getCategoryId(), themeDisplay) /> 
81																<div class="entry-category-link"> 
82																	<a href="javascript:void(0)" onclick="updateCategoryURL('${friendlyURL_grandchild}')" class="link-secondary"> 
83																		<span> 
84																				${assetCategoryGrandChild.getName()} 
85																		</span> 
86																	</a> 
87																</div> 
88														</#list> 
89													</div> 
90												</#if> 
91										</div> 
92									</#list> 
93								</div> 
94						</#if> 
95					</div> 
96				</div> 
97		</#list> 
98	</#if> 
99</div> 
100 
101<script> 
102 
103	$(document).ready(function () { 
104		var randomNamespace = document.querySelector("#${randomNamespace}"); 
105		 
106		var fatherButtons = $(randomNamespace).find(".fbtn"); 
107		 
108		for (let i = 0; i < fatherButtons.length; i++) { 
109			const dataTarget = fatherButtons[i].getAttribute("data-target");		 
110 
111			fatherButtons[i].addEventListener("click", function() { 
112					const svg = fatherButtons[i].firstElementChild; 
113					const dataId = document.querySelector(dataTarget); 
114 
115					const isShow = dataId.classList.contains("show"); 
116					 
117					if (!isShow) { 
118						svg.innerHTML = ' <path d="M3.204 5h9.592L8 10.481 3.204 5zm-.753.659 4.796 5.48a1 1 0 0 0 1.506 0l4.796-5.48c.566-.647.106-1.659-.753-1.659H3.204a1 1 0 0 0-.753 1.659z"/>';				 
119					} else { 
120						svg.innerHTML = '<path d="m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z"/>'; 
121
122			}); 
123
124		var childButtons = $(randomNamespace).find(".cbtn"); 
125 
126		for (let i = 0; i < childButtons.length; i++) { 
127			const dataTargetChild = childButtons[i].getAttribute("data-target"); 
128			 
129			childButtons[i].addEventListener("click", function() { 
130					const svg = childButtons[i].firstElementChild; 
131					const dataIdChild = document.querySelector(dataTargetChild); 
132					 
133					const isShowChild = dataIdChild.classList.contains("show"); 
134 
135					if (!isShowChild) {					 
136						svg.innerHTML = '<path d = "M3.204 5h9.592L8 10.481 3.204 5zm-.753.659 4.796 5.48a1 1 0 0 0 1.506 0l4.796-5.48c.566-.647.106-1.659-.753-1.659H3.204a1 1 0 0 0-.753 1.659z" / >'; 
137					} else { 
138						svg.innerHTML = '<path d = "m12.14 8.753-5.482 4.796c-.646.566-1.658.106-1.658-.753V3.204a1 1 0 0 1 1.659-.753l5.48 4.796a1 1 0 0 1 0 1.506z" / >'; 
139
140			}); 
141
142 
143		var buttonCategory = $('#buttonCategoryMobile'); 
144		var categoryNavBar = $(".category-nav-bar"); 
145		var iconAngleRight = $('#Icon_Angle_Right') 
146 
147		buttonCategory.on("click", function() { 
148            categoryNavBar.slideToggle("slow", function() { 
149				iconAngleRight.toggleClass("rotate"); 
150			}); 
151        }); 
152	}); 
153 
154	window.updateCategoryURL = function(categoryURL) { 
155		const currentSearchParams = new URLSearchParams(window.location.search); 
156		const newURL = new URL(categoryURL, window.location.origin); 
157		newURL.search = currentSearchParams.toString(); 
158		window.location.href = newURL.toString(); 
159	}; 
160 
161</script> 

Tag Facet

Tag
Tag Facet

Barra di confronto prodotti

Portlet è temporaneamente non disponibile.

Sisters Srl è una realtà consolidata che da 20 anni si occupa della vendita di forniture per ufficio con spirito innovativo proiettata al futuro.

Sisters Srl  | Sede Legale
Via Cesare Battisti 29
40018 San Pietro in Casale (BO)


Sede Operativa
Via XXV Aprile, 46
40057 Granarolo dell'Emilia BO

TEL +39 051 320210
WHASTAPP: +39 345 7201724
eMail: vendite@sistersbo.it

Orari Uffici: 
Lun - Ven: 08:30 - 17:30

 
© Copyright 2024 by Sisters S.r.l. - All rights reserved
Sisters S.r.l. - R.I. BO - N. REA 429992 - PEC sisterssrl@legalmail.it