From user-return-54177-archive-asf-public=cust-asf.ponee.io@ofbiz.apache.org Mon Aug 27 12:55:24 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 17157180674 for ; Mon, 27 Aug 2018 12:55:23 +0200 (CEST) Received: (qmail 48509 invoked by uid 500); 27 Aug 2018 10:55:23 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Delivered-To: moderator for user@ofbiz.apache.org Received: (qmail 49647 invoked by uid 99); 27 Aug 2018 09:58:17 -0000 X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.989 X-Spam-Level: * X-Spam-Status: No, score=1.989 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=udyogmandir-in.20150623.gappssmtp.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udyogmandir-in.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=AgNDVBPpYq35V6ph7a3xXyP6OnIO8yWrtSW4b74uhlU=; b=RPTMTkWjKlJU21wHOw9fyPzlXPfqEkn/G+UAXnxspAvWYVtKvGRabNc7t7G/nuErhq vh9iCZqU3YwyWQwFGtbLCrFwTczB+4A4lw2Z7p6POViyuEk/LZsc8QO8mI2+my3GlW+s DUr2DUMBQJaBCX8nbvkSuwNWPmwQl+1N57bGRzdUhlTR3ai4M0tbd0C9GwetOIuQmSDZ 5v2w2VIOicfPLTcUjXadQ/MKQ2xMPK2u241ygN/gN4B+qSFJ7dPBHD2LxpT9oIaGt2GP 0+iDrOIIWK1rx+innezLgtg3DhHZ4QiL+LgPvZke8u+Q5X6p0OeMTCX7oYZ3KhDaU4Vq Fnog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=AgNDVBPpYq35V6ph7a3xXyP6OnIO8yWrtSW4b74uhlU=; b=kXROM2WpAELsREEimzs5QmX7U3DWAvSTPf3PVG9B0HGVuNk7guEcjAhQK5+XAm8oH9 kzj6RnE6dlvPF16XoA6KbD8LYj27Hx0ioqSQnmYqaOqDsE9p1MLk3X/inwQAeMPBpfa0 0taV3v2Zz5x7v6DkwKDsr4GWjmGzv3diluj+5vT9mhY0Ymb+VqrEPefdaShAIwXWINq7 lo9bfSH6WupEYDpv2TIi0VPIVSQCNClMH5KCJkErSmE2G3hY2Xid9Iwfrx/QxAi5xj98 kOAFktn/lXpMye9lOHhhqvw8iHgZsUiOo+53X06vNDlLeMHFtRvVme7DMkwxsmiRvxOs Rvrw== X-Gm-Message-State: APzg51BEdAOe6QKj6VkucVSCLBFkba419wxsbPKZwyoO62KBW43eQarx nIkgrZPTXv+5O5gfbdeW8/0Jd+9rbIIeGUTLve3HrbStD5I= X-Google-Smtp-Source: ANB0VdYGZcb0RnzAVEpP6pWvQ6D3H4RhqnYMTb0Zuwd1rVmUVYSlyoZZa2llm82fAzGkEiBGDZorfDxjnZ1/x7tRts8= X-Received: by 2002:a62:63c2:: with SMTP id x185-v6mr13548666pfb.13.1535363885601; Mon, 27 Aug 2018 02:58:05 -0700 (PDT) MIME-Version: 1.0 From: Shrilesh Korgaonkar Date: Mon, 27 Aug 2018 15:28:04 +0530 Message-ID: Subject: e-commerce To: user@ofbiz.apache.org Content-Type: multipart/alternative; boundary="00000000000000a543057467c391" --00000000000000a543057467c391 Content-Type: text/plain; charset="UTF-8" came anyone explains this code
<#list productCategoryList as childCategoryList> <#assign cateCount = 0/> <#list childCategoryList as productCategory>
<#if (cateCount > 2)> <#assign cateCount = 0/> <#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/>
Card image cap

${productCategory.categoryName!productCategoryId}

    <#if productCategoryMembers??> <#assign i = 0/> <#list productCategoryMembers as productCategoryMember> <#if (i > 2)> <#if productCategoryMembers[i]?has_content>
  • More...
  • <#break> <#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}
  • <#assign i = i+1/>

<#assign cateCount = cateCount + 1/>
--00000000000000a543057467c391--