{"action":"created","issue":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/11551","repository_url":"https://api.github.com/repos/woothemes/woocommerce","labels_url":"https://api.github.com/repos/woothemes/woocommerce/issues/11551/labels{/name}","comments_url":"https://api.github.com/repos/woothemes/woocommerce/issues/11551/comments","events_url":"https://api.github.com/repos/woothemes/woocommerce/issues/11551/events","html_url":"https://github.com/woothemes/woocommerce/issues/11551","id":168106276,"number":11551,"title":"Free shipping not selected by default when it was not added as the first method in the shipping zone","user":{"login":"samuelaguilera","id":1039772,"avatar_url":"https://avatars.githubusercontent.com/u/1039772?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelaguilera","html_url":"https://github.com/samuelaguilera","followers_url":"https://api.github.com/users/samuelaguilera/followers","following_url":"https://api.github.com/users/samuelaguilera/following{/other_user}","gists_url":"https://api.github.com/users/samuelaguilera/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelaguilera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelaguilera/subscriptions","organizations_url":"https://api.github.com/users/samuelaguilera/orgs","repos_url":"https://api.github.com/users/samuelaguilera/repos","events_url":"https://api.github.com/users/samuelaguilera/events{/privacy}","received_events_url":"https://api.github.com/users/samuelaguilera/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-07-28T14:15:06Z","updated_at":"2016-07-29T23:17:05Z","closed_at":"2016-07-29T12:25:18Z","body":"## EXPLANATION OF THE ISSUE\r\n\r\nIn WC 2.6.x free shipping is not selected by default in the cart when the user is eligible for it but free shipping method was not added as the first shipping method in the shipping zone setup.\r\n\r\nIn WC 2.5.x (and older) free shipping is selected by default in the cart when free shipping is available for the user. No matter the display order or even if all shipping methods have the same selection priority, free shipping is always the default selected method when it's available.\r\n\r\n## STEPS TO REPRODUCE THE ISSUE\r\n\r\n1. Create any shipping zone.\r\n2. Add Flat Rate to your shipping zone.\r\n3. Click the Flat Rate method and set any amount in Cost.\r\n4. Add Free Shipping to your shipping zone.\r\n5. Go to your store and add some products to the cart.\r\n6. Go to cart.\r\n\r\n**Free shipping should be selected by default, but flat rate is selected instead.**\r\n\r\nUsing the drag and drop to change the order of the shipping methods doesn't help, the only way to fix this is to remove completely both shipping methods and add them again, but this time adding free shipping first.\r\n\r\nAll tests were done using a fresh installation of WC 2.6.\r\n\r\n## SYSTEM STATUS REPORT\r\n\r\n```\r\n`\r\n### WordPress Environment ###\r\n\r\nHome URL: https://localhost/woocommerce\r\nSite URL: https://localhost/woocommerce\r\nWC Version: 2.6.4\r\nLog Directory Writable: ✔\r\nWP Version: 4.5.3\r\nWP Multisite: –\r\nWP Memory Limit: 256 MB\r\nWP Debug Mode: ✔\r\nWP Cron: ✔\r\nLanguage: en_US\r\n\r\n### Server Environment ###\r\n\r\nServer Info: Apache\r\nPHP Version: 5.6.24-1+deb.sury.org~trusty+1\r\nPHP Post Max Size: 10 MB\r\nPHP Time Limit: 60\r\nPHP Max Input Vars: 1000\r\ncURL Version: 7.35.0\r\nOpenSSL/1.0.1f\r\n\r\nSUHOSIN Installed: –\r\nMySQL Version: 5.6.31\r\nMax Upload Size: 8 MB\r\nDefault Timezone is UTC: ✔\r\nfsockopen/cURL: ✔\r\nSoapClient: ✔\r\nDOMDocument: ✔\r\nGZip: ✔\r\nMultibyte String: ✔\r\nRemote Post: ✔\r\nRemote Get: ✔\r\n\r\n### Database ###\r\n\r\nWC Database Version: 2.6.4\r\n: \r\nwoocommerce_sessions: ✔\r\nwoocommerce_api_keys: ✔\r\nwoocommerce_attribute_taxonomies: ✔\r\nwoocommerce_downloadable_product_permissions: ✔\r\nwoocommerce_order_items: ✔\r\nwoocommerce_order_itemmeta: ✔\r\nwoocommerce_tax_rates: ✔\r\nwoocommerce_tax_rate_locations: ✔\r\nwoocommerce_shipping_zones: ✔\r\nwoocommerce_shipping_zone_locations: ✔\r\nwoocommerce_shipping_zone_methods: ✔\r\nwoocommerce_payment_tokens: ✔\r\nwoocommerce_payment_tokenmeta: ✔\r\n\r\n### Active Plugins (31) ###\r\n\r\nWooCommerce: by WooThemes – 2.6.4\r\n\r\n### Settings ###\r\n\r\nForce SSL: –\r\nCurrency: EUR (€)\r\nCurrency Position: right_space\r\nThousand Separator: ,\r\nDecimal Separator: .\r\nNumber of Decimals: 2\r\n\r\n### API ###\r\n\r\nAPI Enabled: ✔\r\n\r\n### WC Pages ###\r\n\r\nShop Base: #292 - /shop/\r\nCart: #293 - /cart/\r\nCheckout: #294 - /checkout/\r\nMy Account: #295 - /my-account/\r\n\r\n### Taxonomies ###\r\n\r\nProduct Types: external (external)\r\ngrouped (grouped)\r\nsimple (simple)\r\nvariable (variable)\r\n\r\n\r\n### Theme ###\r\n\r\nName: Twenty Sixteen\r\nVersion: 1.2\r\nAuthor URL: https://wordpress.org/\r\nChild Theme: ❌ – If you're modifying WooCommerce on a parent theme you didn't build personally\r\nthen we recommend using a child theme. See: How to create a child theme\r\n\r\nWooCommerce Support: ✔\r\n\r\n### Templates ###\r\n\r\nOverrides: –\r\n`\r\n```\r\n\r\n<!--\r\nBEFORE POSTING YOUR ISSUE\r\n- These comments won't show up when you submit the issue.\r\n- Try to add as much detail as possible. Be specific!\r\n- GitHub issues ARE NOT FOR SUPPORT! If you have questions, use the either:\r\n  - https://wordpress.org/support/plugin/woocommerce for general support\r\n  - https://support.woothemes.com for premium plugin support\r\n- If you're requesting a new feature, explain why you'd like it to be added.\r\n- Search this repository (top of the page) for the issue and it has not been fixed or reported already.\r\n\r\nBefore logging BUGS, ensure you:\r\n- Use the latest stable release of WooCommerce.\r\n- Disabled all plugins to ensure it's a core bug and not a plugin issue.\r\n- Switched to Twenty Twelve theme to ensure it's a core bug and not a theme issue.\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/woothemes/woocommerce/issues/comments/236316789","html_url":"https://github.com/woothemes/woocommerce/issues/11551#issuecomment-236316789","issue_url":"https://api.github.com/repos/woothemes/woocommerce/issues/11551","id":236316789,"user":{"login":"samuelaguilera","id":1039772,"avatar_url":"https://avatars.githubusercontent.com/u/1039772?v=3","gravatar_id":"","url":"https://api.github.com/users/samuelaguilera","html_url":"https://github.com/samuelaguilera","followers_url":"https://api.github.com/users/samuelaguilera/followers","following_url":"https://api.github.com/users/samuelaguilera/following{/other_user}","gists_url":"https://api.github.com/users/samuelaguilera/gists{/gist_id}","starred_url":"https://api.github.com/users/samuelaguilera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samuelaguilera/subscriptions","organizations_url":"https://api.github.com/users/samuelaguilera/orgs","repos_url":"https://api.github.com/users/samuelaguilera/repos","events_url":"https://api.github.com/users/samuelaguilera/events{/privacy}","received_events_url":"https://api.github.com/users/samuelaguilera/received_events","type":"User","site_admin":false},"created_at":"2016-07-29T23:17:05Z","updated_at":"2016-07-29T23:17:05Z","body":"I just created another fresh WP install in a different hosting (a well known shared hosting provider) and same result...\r\n\r\nI can provide you a WP admin user and FTP details if you want to take a look."}}
{"actor":{"display_login":"samuelaguilera"}}