{"action":"created","issue":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/19392","repository_url":"https://api.github.com/repos/woocommerce/woocommerce","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/19392/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/19392/comments","events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/19392/events","html_url":"https://github.com/woocommerce/woocommerce/issues/19392","id":305069505,"number":19392,"title":"\"Only show quantity remaining in stock\" does not hide stock levels when selected.","user":{"login":"tsh-helpdesk","id":23692100,"avatar_url":"https://avatars3.githubusercontent.com/u/23692100?v=4","gravatar_id":"","url":"https://api.github.com/users/tsh-helpdesk","html_url":"https://github.com/tsh-helpdesk","followers_url":"https://api.github.com/users/tsh-helpdesk/followers","following_url":"https://api.github.com/users/tsh-helpdesk/following{/other_user}","gists_url":"https://api.github.com/users/tsh-helpdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/tsh-helpdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsh-helpdesk/subscriptions","organizations_url":"https://api.github.com/users/tsh-helpdesk/orgs","repos_url":"https://api.github.com/users/tsh-helpdesk/repos","events_url":"https://api.github.com/users/tsh-helpdesk/events{/privacy}","received_events_url":"https://api.github.com/users/tsh-helpdesk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-14T08:52:51Z","updated_at":"2018-03-14T11:31:07Z","closed_at":"2018-03-14T11:31:07Z","author_association":"NONE","body":"<!-- This form is for reporting bugs and issues specific to the WooCommerce plugin. This is not a support portal. If you need technical support from a human being, please submit a ticket via the helpdesk instead: https://woocommerce.com/contact-us/ -->\r\n\r\n<!-- Usage questions can also be directed to the public support forum here: https://wordpress.org/support/plugin/woocommerce, unless this is a question about a premium extension in which case you should use the helpdesk. -->\r\n\r\n<!-- If you have a feature request, submit it to: http://ideas.woocommerce.com/forums/133476-woocommerce -->\r\n\r\n<!-- If you are a developer who needs a new filter/hook raise a PR instead :) -->\r\n\r\n<!-- Please be as descriptive as possible; issues lacking the below details, or for any other reason than to report a bug, may be closed without action. -->\r\n\r\n## Prerequisites\r\n\r\n<!-- MARK COMPLETED 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 on Github (this is **not** the same version as on WordPress.org!)\r\n- [X] I have attempted to find the simplest possible steps to reproduce the issue\r\n- [X] I have included a failing test as a pull request (Optional)\r\n\r\n## Steps to reproduce the issue\r\n\r\n<!-- We need to be able to reproduce the bug in order to fix it so please be descriptive! -->\r\n\r\nWe have had a request from Marketing to hide the amount of items left in a product from the purchase page. \r\n\r\n1. Product in product menu is set to 357 items\r\n2. Go to Woocommerce > Products > Inventory > Out of Stock Visibility\r\n3. We set this to \"Only show remaining stock in stock when low e.g. \"Only 2 left in stock\"\r\n4. Low stock threshold set to 10\r\n5. Out of stock threshold set to 0.\r\n6. Click 'Save Changes\"\r\n\r\n## Expected/actual behavior\r\n\r\nWhen I follow those steps, I see...\r\n\r\nThe purchase page still shows the amount of units in stock. \r\n\r\nI was expecting to see...\r\n\r\nNothing displayed under amount of stock\r\n\r\n## Isolating the problem\r\n\r\n<!-- MARK COMPLETED ITEMS WITH AN [x] -->\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 using the steps above\r\n\r\n## WordPress Environment\r\n\r\n<details>\r\n```\r\n`\r\n### WordPress Environment ###\r\n\r\nHome URL: https://www.tsh.org.au\r\nSite URL: https://www.tsh.org.au\r\nWC Version: 3.3.3\r\nLog Directory Writable: ✔\r\nWP Version: 4.9.4\r\nWP Multisite: –\r\nWP Memory Limit: 256 MB\r\nWP Debug Mode: –\r\nWP Cron: ✔\r\nLanguage: en_AU\r\n\r\n### Server Environment ###\r\n\r\nServer Info: Apache\r\nPHP Version: 7.0.28\r\nPHP Post Max Size: 10 MB\r\nPHP Time Limit: 30\r\nPHP Max Input Vars: 1000\r\ncURL Version: 7.58.0\r\nOpenSSL/1.0.2n\r\n\r\nSUHOSIN Installed: –\r\nMySQL Version: 5.6.38\r\nMax Upload Size: 10 MB\r\nDefault Timezone is UTC: ✔\r\nfsockopen/cURL: ✔\r\nSoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.\r\nDOMDocument: ✔\r\nGZip: ✔\r\nMultibyte String: ✔\r\nRemote Post: ✔\r\nRemote Get: ✔\r\n\r\n### Database ###\r\n\r\nWC Database Version: 3.3.3\r\nWC Database Prefix: wp_\r\nMaxMind GeoIP Database: ✔\r\nTotal Database Size: 35.28MB\r\nDatabase Data Size: 28.69MB\r\nDatabase Index Size: 6.59MB\r\nwp_woocommerce_sessions: Data: 0.56MB + Index: 0.03MB\r\nwp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB\r\nwp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB\r\nwp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB\r\nwp_woocommerce_order_items: Data: 0.06MB + Index: 0.04MB\r\nwp_woocommerce_order_itemmeta: Data: 0.41MB + Index: 0.29MB\r\nwp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB\r\nwp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB\r\nwp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB\r\nwp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB\r\nwp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB\r\nwp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB\r\nwp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB\r\nwp_woocommerce_log: Data: 0.00MB + Index: 0.00MB\r\nwp_2_aryo_activity_log: Data: 0.02MB + Index: 0.00MB\r\nwp_2_commentmeta: Data: 0.00MB + Index: 0.00MB\r\nwp_2_comments: Data: 0.00MB + Index: 0.01MB\r\nwp_2_gf_addon_feed: Data: 0.00MB + Index: 0.00MB\r\nwp_2_gf_addon_payment_callback: Data: 0.00MB + Index: 0.00MB\r\nwp_2_gf_addon_payment_transaction: Data: 0.00MB + Index: 0.00MB\r\nwp_2_links: Data: 0.00MB + Index: 0.00MB\r\nwp_2_masterslider_options: Data: 0.00MB + Index: 0.00MB\r\nwp_2_masterslider_sliders: Data: 0.00MB + Index: 0.00MB\r\nwp_2_options: Data: 0.58MB + Index: 0.02MB\r\nwp_2_postmeta: Data: 0.02MB + Index: 0.02MB\r\nwp_2_posts: Data: 0.01MB + Index: 0.01MB\r\nwp_2_rg_form: Data: 0.00MB + Index: 0.00MB\r\nwp_2_rg_form_meta: Data: 0.00MB + Index: 0.00MB\r\nwp_2_rg_form_view: Data: 0.00MB + Index: 0.00MB\r\nwp_2_rg_incomplete_submissions: Data: 0.00MB + Index: 0.00MB\r\nwp_2_rg_lead: Data: 0.00MB + Index: 0.00MB\r\nwp_2_rg_lead_detail: Data: 0.00MB + Index: 0.00MB\r\nwp_2_rg_lead_detail_long: Data: 0.00MB + Index: 0.00MB\r\nwp_2_rg_lead_meta: Data: 0.00MB + Index: 0.00MB\r\nwp_2_rg_lead_notes: Data: 0.00MB + Index: 0.00MB\r\nwp_2_sam_ads: Data: 0.00MB + Index: 0.00MB\r\nwp_2_sam_blocks: Data: 0.00MB + Index: 0.00MB\r\nwp_2_sam_errors: Data: 0.00MB + Index: 0.00MB\r\nwp_2_sam_places: Data: 0.00MB + Index: 0.00MB\r\nwp_2_sam_stats: Data: 0.00MB + Index: 0.00MB\r\nwp_2_sam_zones: Data: 0.00MB + Index: 0.00MB\r\nwp_2_termmeta: Data: 0.00MB + Index: 0.00MB\r\nwp_2_terms: Data: 0.00MB + Index: 0.01MB\r\nwp_2_term_relationships: Data: 0.00MB + Index: 0.00MB\r\nwp_2_term_taxonomy: Data: 0.00MB + Index: 0.00MB\r\nwp_2_tzcustom_optionset: Data: 0.02MB + Index: 0.00MB\r\nwp_2_tzcustom_thumbnail: Data: 0.02MB + Index: 0.00MB\r\nwp_blc_filters: Data: 0.02MB + Index: 0.00MB\r\nwp_blc_instances: Data: 0.16MB + Index: 0.05MB\r\nwp_blc_links: Data: 1.52MB + Index: 0.16MB\r\nwp_blc_synch: Data: 0.02MB + Index: 0.02MB\r\nwp_blogs: Data: 0.00MB + Index: 0.00MB\r\nwp_blog_versions: Data: 0.00MB + Index: 0.00MB\r\nwp_bpspro_db_backup: Data: 0.02MB + Index: 0.00MB\r\nwp_bpspro_login_security: Data: 0.02MB + Index: 0.00MB\r\nwp_bpspro_seclog_ignore: Data: 0.02MB + Index: 0.00MB\r\nwp_commentmeta: Data: 0.00MB + Index: 0.00MB\r\nwp_comments: Data: 0.52MB + Index: 0.24MB\r\nwp_ewwwio_images: Data: 0.65MB + Index: 0.38MB\r\nwp_failed_jobs: Data: 0.00MB + Index: 0.00MB\r\nwp_gf_addon_feed: Data: 0.00MB + Index: 0.00MB\r\nwp_gf_addon_payment_callback: Data: 0.00MB + Index: 0.00MB\r\nwp_gf_addon_payment_transaction: Data: 0.00MB + Index: 0.00MB\r\nwp_links: Data: 0.00MB + Index: 0.00MB\r\nwp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB\r\nwp_masterslider_options: Data: 0.00MB + Index: 0.00MB\r\nwp_masterslider_sliders: Data: 0.02MB + Index: 0.00MB\r\nwp_options: Data: 2.08MB + Index: 0.42MB\r\nwp_platfform: Data: 0.00MB + Index: 0.00MB\r\nwp_platfform_category: Data: 0.02MB + Index: 0.00MB\r\nwp_postmeta: Data: 5.32MB + Index: 1.82MB\r\nwp_posts: Data: 8.02MB + Index: 0.41MB\r\nwp_queue: Data: 0.01MB + Index: 0.00MB\r\nwp_registration_log: Data: 0.00MB + Index: 0.00MB\r\nwp_rg_form: Data: 0.00MB + Index: 0.00MB\r\nwp_rg_form_meta: Data: 0.21MB + Index: 0.00MB\r\nwp_rg_form_view: Data: 0.23MB + Index: 0.13MB\r\nwp_rg_incomplete_submissions: Data: 0.00MB + Index: 0.00MB\r\nwp_rg_lead: Data: 0.15MB + Index: 0.02MB\r\nwp_rg_lead_detail: Data: 0.35MB + Index: 0.60MB\r\nwp_rg_lead_detail_long: Data: 0.00MB + Index: 0.00MB\r\nwp_rg_lead_meta: Data: 0.00MB + Index: 0.01MB\r\nwp_rg_lead_notes: Data: 0.00MB + Index: 0.00MB\r\nwp_rg_test: Data: 0.00MB + Index: 0.00MB\r\nwp_sg_action: Data: 0.00MB + Index: 0.00MB\r\nwp_sg_config: Data: 0.00MB + Index: 0.00MB\r\nwp_sg_schedule: Data: 0.00MB + Index: 0.00MB\r\nwp_signups: Data: 0.00MB + Index: 0.01MB\r\nwp_site: Data: 0.00MB + Index: 0.01MB\r\nwp_sitemeta: Data: 0.02MB + Index: 0.01MB\r\nwp_smush_dir_images: Data: 0.00MB + Index: 0.00MB\r\nwp_termmeta: Data: 0.00MB + Index: 0.01MB\r\nwp_terms: Data: 0.01MB + Index: 0.01MB\r\nwp_term_relationships: Data: 0.01MB + Index: 0.02MB\r\nwp_term_taxonomy: Data: 0.01MB + Index: 0.01MB\r\nwp_toolset_post_guid_id: Data: 0.02MB + Index: 0.02MB\r\nwp_tzcustom_optionset: Data: 0.02MB + Index: 0.00MB\r\nwp_tzcustom_thumbnail: Data: 0.02MB + Index: 0.00MB\r\nwp_usermeta: Data: 0.03MB + Index: 0.02MB\r\nwp_users: Data: 0.00MB + Index: 0.01MB\r\nwp_w3tc_cdn_queue: Data: 0.00MB + Index: 0.00MB\r\nwp_wc_download_log: Data: 0.00MB + Index: 0.00MB\r\nwp_wc_webhooks: Data: 0.00MB + Index: 0.00MB\r\nwp_wfBadLeechers: Data: 0.00MB + Index: 0.00MB\r\nwp_wfBlockedCommentLog: Data: 0.00MB + Index: 0.00MB\r\nwp_wfBlockedIPLog: Data: 0.07MB + Index: 0.06MB\r\nwp_wfBlocks: Data: 0.00MB + Index: 0.00MB\r\nwp_wfBlocks7: Data: 0.00MB + Index: 0.00MB\r\nwp_wfBlocksAdv: Data: 0.00MB + Index: 0.00MB\r\nwp_wfConfig: Data: 1.49MB + Index: 0.01MB\r\nwp_wfCrawlers: Data: 0.01MB + Index: 0.01MB\r\nwp_wfFileChanges: Data: 0.00MB + Index: 0.00MB\r\nwp_wfFileMods: Data: 2.04MB + Index: 0.41MB\r\nwp_wfHits: Data: 0.54MB + Index: 0.15MB\r\nwp_wfHoover: Data: 0.00MB + Index: 0.00MB\r\nwp_wfIssues: Data: 0.02MB + Index: 0.01MB\r\nwp_wfKnownFileList: Data: 1.06MB + Index: 0.13MB\r\nwp_wfLeechers: Data: 0.07MB + Index: 0.10MB\r\nwp_wfLockedOut: Data: 0.00MB + Index: 0.00MB\r\nwp_wfLocs: Data: 0.01MB + Index: 0.00MB\r\nwp_wfLogins: Data: 0.04MB + Index: 0.01MB\r\nwp_wfNet404s: Data: 0.00MB + Index: 0.00MB\r\nwp_wfNotifications: Data: 0.00MB + Index: 0.00MB\r\nwp_wfPendingIssues: Data: 0.01MB + Index: 0.01MB\r\nwp_wfReverseCache: Data: 0.00MB + Index: 0.00MB\r\nwp_wfScanners: Data: 0.03MB + Index: 0.04MB\r\nwp_wfSNIPCache: Data: 0.00MB + Index: 0.00MB\r\nwp_wfStatus: Data: 2.03MB + Index: 0.80MB\r\nwp_wfThrottleLog: Data: 0.00MB + Index: 0.00MB\r\nwp_wfVulnScanners: Data: 0.00MB + Index: 0.00MB\r\nwp_yoast_seo_links: Data: 0.04MB + Index: 0.01MB\r\nwp_yoast_seo_meta: Data: 0.01MB + Index: 0.01MB\r\n\r\n### Post Type Counts ###\r\n\r\nattachment: 498\r\nboard: 52\r\ncustomize_changeset: 7\r\nmodule: 19\r\nnav_menu_item: 187\r\nnews: 37\r\npage: 166\r\npost: 4\r\nproduct: 15\r\nrevision: 1924\r\nshop_coupon: 4\r\nshop_order: 610\r\nshop_order_refund: 6\r\nslides: 3\r\nticket-meta-fieldset: 2\r\ntribe_events: 28\r\ntribe_organizer: 6\r\ntribe_venue: 8\r\ntribe_wooticket: 815\r\nview: 16\r\nview-template: 10\r\nwp-types-group: 9\r\n\r\n### Security ###\r\n\r\nSecure connection (HTTPS): ✔\r\nHide errors from visitors: ✔\r\n\r\n### Active Plugins (27) ###\r\n\r\nGravity Forms: by rocketgenius – 2.2.6\r\nShortcode Button for Editor: by Signal Boost –\r\nBroken Link Checker: by Janis Elsts\r\nVladimir Prelovac – 1.11.5\r\n\r\nDebug This: by Brian Fegter\r\nChris Dillon – 0.5.2\r\n\r\nDuplicate Page: by mndpsingh287 – 2.5\r\nEvent Tickets Plus: by Modern Tribe\r\nInc. – 4.7\r\n\r\nEvent Tickets: by Modern Tribe\r\nInc. – 4.7\r\n\r\nEWWW Image Optimizer: by Shane Bishop – 4.1.1\r\nExport All URLs: by Atlas Gondal – 3.0\r\nMailChimp for WooCommerce: by MailChimp – 2.1.5 – Not tested with the active version of WooCommerce\r\nMaster Slider: by averta – 3.4.1\r\nRegenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.0.2\r\nPage Builder by SiteOrigin: by SiteOrigin – 2.6.3\r\nSiteOrigin CSS: by SiteOrigin – 1.1.5\r\nSiteOrigin Widgets Bundle: by SiteOrigin – 1.11.5\r\nStyles & Layouts Gravity Forms: by Sushil Kumar – 3.0.3\r\nThe Events Calendar: by Modern Tribe\r\nInc. – 4.6.12\r\n\r\nToolset Module Manager: by OnTheGoSystems – 1.6.9\r\nToolset Types: by OnTheGoSystems – 2.2.22\r\nW3 Total Cache: by Frederick Townes – 0.9.6\r\nBPOINT: by BPOINT Development Team – 1.0.0\r\nWooCommerce Customer/Order CSV Export: by SkyVerge – 4.3.6 – 4.4.3 is available – Not tested with the active version of WooCommerce\r\nWooCommerce: by Automattic – 3.3.3\r\nWordfence Security: by Wordfence – 7.1.0\r\nYoast SEO Premium: by Team Yoast – 7.0.3\r\nWordPress Database Backup: by Austin Matzko – 2.3.3\r\nToolset Views: by OnTheGoSystems – 2.5.2\r\n\r\n### Settings ###\r\n\r\nAPI Enabled: ✔\r\nForce SSL: ✔\r\nCurrency: AUD ($)\r\nCurrency Position: left\r\nThousand Separator: ,\r\nDecimal Separator: .\r\nNumber of Decimals: 2\r\nTaxonomies: Product Types: external (external)\r\ngrouped (grouped)\r\nsimple (simple)\r\nvariable (variable)\r\n\r\nTaxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)\r\nexclude-from-search (exclude-from-search)\r\nfeatured (featured)\r\noutofstock (outofstock)\r\nrated-1 (rated-1)\r\nrated-2 (rated-2)\r\nrated-3 (rated-3)\r\nrated-4 (rated-4)\r\nrated-5 (rated-5)\r\n\r\n\r\n### WC Pages ###\r\n\r\nShop base: #2945 - /shop/\r\nCart: #2946 - /cart/\r\nCheckout: #2947 - /checkout/\r\nMy account: #2948 - /my-account/\r\nTerms and conditions: ❌ Page not set\r\n\r\n### Theme ###\r\n\r\nName: Telethon Speech & Hearing\r\nVersion: 1.0\r\nAuthor URL: \r\nChild Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme\r\nWooCommerce Support: ✔\r\n\r\n### Templates ###\r\n\r\nOverrides: tsh/woocommerce/checkout/form-pay.php\r\ntsh/woocommerce/single-product.php\r\n\r\n\r\n### Customer/Order CSV Export ###\r\n\r\nOrder Export Format: import\r\nCustomer Export Format: default\r\nAutomatically Export Orders: disabled\r\nAutomatically Export Customers: disabled\r\n`\r\n```\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/comments/372990055","html_url":"https://github.com/woocommerce/woocommerce/issues/19392#issuecomment-372990055","issue_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/19392","id":372990055,"user":{"login":"mikejolley","id":90977,"avatar_url":"https://avatars2.githubusercontent.com/u/90977?v=4","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T11:31:07Z","updated_at":"2018-03-14T11:31:07Z","author_association":"OWNER","body":"Why have you checked all the boxes above when you have not done any of those steps?\r\n\r\nYour theme has a custom product page:\r\n\r\n> tsh/woocommerce/single-product.php\r\n\r\nit's likely the stock value is hardcoded in there so our options will be ignored.\r\n\r\nI cannot conform this because unfortunately you didn't share a link to the product page so I cannot find an example to view :) But I did check locally to ensure the option works as it should and I don't see an issue in the core code.\r\n\r\nThanks"}}
{"actor":{"display_login":"mikejolley"}}