<#list productCategoryList as childCategoryList>
<#assign cateCount = 0/>
<#list childCategoryList as productCategory>
<#if (cateCount > 2)>
<#assign cateCount = 0/>
#if>
<#assign productCategoryId = productCategory.productCategoryId/>
<#assign categoryImageUrl = "/images/defaultImage.jpg"/>
<#assign productCategoryMembers = delegator
.findByAnd("ProductCategoryAndMember", Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("productCategoryId", productCategoryId),
Static["org.apache.ofbiz.base.util.UtilMisc"].toList("-quantity"), false)/>
<#if productCategory.categoryImageUrl?has_content>
<#assign categoryImageUrl = productCategory.categoryImageUrl/>
<#elseif productCategoryMembers?has_content>
<#assign productCategoryMember =
Static["org.apache.ofbiz.entity.util.EntityUtil"].getFirst(productCategoryMembers)/>
<#assign product = delegator.findOne("Product",
Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("productId", productCategoryMember.productId), false)/>
<#if product.smallImageUrl?has_content>
<#assign categoryImageUrl = product.smallImageUrl/>
#if>
#if>
<#if productCategoryMembers??>
<#assign i = 0/>
<#list productCategoryMembers as productCategoryMember>
<#if (i > 2)>
<#if productCategoryMembers[i]?has_content>
-
More...
#if>
<#break>
#if>
<#if productCategoryMember?has_content>
<#assign product = delegator.findOne("Product",
Static["org.apache.ofbiz.base.util.UtilMisc"].toMap("productId",
productCategoryMember.productId), false)>
-
">
${product.productName!product.productId}
#if>
<#assign i = i+1/>
#list>
#if>
<#assign cateCount = cateCount + 1/>
#list>
#list>