Interface CartItemProductMapper

    • Method Detail

      • mapProductToCartItem

        void mapProductToCartItem​(com.broadleafcommerce.cart.client.domain.CartItem cartItem,
                                  Product product,
                                  @Nullable
                                  Variant variant,
                                  @Nullable
                                  com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Maps specific Product and Variant information into the CartItem.
        Parameters:
        cartItem - the cart item to map information into
        product - the product to map information from
        variant - the variant to map information from, if available
        contextInfo - Context information around sandbox and multitenant state