{"action":"created","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/8989","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8989/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8989/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8989/events","html_url":"https://github.com/woothemes/woocommerce/pull/8989","id":103810226,"number":8989,"title":"Allow to perform variation actions without executing ajax request afterwards","user":{"login":"krautnerds","id":7906407,"avatar_url":"https://avatars.githubusercontent.com/u/7906407?v=3","gravatar_id":"","url":"https://api.github.com/users/krautnerds","html_url":"https://github.com/krautnerds","followers_url":"https://api.github.com/users/krautnerds/followers","following_url":"https://api.github.com/users/krautnerds/following{/other_user}","gists_url":"https://api.github.com/users/krautnerds/gists{/gist_id}","starred_url":"https://api.github.com/users/krautnerds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krautnerds/subscriptions","organizations_url":"https://api.github.com/users/krautnerds/orgs","repos_url":"https://api.github.com/users/krautnerds/repos","events_url":"https://api.github.com/users/krautnerds/events{/privacy}","received_events_url":"https://api.github.com/users/krautnerds/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-28T23:13:30Z","updated_at":"2015-09-02T12:33:51Z","closed_at":"2015-09-02T12:33:51Z","pull_request":{"url":"https://api.github.com/repos/woothemes/woocommerce/pulls/8989","html_url":"https://github.com/woothemes/woocommerce/pull/8989","diff_url":"https://github.com/woothemes/woocommerce/pull/8989.diff","patch_url":"https://github.com/woothemes/woocommerce/pull/8989.patch"},"body":"It should be possible to execute a custom variation action without\ntriggering the ajax request afterwards"},"comment":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/comments/137059120","html_url":"https://github.com/woothemes/woocommerce/pull/8989#issuecomment-137059120","issue_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8989","id":137059120,"user":{"login":"krautnerds","id":7906407,"avatar_url":"https://avatars.githubusercontent.com/u/7906407?v=3","gravatar_id":"","url":"https://api.github.com/users/krautnerds","html_url":"https://github.com/krautnerds","followers_url":"https://api.github.com/users/krautnerds/followers","following_url":"https://api.github.com/users/krautnerds/following{/other_user}","gists_url":"https://api.github.com/users/krautnerds/gists{/gist_id}","starred_url":"https://api.github.com/users/krautnerds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krautnerds/subscriptions","organizations_url":"https://api.github.com/users/krautnerds/orgs","repos_url":"https://api.github.com/users/krautnerds/repos","events_url":"https://api.github.com/users/krautnerds/events{/privacy}","received_events_url":"https://api.github.com/users/krautnerds/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T12:33:51Z","updated_at":"2015-09-02T12:33:51Z","body":"I think this one is no longer needed. Just a quick explanation where the confusion originated from:\r\n\r\nWe tried to upgrade our variation bulk action code from WC 2.3 to WC 2.4 and didn't recognize that most of the logic was transferred from JS to PHP... E.g: The calculation of the \"increase regular price\" was originally implemented in JS.\r\n\r\nIn my opinion this change was not documented enough so that we still tried to do the data manipulation in JS - therefore we tried to stop the ajax request after our manipulation to not override our changed data  with the original data from the database... Another option would have been to trigger a \"save_variations\" to ensure that our save action is executed before the reload took place. But at the moment there is also no possibility to trigger the save manually from our JS code - the woocommerce variation js is not publicly accessible.\r\n\r\nThe only solution for us in my opinion is to transfer our data manipulation code to PHP and do a custom ajax request.\r\n\r\nBy the way: Is there any documentation for the variation bulk actions?"}}