{"action":"opened","issue":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/15950","repository_url":"https://api.github.com/repos/woocommerce/woocommerce","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/15950/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/15950/comments","events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/15950/events","html_url":"https://github.com/woocommerce/woocommerce/issues/15950","id":240295711,"number":15950,"title":"update_wc_div called incorrectly when removing products from cart","user":{"login":"jkohlbach","id":531540,"avatar_url":"https://avatars2.githubusercontent.com/u/531540?v=3","gravatar_id":"","url":"https://api.github.com/users/jkohlbach","html_url":"https://github.com/jkohlbach","followers_url":"https://api.github.com/users/jkohlbach/followers","following_url":"https://api.github.com/users/jkohlbach/following{/other_user}","gists_url":"https://api.github.com/users/jkohlbach/gists{/gist_id}","starred_url":"https://api.github.com/users/jkohlbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkohlbach/subscriptions","organizations_url":"https://api.github.com/users/jkohlbach/orgs","repos_url":"https://api.github.com/users/jkohlbach/repos","events_url":"https://api.github.com/users/jkohlbach/events{/privacy}","received_events_url":"https://api.github.com/users/jkohlbach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-04T02:22:08Z","updated_at":"2017-07-04T02:22:08Z","closed_at":null,"body":"## Prerequisites\r\n\r\n<!-- Mark checked items with an [x] -->\r\n\r\n- [X ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate\r\n- [X ] The issue still exists against the latest `master` branch of WooCommerce\r\n- [X ] This is not a usage question (Those should be directed to the [community](https://wordpress.org/support/plugin/woocommerce), unless this is a question about a premium plugin in which you should [use the helpdesk](https://woocommerce.com/my-account/tickets/) for official extensions or contact the author of 3rd party extensions)\r\n- [X ] I have attempted to find the simplest possible steps to reproduce the issue\r\n- [ ] I have included a failing test as a pull request (Optional)\r\n\r\n## Steps to reproduce the issue\r\n\r\nSeems we aren't calling update_wc_div correctly in item_remove_clicked in cart.js causing old messages to stack/display in some cases.\r\n\r\nIts the same issue as #12877 but for removing products (this previous ticket was about quantity box change event, this is about clicking remove event)\r\n\r\n## Expected behavior and actual behavior\r\n\r\nI believe the fix should be to change:\r\n\r\n`success: update_wc_div,`\r\n\r\nto:\r\n\r\n`success: function( response ) {\r\n\tupdate_wc_div( response );\r\n},`\r\n\r\n## Environment\r\n\r\n<details>\r\n```\r\nNot required\r\n```\r\n</details>\r\n\r\n## Isolating the problem\r\n\r\n- [X ] This bug happens with only WooCommerce plugin active\r\n- [X ] This bug happens with a default WordPress theme active, or [Storefront](https://woocommerce.com/storefront/)\r\n- [X ] I can reproduce this bug consistently\r\n"}}
{"actor":{"display_login":"jkohlbach"}}