ecx:productCatalog
    • 1 Minute to read
    • Dark
      Light

    ecx:productCatalog

    • Dark
      Light

    Article summary

    Functions

    Product Catalog

    This function fetches a specific product by its product SKU from the product catalog. The product doesn't have to be (but can be) on any wishlist or in the abandoned cart of any user. The product is detached here from any specific user.

    <%${ecx:productCatalog('aaa-bbb-ccc','productName')}%>

    Wishlist

    This function fetches all products which are on the contact's wishlist. The product to be fetched must be both in the product catalog, and on the wishlist under the same product SKU.

    <%ForEach var='wishlistProduct' items="${user.wishlistProducts}" %>
    <%${wishlistProduct['productName']}%>
    <%/ForEach%>

    Abandoned Cart

    This function fetches all products which are in the contact's abandoned cart. The product to be fetched must be both in the product catalog, and in the abandoned cart under the same product SKU.

    <%ForEach var='abanonedCartProduct' items="${user.abandonedCartProducts}" %>
    <%${abanonedCartProduct['productName']}%>
    <%/ForEach%>

    Available properties

    Name

    Type

    productSKU

    String

    productName

    String

    localizedProductNames

    Map<String, String>

    productPrice

    Float

    localizedProductPrices

    Map<String, Float>

    variant

    Map<String, String>

    stockTotal

    Integer

    productURL

    String

    imageURL

    String

    zoomImageURL

    String

    brand

    String

    category

    String

    msrp

    Float

    localizedMsrp

    Map<String, Float>

    description

    String

    localizedDescriptions

    Map<String, String>

    Related Topics

    ecx:productCatalog: Localized Property Names


    Was this article helpful?