{"action":"created","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/8687","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8687/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8687/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8687/events","html_url":"https://github.com/woothemes/woocommerce/issues/8687","id":98153356,"number":8687,"title":"Bug in stock check in get_children() in WC_Product_Variable [2.4]","user":{"login":"davey-w","id":6419634,"avatar_url":"https://avatars.githubusercontent.com/u/6419634?v=3","gravatar_id":"","url":"https://api.github.com/users/davey-w","html_url":"https://github.com/davey-w","followers_url":"https://api.github.com/users/davey-w/followers","following_url":"https://api.github.com/users/davey-w/following{/other_user}","gists_url":"https://api.github.com/users/davey-w/gists{/gist_id}","starred_url":"https://api.github.com/users/davey-w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davey-w/subscriptions","organizations_url":"https://api.github.com/users/davey-w/orgs","repos_url":"https://api.github.com/users/davey-w/repos","events_url":"https://api.github.com/users/davey-w/events{/privacy}","received_events_url":"https://api.github.com/users/davey-w/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/woothemes/woocommerce/labels/Needs%20Reporter%20Feedback","name":"Needs Reporter Feedback","color":"444444"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-30T12:06:21Z","updated_at":"2015-07-30T13:06:37Z","closed_at":null,"body":"I have updated a shop (WC 2.3) to WooCommerce 2.4 Beta 4 and noticed the get_variation_price('min') method in WC_Product_Variable returned 0 instead of the minumum price for a variable product.\r\n\r\nApparently in the WC_Product_Variable class, the get_children() method doesn't check the _manage_stock post meta anymore (when $visible is true), so only children with post meta '_stock_status = instock' are returned. If you never had stock management enabled for this variable product, no children are returned.\r\n\r\nSo this is either a bug, or the data updater didn't set the _stock_status for those products."},"comment":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/comments/126316612","html_url":"https://github.com/woothemes/woocommerce/issues/8687#issuecomment-126316612","issue_url":"https://api.github.com/repos/woothemes/woocommerce/issues/8687","id":126316612,"user":{"login":"davey-w","id":6419634,"avatar_url":"https://avatars.githubusercontent.com/u/6419634?v=3","gravatar_id":"","url":"https://api.github.com/users/davey-w","html_url":"https://github.com/davey-w","followers_url":"https://api.github.com/users/davey-w/followers","following_url":"https://api.github.com/users/davey-w/following{/other_user}","gists_url":"https://api.github.com/users/davey-w/gists{/gist_id}","starred_url":"https://api.github.com/users/davey-w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davey-w/subscriptions","organizations_url":"https://api.github.com/users/davey-w/orgs","repos_url":"https://api.github.com/users/davey-w/repos","events_url":"https://api.github.com/users/davey-w/events{/privacy}","received_events_url":"https://api.github.com/users/davey-w/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T13:06:37Z","updated_at":"2015-07-30T13:06:37Z","body":"No, i didn't import the variations/products using a plugin (at least not after I updated to WC 2.4 Beta).\r\n\r\nI did a quick check in the postmeta table in the database:\r\n\r\nMy variable product has ID 236. A random variation (child) of this product has ID 261.\r\n\r\n#236:\r\n_manage_stock: no\r\n_stock_status: instock\r\n\r\n#261:\r\n_manage_stock: no\r\n\r\nFor ID 261 (child) the _stock_status is missing in the postmeta table, therefore the child can't be found. Any idea why this is missing for this variation?"}}