Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6631

Optimize ShoppingCart.removeCartItem (skip price calc and inventory check)

Details

    • Community Day 3 - 2015

    Description

      Based on the standard parameter completion from the overloaded API of ShoppingCartItem.setQuantity, the use of the ShoppingCart.removeCartItem method leads to an unnecessary price calculation and inventory check for the item being removed.
      By using the setQuantity method with full parameter list in this case, this can be avoided.

      Attachments

        Activity

          mbrohl Michael Brohl added a comment -

          Fixed in
          trunk r1704000
          release branch 14.12 r1704001
          release branch 13.07 r1704002
          release branch 12.04 r1704003

          Thanks Martin!

          mbrohl Michael Brohl added a comment - Fixed in trunk r1704000 release branch 14.12 r1704001 release branch 13.07 r1704002 release branch 12.04 r1704003 Thanks Martin!

          People

            mbrohl Michael Brohl
            mbecker Martin Becker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: