{"action":"opened","issue":{"url":"https://api.github.com/repos/commercetools/commercetools-sunrise-ios/issues/31","repository_url":"https://api.github.com/repos/commercetools/commercetools-sunrise-ios","labels_url":"https://api.github.com/repos/commercetools/commercetools-sunrise-ios/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/commercetools/commercetools-sunrise-ios/issues/31/comments","events_url":"https://api.github.com/repos/commercetools/commercetools-sunrise-ios/issues/31/events","html_url":"https://github.com/commercetools/commercetools-sunrise-ios/issues/31","id":160391588,"number":31,"title":"Properly show cart discounts","user":{"login":"nikola-mladenovic","id":14024032,"avatar_url":"https://avatars.githubusercontent.com/u/14024032?v=3","gravatar_id":"","url":"https://api.github.com/users/nikola-mladenovic","html_url":"https://github.com/nikola-mladenovic","followers_url":"https://api.github.com/users/nikola-mladenovic/followers","following_url":"https://api.github.com/users/nikola-mladenovic/following{/other_user}","gists_url":"https://api.github.com/users/nikola-mladenovic/gists{/gist_id}","starred_url":"https://api.github.com/users/nikola-mladenovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikola-mladenovic/subscriptions","organizations_url":"https://api.github.com/users/nikola-mladenovic/orgs","repos_url":"https://api.github.com/users/nikola-mladenovic/repos","events_url":"https://api.github.com/users/nikola-mladenovic/events{/privacy}","received_events_url":"https://api.github.com/users/nikola-mladenovic/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercetools/commercetools-sunrise-ios/labels/Cart","name":"Cart","color":"5319e7"},{"url":"https://api.github.com/repos/commercetools/commercetools-sunrise-ios/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"lauraluiz","id":1917621,"avatar_url":"https://avatars.githubusercontent.com/u/1917621?v=3","gravatar_id":"","url":"https://api.github.com/users/lauraluiz","html_url":"https://github.com/lauraluiz","followers_url":"https://api.github.com/users/lauraluiz/followers","following_url":"https://api.github.com/users/lauraluiz/following{/other_user}","gists_url":"https://api.github.com/users/lauraluiz/gists{/gist_id}","starred_url":"https://api.github.com/users/lauraluiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauraluiz/subscriptions","organizations_url":"https://api.github.com/users/lauraluiz/orgs","repos_url":"https://api.github.com/users/lauraluiz/repos","events_url":"https://api.github.com/users/lauraluiz/events{/privacy}","received_events_url":"https://api.github.com/users/lauraluiz/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/commercetools/commercetools-sunrise-ios/milestones/2","html_url":"https://github.com/commercetools/commercetools-sunrise-ios/milestones/Nice-to-have","labels_url":"https://api.github.com/repos/commercetools/commercetools-sunrise-ios/milestones/2/labels","id":1803952,"number":2,"title":"Nice-to-have","description":"","creator":{"login":"lauraluiz","id":1917621,"avatar_url":"https://avatars.githubusercontent.com/u/1917621?v=3","gravatar_id":"","url":"https://api.github.com/users/lauraluiz","html_url":"https://github.com/lauraluiz","followers_url":"https://api.github.com/users/lauraluiz/followers","following_url":"https://api.github.com/users/lauraluiz/following{/other_user}","gists_url":"https://api.github.com/users/lauraluiz/gists{/gist_id}","starred_url":"https://api.github.com/users/lauraluiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauraluiz/subscriptions","organizations_url":"https://api.github.com/users/lauraluiz/orgs","repos_url":"https://api.github.com/users/lauraluiz/repos","events_url":"https://api.github.com/users/lauraluiz/events{/privacy}","received_events_url":"https://api.github.com/users/lauraluiz/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":1,"state":"open","created_at":"2016-06-02T08:02:27Z","updated_at":"2016-06-15T10:42:34Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-06-15T10:42:34Z","updated_at":"2016-06-15T10:42:34Z","closed_at":null,"body":"For line item discounts, on the cart screen, for each line item we show the price before the discount, with a strikethrough.\r\n\r\nThe UX problem arises when we have a cart discount, and it applies to some line items. Currently, we don't show the old price with a strikethrough, just a lower price in total section.\r\nThe issue here is that the cart discount sometimes won't be applied to the entire quantity of that particular line item, so how do we show that? Also, it's possible to have line item discount + cart discount for a couple of pieces of that item as well. Another tricky use case for user experience.\r\n\r\nTo sum up the current UX visually:\r\n\r\nCell with line item discount:\r\n<img width=\"365\" alt=\"screen shot 2016-06-15 at 12 39 13 pm\" src=\"https://cloud.githubusercontent.com/assets/14024032/16076949/33c07eb8-32f6-11e6-97cf-13fcf67abd1b.png\">\r\n\r\nCell with cart discount applied:\r\n<img width=\"371\" alt=\"screen shot 2016-06-15 at 12 41 48 pm\" src=\"https://cloud.githubusercontent.com/assets/14024032/16077014/911f9148-32f6-11e6-8760-b0d0789d7945.png\">\r\n"}}
{"actor":{"display_login":"nikola-mladenovic"}}