Class MergingCartRestorationStrategy

    • Constructor Detail

      • MergingCartRestorationStrategy

        public MergingCartRestorationStrategy()
    • Method Detail

      • getMostRecentSavedCartGuid

        protected java.lang.String getMostRecentSavedCartGuid​(java.lang.String currentCartGuid)
        Determine the most recent saved cart of a user for the site that is not the current session cart. The current session cart is already owned by the user and for the merging functionality to work correctly the most recently saved cart must be determined. getMostRecentCartGuidForUser(excludedCartsGuid) returns the cart guid which is ordered by modified time and is not the session cart.
        Parameters:
        currentCartGuid -
        Returns:
        most recently saved cart guid