Class DefaultBroadleafProductService<P extends Product>

    • Constructor Detail

      • DefaultBroadleafProductService

        public DefaultBroadleafProductService()
    • Method Detail

      • determineDependentItemKey

        public String determineDependentItemKey​(@NonNull
                                                @NonNull com.broadleafcommerce.cart.client.domain.CartItem dependantCartItem,
                                                @NonNull
                                                P product,
                                                @Nullable
                                                com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Determines the item key for the dependent cart item.
        Specified by:
        determineDependentItemKey in interface BroadleafProductService<P extends Product>
        Parameters:
        product - The product of the parent cart item
        dependantCartItem - The dependent cart item whose item key is being determined
        Returns:
        the item key for the dependent item
      • hasVariantDistinguishingOptions

        protected boolean hasVariantDistinguishingOptions​(@NonNull
                                                          P product)