Contacts

Categoría
No se encontraron facetas.
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> productDetail.categories  [in template "96245213938768#20119#39000" at line 35, column 41]

----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: productCategories = productDetail.cat...  [in template "96245213938768#20119#39000" at line 35, column 21]
----
1<style> 
2    .badge { 
3        font-size: .8rem; 
4        padding: 10px; 
5
6    .card-title { 
7        font-size: 1rem; 
8
9    .custom-checkbox label { 
10        padding-top:0.125rem; 
11
12    .product-category { 
13        font-size: 1rem; 
14
15    .product-spec { 
16        font-size: 0.8rem; 
17
18    .product-specs { 
19        min-height: 1.5rem; 
20
21</style> 
22<div class="product-card-tiles"> 
23    <div class="row"> 
24        <#if entries?has_content> 
25            <#list entries as curCPCatalogEntry> 
26                <#assign 
27                    commerceContext = renderRequest.getAttribute("COMMERCE_CONTEXT") 
28                    friendlyURL = cpContentHelper.getFriendlyURL(curCPCatalogEntry, themeDisplay) 
29                    productId = curCPCatalogEntry.getCProductId() 
30                    productName = curCPCatalogEntry.getName() 
31                    accountEntryId = commerceContext.getAccountEntry().getAccountEntryId() 
32                    channelId = commerceContext.getCommerceChannelId() 
33                    defaultImageURL = cpContentHelper.getDefaultImageFileURL(accountEntryId, curCPCatalogEntry.getCPDefinitionId()) 
34                    productDetail = restClient.get("/headless-commerce-delivery-catalog/v1.0/channels/${channelId}/products/${productId}?accountId=${accountEntryId}&nestedFields=productSpecifications,categories") 
35                    productCategories = productDetail.categories 
36                /> 
37                <a class="col-4" href="${friendlyURL}"> 
38                    <div class="card product-card shadow-sm"> 
39                        <img class="card-img-top" src="${defaultImageURL}" alt="${productName}" /> 
40                        <div class="px-3 py-2"> 
41                            <h5 class="card-title text-truncate">${productName}</h5> 
42                            <#if productCategories?has_content> 
43                                <#assign categoryCount = 0 /> 
44                                <#list productCategories as category> 
45                                    <#if categoryCount gt 0> 
46
47                                    </#if> 
48                                    <span class="product-category mb-1">${category.name}</span> 
49                                    <#assign categoryCount++ /> 
50                                </#list> 
51                            </#if> 
52                        </div> 
53                    </div> 
54                </a> 
55            </#list> 
56        </#if> 
57    </div> 
58</div>