{"action":"opened","issue":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12584","repository_url":"https://api.github.com/repos/woocommerce/woocommerce","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12584/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12584/comments","events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/12584/events","html_url":"https://github.com/woocommerce/woocommerce/issues/12584","id":195294977,"number":12584,"title":"Check cart coupons shows incorrect error message","user":{"login":"DavidBrunow","id":1452879,"avatar_url":"https://avatars.githubusercontent.com/u/1452879?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidBrunow","html_url":"https://github.com/DavidBrunow","followers_url":"https://api.github.com/users/DavidBrunow/followers","following_url":"https://api.github.com/users/DavidBrunow/following{/other_user}","gists_url":"https://api.github.com/users/DavidBrunow/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidBrunow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidBrunow/subscriptions","organizations_url":"https://api.github.com/users/DavidBrunow/orgs","repos_url":"https://api.github.com/users/DavidBrunow/repos","events_url":"https://api.github.com/users/DavidBrunow/events{/privacy}","received_events_url":"https://api.github.com/users/DavidBrunow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-13T16:09:20Z","updated_at":"2016-12-13T16:09:20Z","closed_at":null,"body":"## EXPLANATION OF THE ISSUE\r\n\r\nAfter applying a coupon that does not affect any of the products in the cart and going to the checkout page, the error message \"Sorry, it seems the coupon \"COUPON_CODE\" is invalid - it has now been removed from your order.\" is shown when the message should be \"Sorry, this coupon is not applicable to your cart contents.\". The message that is shown is hardcoded and doesn't change based upon the error generated in $coupon->is_valid().\r\n\r\n## STEPS TO REPRODUCE THE ISSUE\r\n\r\n<!-- 1. List steps to reproduce your issue so we can replicate. -->\r\n\r\n1. Add a coupon to the cart on a page other than checkout\r\n2. Only add products that that coupon does not apply to on a page other than checkout\r\n3. Go to the checkout page\r\n4. See the \"Sorry, it seems the coupon \"COUPON_CODE\" is invalid - it has now been removed from your order.\" error message displayed\r\n\r\n## SYSTEM STATUS REPORT\r\n\r\n```\r\n`\r\n### WordPress Environment ###\r\n\r\nHome URL: LOCAL ENVIRONMENT\r\nSite URL: LOCAL ENVIRONMENT\r\nWC Version: 2.6.8\r\nLog Directory Writable: ✔\r\nWP Version: 4.6.1\r\nWP Multisite: –\r\nWP Memory Limit: 512 MB\r\nWP Debug Mode: –\r\nWP Cron: ✔\r\nLanguage: en_US\r\n\r\n### Server Environment ###\r\n\r\nServer Info: Apache/2.2.31 (Unix) mod_wsgi/3.5 Python/2.7.12 PHP/5.6.27 mod_ssl/2.2.31 OpenSSL/1.0.2j DAV/2 mod_fastcgi/2.4.6 mod_perl/2.0.9 Perl/v5.24.0\r\nPHP Version: 5.6.27\r\nPHP Post Max Size: 32 MB\r\nPHP Time Limit: 120\r\nPHP Max Input Vars: 1000\r\ncURL Version: 7.50.3\r\nOpenSSL/1.0.2j\r\n\r\nSUHOSIN Installed: –\r\nMySQL Version: 5.6.33\r\nMax Upload Size: 32 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.8\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\nMaxMind GeoIP Database: ✔\r\n\r\n### Settings ###\r\n\r\nForce SSL: ✔\r\nCurrency: USD ($)\r\nCurrency Position: left\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: #80566 - /shop/\r\nCart: #80568 - /checkout/\r\nCheckout: #80568 - /checkout/\r\nMy Account: #80569 - /my-account/\r\n\r\n### Taxonomies ###\r\n\r\nProduct Types: composite (composite)\r\nexternal (external)\r\ngrouped (grouped)\r\nsimple (simple)\r\nvariable (variable)\r\n\r\n### IRRELEVANT/SENSITIVE INFORMATION REMOVED ###\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://woocommerce.com/my-account/tickets/ 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"}}
{"actor":{"display_login":"DavidBrunow"}}