{"action":"created","issue":{"url":"https://api.github.com/repos/reactioncommerce/reaction/issues/592","labels_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/592/labels{/name}","comments_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/592/comments","events_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/592/events","html_url":"https://github.com/reactioncommerce/reaction/issues/592","id":122498416,"number":592,"title":"CartWorkflow improvement","user":{"login":"newsiberian","id":11130487,"avatar_url":"https://avatars.githubusercontent.com/u/11130487?v=3","gravatar_id":"","url":"https://api.github.com/users/newsiberian","html_url":"https://github.com/newsiberian","followers_url":"https://api.github.com/users/newsiberian/followers","following_url":"https://api.github.com/users/newsiberian/following{/other_user}","gists_url":"https://api.github.com/users/newsiberian/gists{/gist_id}","starred_url":"https://api.github.com/users/newsiberian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsiberian/subscriptions","organizations_url":"https://api.github.com/users/newsiberian/orgs","repos_url":"https://api.github.com/users/newsiberian/repos","events_url":"https://api.github.com/users/newsiberian/events{/privacy}","received_events_url":"https://api.github.com/users/newsiberian/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reactioncommerce/reaction/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/reactioncommerce/reaction/labels/enhancement","name":"enhancement","color":"fbca04"},{"url":"https://api.github.com/repos/reactioncommerce/reaction/labels/Needs%20Tests","name":"Needs Tests","color":"f7c6c7"},{"url":"https://api.github.com/repos/reactioncommerce/reaction/labels/ready","name":"ready","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-16T12:59:42Z","updated_at":"2015-12-19T17:53:13Z","closed_at":null,"body":"Hello. There is a few moments, that we could improve in `cartWorkflow`.\r\n\r\nWe can have a situation where a user deletes products from `cart`, being in the last `cartWorkflow` stage and if he later put in a `cart` other products, then entering the `checkout`, it will be the last `cartWorkflow` stage. I think this is not expected. I believe, much more logical way will be to throw him back to the third `coreCheckoutShipping` step.\r\n\r\nIt may also be a situations where a user who is at any stage beyond the second `checkoutAddressBook` address may cancel the `defaultShippingAddress` or he could remove all addresses at all. Currently, when this happens, nothing has changed, as far as I understand.\r\nMaybe if we have changes at second stage we need to react on it somehow?\r\n\r\n#### Tasks\r\n\r\n- [x] When you select a shipping address, we should reset the following steps and recalculate shipping rates.\r\n- [x] With the first address entered, both shipping and address should be selected by default (and set isDefault).\r\n- [ ] if quantity changes, we reset to coreCheckoutShipping, but use the isDefault shipping address."},"comment":{"url":"https://api.github.com/repos/reactioncommerce/reaction/issues/comments/166010134","html_url":"https://github.com/reactioncommerce/reaction/issues/592#issuecomment-166010134","issue_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/592","id":166010134,"user":{"login":"newsiberian","id":11130487,"avatar_url":"https://avatars.githubusercontent.com/u/11130487?v=3","gravatar_id":"","url":"https://api.github.com/users/newsiberian","html_url":"https://github.com/newsiberian","followers_url":"https://api.github.com/users/newsiberian/followers","following_url":"https://api.github.com/users/newsiberian/following{/other_user}","gists_url":"https://api.github.com/users/newsiberian/gists{/gist_id}","starred_url":"https://api.github.com/users/newsiberian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/newsiberian/subscriptions","organizations_url":"https://api.github.com/users/newsiberian/orgs","repos_url":"https://api.github.com/users/newsiberian/repos","events_url":"https://api.github.com/users/newsiberian/events{/privacy}","received_events_url":"https://api.github.com/users/newsiberian/received_events","type":"User","site_admin":false},"created_at":"2015-12-19T17:53:13Z","updated_at":"2015-12-19T17:53:13Z","body":"@aaronjudd, hello, I'm looking into shipping now and do not quite understand what do you mean by saying \"recalculate shipping rates\" in item 1. As I can see, we have a flat rates only. What need to be recalculated?"}}