OFBiz
  1. OFBiz
  2. OFBIZ-4291

No method to remove a promo code from the shopping cart

    Details

    • Type: Improvement Improvement
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Release Branch 10.04
    • Fix Version/s: None
    • Component/s: order
    • Labels:
      None

      Description

      Hi,

      When working with promotions and promo codes in the shopping cart, it seems not possible to remove one specific promo code from the cart neither through the ShoppingCart and its helpers and services, nor through the ProductPromoWorker.
      ShoppingCart has the method

      addProductPromoCode(String productPromoCodeId, LocalDispatcher dispatcher)

      but no method to remove the added PromoCode. Is there any other worker, service or event that can be called to do this? And if not, is there a specifc reason (maybe relating to promotions application rules) for not implementing this?

      Any response is appreciated.

      Thanks

      1. Updated-Ofbiz-4291.patch
        9 kB
        Ankit Jain
      2. Updated-Ofbiz-4291.patch
        9 kB
        Ankit Jain
      3. unapplyPromotion.txt
        3 kB
        Nandani Aggarwal
      4. OFBIZ-4291.patch
        4 kB
        Harsha Chadhar

        Activity

        Jacopo Cappellato made changes -
        Fix Version/s Trunk [ 12311928 ]
        Harsha Chadhar made changes -
        Attachment OFBIZ-4291.patch [ 12592324 ]
        Harsha Chadhar made changes -
        Attachment OFBIZ-4291.patch [ 12593464 ]
        Jacques Le Roux made changes -
        Resolution Implemented [ 10 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Harsha Chadhar made changes -
        Attachment OFBIZ-4291.patch [ 12592324 ]
        Jacques Le Roux made changes -
        Status Patch Available [ 10002 ] Closed [ 6 ]
        Assignee Jacques Le Roux [ jacques.le.roux ]
        Fix Version/s SVN trunk [ 12311928 ]
        Resolution Implemented [ 10 ]
        Ankit Jain made changes -
        Attachment Updated-Ofbiz-4291.patch [ 12585410 ]
        Ankit Jain made changes -
        Attachment Updated-Ofbiz-4291.patch [ 12585222 ]
        Ankit Jain made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Nandani Aggarwal made changes -
        Attachment unapplyPromotion.txt [ 12530898 ]
        Nandani Aggarwal made changes -
        Attachment unapplyPromotion.txt [ 12530897 ]
        Nandani Aggarwal made changes -
        Attachment unapplyPromotion.txt [ 12530897 ]
        Glyton Camilleri made changes -
        Field Original Value New Value
        Fix Version/s SVN trunk [ 12311928 ]
        Glyton Camilleri created issue -

          People

          • Assignee:
            Jacques Le Roux
            Reporter:
            Glyton Camilleri
          • Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:

              Development