{"action":"created","issue":{"url":"https://api.github.com/repos/spree/spree/issues/4908","labels_url":"https://api.github.com/repos/spree/spree/issues/4908/labels{/name}","comments_url":"https://api.github.com/repos/spree/spree/issues/4908/comments","events_url":"https://api.github.com/repos/spree/spree/issues/4908/events","html_url":"https://github.com/spree/spree/issues/4908","id":37130342,"number":4908,"title":"Promotion not removed on empty cart action","user":{"login":"jswencki","id":4863463,"avatar_url":"https://avatars.githubusercontent.com/u/4863463?v=3","gravatar_id":"","url":"https://api.github.com/users/jswencki","html_url":"https://github.com/jswencki","followers_url":"https://api.github.com/users/jswencki/followers","following_url":"https://api.github.com/users/jswencki/following{/other_user}","gists_url":"https://api.github.com/users/jswencki/gists{/gist_id}","starred_url":"https://api.github.com/users/jswencki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jswencki/subscriptions","organizations_url":"https://api.github.com/users/jswencki/orgs","repos_url":"https://api.github.com/users/jswencki/repos","events_url":"https://api.github.com/users/jswencki/events{/privacy}","received_events_url":"https://api.github.com/users/jswencki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spree/spree/labels/verified","name":"verified","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-07-03T22:46:57Z","updated_at":"2015-07-28T16:14:41Z","closed_at":null,"body":"NOTE: I will try to do a PR against this in the next week, but because of schedule being crazy, wanted to submit issue so all are aware of it in case I can not.\r\n\r\n**Branch: 2-2-stable**\r\n\r\n**Issue**:\r\nIf promotion (coupon) has been added to a cart, then the cart is cleared, the user can't receive that promotion going forward.\r\n\r\n**Steps**:\r\n* Verify a valid promotion exists in admin\r\n* Add Item to cart\r\n* Apply valid promotion code\r\n* Click the empty cart button\r\n* Add another item to cart\r\n* Apply same promotion code from above\r\n\r\n**Expected**:\r\nPromotion code should be applied again -OR- automatically applied once the product is added to cart since the code already exists.\r\n\r\n**Actual**:\r\nError Received: \"The coupon code has already been applied to this order\" and the customer can not get the discount.\r\n\r\n**Nice To Have** (Will get feedback on IRC)\r\nClear code from input box on error so customer can continue without manually clearing\r\n\r\n**Screenshots**\r\n![screen shot 2014-07-03 at 3 22 37 pm](https://cloud.githubusercontent.com/assets/4863463/3476639/c9d4a548-0303-11e4-9f2b-8f94f16b82a7.png)\r\n\r\n![screen shot 2014-07-03 at 3 23 07 pm](https://cloud.githubusercontent.com/assets/4863463/3476642/d135c4f2-0303-11e4-9839-d72021539eea.png)\r\n\r\n![screen shot 2014-07-03 at 3 23 59 pm](https://cloud.githubusercontent.com/assets/4863463/3476645/d6a164f0-0303-11e4-81c7-9a2265e144f6.png)\r\n"},"comment":{"url":"https://api.github.com/repos/spree/spree/issues/comments/125667105","html_url":"https://github.com/spree/spree/issues/4908#issuecomment-125667105","issue_url":"https://api.github.com/repos/spree/spree/issues/4908","id":125667105,"user":{"login":"robinboening","id":342977,"avatar_url":"https://avatars.githubusercontent.com/u/342977?v=3","gravatar_id":"","url":"https://api.github.com/users/robinboening","html_url":"https://github.com/robinboening","followers_url":"https://api.github.com/users/robinboening/followers","following_url":"https://api.github.com/users/robinboening/following{/other_user}","gists_url":"https://api.github.com/users/robinboening/gists{/gist_id}","starred_url":"https://api.github.com/users/robinboening/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinboening/subscriptions","organizations_url":"https://api.github.com/users/robinboening/orgs","repos_url":"https://api.github.com/users/robinboening/repos","events_url":"https://api.github.com/users/robinboening/events{/privacy}","received_events_url":"https://api.github.com/users/robinboening/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T16:14:41Z","updated_at":"2015-07-28T16:14:41Z","body":"Can someone confirm this is resolved now? /c @jswencki "}}