[ https://issues.apache.org/jira/browse/OFBIZ-4291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13701254#comment-13701254 ]
Nandani Aggarwal commented on OFBIZ-4291: ----------------------------------------- Hello , Thanks for reply. A promotion contains promo code , if required code is yes then we need to apply promo code to avail the promotion.IF Promotion contains two rules : 1.Free gift ..2.Percent discount.so on applying promo code , both rules will get apply ..so when i do unapply both rules sould get unapply so removing all adjusment created becauseof above promotion. My question : on unapplying promo code , both rules dnt get unapply .How may i do this. Thanks Nandani -- Nandani Aggarwal > No method to remove a promo code from the shopping cart > ------------------------------------------------------- > > Key: OFBIZ-4291 > URL: https://issues.apache.org/jira/browse/OFBIZ-4291 > Project: OFBiz > Issue Type: Improvement > Components: order > Affects Versions: Release Branch 10.04 > Reporter: Glyton Camilleri > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: unapplyPromotion.txt, Updated-Ofbiz-4291.patch, > Updated-Ofbiz-4291.patch > > > 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 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira