Interface CartItemProductService

    • Method Detail

      • populateProductInformation

        @Deprecated
        com.broadleafcommerce.cart.client.domain.CartItem populateProductInformation​(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
                                                                                     Product product,
                                                                                     List<Product> productList,
                                                                                     boolean isAdd)
        Populate product information within the CartItem based on the provided product
        Parameters:
        cartItem - The CartItem that is to be updated with product data
        product - The product that this CartItem is intended to represent
        productList - The products that were retrieved for the add-to-cart, including dependent item products
        isAdd - Whether we are in an add-to-cart flow
        Returns:
        the updated CartItem that now contains Product data
      • populateProductInformation

        com.broadleafcommerce.cart.client.domain.CartItem populateProductInformation​(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
                                                                                     Product product,
                                                                                     List<Product> productList,
                                                                                     boolean isAdd,
                                                                                     @Nullable
                                                                                     com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Populate product information within the CartItem based on the provided product and the merchandising context
        Parameters:
        cartItem - The CartItem that is to be updated with product data
        product - The product that this CartItem is intended to represent
        productList - The products that were retrieved for the add-to-cart, including dependent item products
        isAdd - Whether we are in an add-to-cart flow
        contextInfo - Context information around sandbox and multitenant state
        Returns:
        the updated CartItem that now contains Product data