Out of stock threshold is not working properly
-
Hi,
Out of stock threshold in product inventory is set to 3 and ?Hide out of stock items from the catalog option is enabled in my website…. Still some products with stock 3 and less are shown as in stock and is visible in the website. Please help
-
Hey there, @sitharaek! Thanks for contacting us. I’m happy to help you.
Can you please share URLs of products you are having this issue with?
If you can also provide screenshots of the back end settings, that would be great too. I recommend using https://snipboard.io. You can share the direct link to the image as a response to this topic.
Furthermore, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:
System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.
Fatal error logs (if any) under WooCommerce > Status > Logs.
You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.Looking forward to your reply.
Have a wonderful day!
Hi Carolm29,
Please find the screenshots of WooCommerce settings and product page, https://snipboard.io/RjdxS8.jpg https://snipboard.io/rWM2GP.jpg
System status report :
WordPress Environment WordPress address (URL): https://ymhonlinepharmacy.com.bh<br>Site address (URL): https://ymhonlinepharmacy.com.bh<br>WC Version: 8.5.1<br>REST API Version: ? 8.5.1<br>WC Blocks Version: ? 11.8.0-dev<br>Action Scheduler Version: ? 3.7.1<br>Log Directory Writable: ?<br>WP Version: 6.4.2<br>WP Multisite: –<br>WP Memory Limit: 256 MB<br>WP Debug Mode: –<br>WP Cron: ?<br>Language: en_US<br>External object cache: – Server Environment Server Info: Apache<br>PHP Version: 8.1.26<br>PHP Post Max Size: 100 MB<br>PHP Time Limit: 300<br>PHP Max Input Vars: 10000<br>cURL Version: 8.5.0<br>OpenSSL/1.1.1w SUHOSIN Installed: –<br>MySQL Version: 8.0.33-25<br>Max Upload Size: 100 MB<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database WC Database Version: 8.5.1<br>WC Database Prefix: wp_5szxf3rz9x_<br>Total Database Size: 200.77MB<br>Database Data Size: 135.58MB<br>Database Index Size: 65.19MB<br>wp_5szxf3rz9x_woocommerce_sessions: Data: 9.02MB + Index: 1.03MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_order_itemmeta: Data: 0.14MB + Index: 0.11MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_shipping_zone_locations: Data: 0.08MB + Index: 0.06MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_shipping_zone_methods: Data: 0.05MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>bookshelf_sales: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_actionscheduler_actions: Data: 29.56MB + Index: 28.11MB + Engine InnoDB<br>wp_5szxf3rz9x_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_actionscheduler_logs: Data: 24.56MB + Index: 17.03MB + Engine InnoDB<br>wp_5szxf3rz9x_bookignpress_double_bookings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_appointment_bookings: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_customers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_customers_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_customize_settings: Data: 0.06MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_debug_payment_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_default_daysoff: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_default_workhours: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_entries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_entries_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_form_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_notifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_other_debug_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_payment_transactions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_services: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_servicesmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookingpress_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_appointments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_customer_appointments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_holidays: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_mailing_campaigns: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_mailing_list_recipients: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_mailing_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_mailing_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_news: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_notifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_orders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_payments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_schedule_item_breaks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_sent_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_series: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_services: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_sessions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_shop: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_staff: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_staff_schedule_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_staff_services: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_stats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_bookly_sub_services: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_comments: Data: 0.09MB + Index: 0.09MB + Engine InnoDB<br>wp_5szxf3rz9x_dgwt_wcas_stats: Data: 0.17MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_gla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_gla_budget_recommendations: Data: 0.19MB + Index: 0.14MB + Engine InnoDB<br>wp_5szxf3rz9x_gla_merchant_issues: Data: 2.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_jetpack_sync_queue: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_5szxf3rz9x_jetpack_waf_blocklog: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_mlw_qm_audit_trail: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_mlw_question_terms: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_5szxf3rz9x_mlw_questions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_mlw_quiz_theme_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_mlw_quizzes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_mlw_results: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_mlw_themes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_options: Data: 11.45MB + Index: 1.53MB + Engine InnoDB<br>wp_5szxf3rz9x_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_pmxi_hash: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_pmxi_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_pmxi_imports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_pmxi_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_postmeta: Data: 28.56MB + Index: 11.03MB + Engine InnoDB<br>wp_5szxf3rz9x_posts: Data: 17.52MB + Index: 1.02MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_sliders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_sliders_bkp: Data: 0.06MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_slides: Data: 0.42MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_slides_bkp: Data: 0.42MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_sgpb_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_sgpb_subscription_error_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_sib_model_contact: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_sib_model_country: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_sms_otp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_sms_otp_attempts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_sms_send: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_sms_subscribes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_sms_subscribes_group: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_term_relationships: Data: 1.38MB + Index: 0.27MB + Engine InnoDB<br>wp_5szxf3rz9x_term_taxonomy: Data: 0.09MB + Index: 0.11MB + Engine InnoDB<br>wp_5szxf3rz9x_termmeta: Data: 0.09MB + Index: 0.13MB + Engine InnoDB<br>wp_5szxf3rz9x_terms: Data: 0.06MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_trp_dictionary_en_us_ar: Data: 0.06MB + Index: 0.05MB + Engine InnoDB<br>wp_5szxf3rz9x_trp_gettext_ar: Data: 0.09MB + Index: 0.11MB + Engine InnoDB<br>wp_5szxf3rz9x_trp_gettext_en_us: Data: 0.13MB + Index: 0.14MB + Engine InnoDB<br>wp_5szxf3rz9x_trp_original_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_5szxf3rz9x_trp_original_strings: Data: 0.05MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_usermeta: Data: 0.17MB + Index: 0.06MB + Engine InnoDB<br>wp_5szxf3rz9x_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_5szxf3rz9x_vision: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_product_meta_lookup: Data: 0.27MB + Index: 0.50MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wfpklist_template_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wpaas_activity_log: Data: 1.52MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB<br>wp_5szxf3rz9x_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB<br>wp_5szxf3rz9x_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wpml_mails: Data: 1.52MB + Index: 0.00MB + Engine InnoDB<br>wp_5szxf3rz9x_wt_sc_coupon_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_yoast_indexable: Data: 2.52MB + Index: 0.89MB + Engine InnoDB<br>wp_5szxf3rz9x_yoast_indexable_hierarchy: Data: 0.13MB + Index: 0.23MB + Engine InnoDB<br>wp_5szxf3rz9x_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB<br>wp_5szxf3rz9x_yoast_primary_term: Data: 0.11MB + Index: 0.13MB + Engine InnoDB<br>wp_5szxf3rz9x_yoast_seo_links: Data: 0.19MB + Index: 0.14MB + Engine InnoDB Post Type Counts attachment: 2577<br>awl-labels: 1<br>books: 2<br>cookielawinfo: 6<br>custom_css: 1<br>customize_changeset: 6<br>da_image: 1<br>elementor_library: 17<br>elementor-hf: 3<br>fpf_fields: 1<br>jp_img_sitemap: 2<br>jp_img_sitemap_index: 1<br>jp_sitemap: 1<br>jp_sitemap_master: 1<br>jp_vid_sitemap: 1<br>language_switcher: 4<br>lcg_mainpost: 38<br>lcg_shortcode: 1<br>logoshowcase: 61<br>mc4wp-form: 1<br>nav_menu_item: 97<br>oembed_cache: 11<br>page: 33<br>popup: 3<br>popup_theme: 8<br>popupbuilder: 1<br>post: 2<br>product: 1858<br>product_variation: 329<br>revision: 322<br>seedprod: 2<br>shop_coupon: 6<br>shop_order: 81<br>sp_logo_carousel: 1<br>wcccf: 3<br>wccpf: 1<br>wlwl_email: 12<br>wp_template: 2<br>wpc_product_option: 1<br>wpcf7_contact_form: 4<br>wpcode: 3 Security Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (39) FiboSearch - AJAX Search for WooCommerce: by FiboSearch Team – 1.26.1<br>BookingPress Appointment Booking: by Repute Infosystems – 1.0.80<br>Change wp-admin login: by wpexpertsio – 1.1.8<br>Classic Editor: by WordPress Contributors – 1.6.3<br>Classic Widgets: by WordPress Contributors – 0.3<br>Click to Chat: by HoliThemes – 3.32<br>Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd: by SeedProd – 6.15.21<br>Contact Form 7: by Takayuki Miyoshi – 5.8.6<br>CookieYes | GDPR Cookie Consent: by CookieYes – 3.1.8<br>Custom Currency For WooCommerce: by I am Programmer – 7.2.0<br>Custom links in Elementor Image Carousel: by Charlie Etienne – 1.1.1<br>WooCommerce Medical Prescription Attachment: by DevDiggers – 1.0.1<br>Draw Attention: by N Squared – 2.0.19<br>Elementor: by Elementor.com – 3.18.3<br>Envato Market: by Envato – 2.0.11<br>Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.23.1<br>Google Listings and Ads: by WooCommerce – 2.5.15<br>GTranslate: by Translate AI Multilingual Solutions – 3.0.5<br>Elementor Header & Footer Builder: by Brainstorm Force<br>Nikhil Chavan – 1.6.23 Jetpack: by Automattic – 13.0<br>Make Column Clickable Elementor: by Fernando Acosta – 1.4.0<br>Popup Builder: by Looking Forward Software Incorporated. – 4.2.6<br>Product Recommendation Quiz for eCommerce: by RevenueHunt – 2.2.5<br>SMTP Mailer: by naa986 – 1.1.11<br>SVG Support: by Benbodhi – 2.5.5<br>WooCommerce - Tap WebConnect: by Tap Payments – 2.2<br>User Role Editor: by Vladimir Garagulya – 4.64.1<br>Vision: by Avirtum – 1.7.1<br>WC Fields Factory: by Saravana Kumar K – 4.1.8<br>Lucky Wheel for WooCommerce: by VillaTheme – 1.1.2<br>WPC Smart Compare for WooCommerce: by WPClever – 6.1.9<br>WPC Smart Quick View for WooCommerce: by WPClever – 3.5.5<br>WPC Smart Wishlist for WooCommerce: by WPClever – 4.8.0<br>Variation Swatches for WooCommerce: by Emran Ahmed – 2.0.30<br>WooCommerce: by Automattic – 8.5.1<br>Yoast SEO: by Team Yoast – 21.8.1<br>WP Logo Showcase Responsive Slider and Carousel: by WP OnlineSupport<br>Essential Plugin – 3.7 WPForms Lite: by WPForms – 1.8.6.3<br>YMHNEW API: by Webtree – 0.1 Inactive Plugins (2) Brevo - WooCommerce Email Marketing: by Brevo – 4.0.10<br>Newsletter, SMTP, Email marketing and Subscribe forms by Brevo: by Brevo – 3.1.74 Dropin Plugins (2) db-error.php: db-error.php<br>object-cache.php: object-cache.php Must Use Plugins (2) Object Cache Pro (MU): by Rhubarb Group – 1.18.2<br>System Plugin: by – 4.106.0 Settings API Enabled: ?<br>Force SSL: –<br>Currency: BHD (BHD)<br>Currency Position: left_space<br>Thousand Separator: ,<br>Decimal Separator: .<br>Number of Decimals: 3<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)<br>woosb (woosb) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5) Connected to Woo.com: –<br>Enforce Approved Product Download Directories: ?<br>HPOS feature screen enabled: –<br>HPOS feature enabled: –<br>Order datastore: WC_Order_Data_Store_CPT<br>HPOS data sync enabled: – WC Pages Shop base: #10 - /shop/<br>Cart: #11 - /cart/<br>Checkout: #12 - /checkout/<br>My account: #13 - /my-account/<br>Terms and conditions: #4410 - /terms-and-conditions/ Theme Name: Pharmacy2 Child<br>Version: 5.1.4<br>Author URL:<br>Child Theme: ?<br>Parent Theme Name: Pharmacy2<br>Parent Theme Version: 5.1.4<br>Parent Theme Author URL: https://wpopal.com/<br>WooCommerce Support: ? Templates Overrides: pharmacy2/woocommerce/cart/mini-cart.php<br>pharmacy2/woocommerce/checkout/form-checkout.php<br>pharmacy2/woocommerce/content-single-product.php<br>pharmacy2/woocommerce/content-widget-product.php<br>pharmacy2/woocommerce/content-widget-reviews.php<br>pharmacy2-child/woocommerce/emails/admin-new-order.php<br>pharmacy2-child/woocommerce/emails/customer-invoice.php<br>pharmacy2-child/woocommerce/emails/customer-new-account.php<br>pharmacy2-child/woocommerce/emails/customer-reset-password.php<br>pharmacy2/woocommerce/loop/loop-end.php<br>pharmacy2/woocommerce/loop/loop-start.php<br>pharmacy2/woocommerce/myaccount/form-login.php<br>pharmacy2/woocommerce/order/form-tracking.php<br>pharmacy2/woocommerce/product-searchform.php<br>pharmacy2/woocommerce/single-product/meta.php<br>pharmacy2/woocommerce/single-product/product-image.php<br>pharmacy2/woocommerce/single-product/related.php<br>pharmacy2/woocommerce/single-product/tabs/tabs.php<br>pharmacy2/woocommerce/single-product/up-sells.php Admin Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>product-variation-management<br>product-virtual-downloadable<br>product-external-affiliate<br>product-grouped<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page Disabled Features: customize-store<br>minified-js<br>new-product-management-experience<br>product-linked<br>settings<br>async-product-editor-category-field Daily Cron: ? Next scheduled: 2024-01-13 22:48:06 +03:00<br>Options: ?<br>Notes: 14<br>Onboarding: completed Action Scheduler Complete: 76,624<br>Oldest: 2023-11-13 14:36:26 +0000<br>Newest: 2024-01-23 07:51:06 +0000 Failed: 20,627<br>Oldest: 2022-10-28 21:49:31 +0000<br>Newest: 2024-01-23 07:02:31 +0000 Pending: 8<br>Oldest: 2024-01-23 10:08:04 +0000<br>Newest: 2024-01-30 07:02:31 +0000 Status report information Generated at: 2024-01-23 11:01:43 +03:00<br>
Thanks,
Hi @sitharaek,
From the screenshots and system status report you’ve shared, it seems like your WooCommerce settings are configured correctly.
The “Out of Stock Threshold” and “Hide out of Stock items from the Catalog” options work as follows: when the inventory of a product drops to 3 or less, it should be marked as “Out of Stock” and hidden from the catalog. However, the products are still being shown as “In Stock” which is not the expected behavior.
This could be due to a conflict with a theme or plugin, or possibly a caching issue. Here’s what I recommend to troubleshoot:
- Clear all caches related to your site. This includes browser cache, plugin cache, server cache, and CDN cache (if any).
- Temporarily switch to a default WordPress theme (like Storefront) and see if the issue persists.
- Disable all plugins except for WooCommerce to see if the issue persists. If it resolves, then enable your plugins one by one to find out which one is causing the conflict.
- If the issue still persists, please provide us with the error logs. You can find them under WooCommerce > Status > Logs. You could copy and share it via Mozilla Community Pastebin and share the link here.
Please let us know the results of these steps so we can further assist you.
Hi Shameem,
Tried all steps but the issue is still there. Please find the link https://paste.mozilla.org/SqgOEuXy
Thanks,
Hello sitharaek
Thank you for your response.
To assist you further, could you please confirm if the products with an inventory count less than the out-of-stock threshold (3 in your case) are appearing on the website’s front end?
Also, during my investigation, I searched for a product named “Glomox” but it did not show up in the search results.
Understanding whether these products are just marked as ‘In Stock’ at the backend or if they are indeed being displayed to customers on the front end will help us in pinpointing the underlying issue more accurately.
Once I have a bit more information from you, I’ll be able to delve deeper into this and provide you with a resolution.
I appreciate your efforts and patience as we work to sort this out. ??
Best regards.
Hi Zubair,
Thank you for the response and yes, the products with stock 3 or less are not showing in the front end. But they are marked as in stock in the backend, also when try to view those products from backend it shows as in stock.
Some in stock products with stock 4 and more are also showing in out of stock in the backend. https://snipboard.io/nTahOW.jpg
In this screenshot i have sorted the product as out of stock but some products with more than 3 stock quantity are also showing and when i searched those products in the front end they are not showing up.
Thanks & Regards,
Hi there @sitharaek ??
Thank you for reaching back, clarifying things further.
Let’s focus on one product, in order to focus troubleshooting efforts more effectively.
Could you please provide us with a screenshot of its product data screen, so that we can see what you are describing?
Below, is an example from a sample product, on a test installation of mine.
Looking forward to hearing from you!
Hi Pepe,
Thank you for your response and please find the screenshot https://snipboard.io/WsqP4Q.jpg
Best Regards,
Hey, @sitharaek! Thank you.
From your screenshots, all the settings seem to be correct.
I was also not able to replicate this issue with the settings you shared on my site.
Just to confirm, you did already try deactivating all plugins but WooCommerce and switching to Storefront, as we mentioned, correct?
Do you have any custom code on the website?
Can you please enable debugging mode as exemplified here to see if there’s any clues that can help us investigate this?
Looking forward to your reply.
Have a wonderful day!
Hi,
Yes, i did deactivated all other plugins and also changed the theme.
Please find the custom codes we use below,
add_filter(‘woocommerce_get_country_locale’, function($locales){
foreach ($locales as $key => $value) {
$locales[$key][‘postcode’][‘required’] = true;
}
return $locales;
});add_filter( ‘woocommerce_default_address_fields’ , ‘bbloomer_rename_state_province’, 9999 );
function bbloomer_rename_state_province( $fields ) {
$fields[‘postcode’][‘label’] = ‘Block’;
return $fields;
}function disable_right_click() {
echo “”;
}
add_action( ‘wp_footer’, ‘disable_right_click’ );if (!function_exists(‘pharmacy2_woocommerce_get_product_stock’)) {
function pharmacy2_woocommerce_get_product_stock() {
return;
}
}.woocommerce-checkout .select, .woocommerce-checkout textarea, .woocommerce-checkout input[type="url"], .woocommerce-checkout input[type="tel"], .woocommerce-checkout input[type="text"], .woocommerce-checkout input[type="date"], .woocommerce-checkout input[type="email"], .woocommerce-checkout input[type="number"], .woocommerce-checkout input[type="search"], .woocommerce-checkout input[type="password"] {
border-color:silver !important;
} .site { background-color: #fcf7f7 ; } @media (max-width: 576px){
.woocommerce ul.products li.product{
width: 50% !important;
margin: 2px auto;
max-width: 50% !important;
flex: 0 0 50% !important;
}
} .group-label .new-label {
display: none !important;
} @media(max-width: 640px){
.product-block:hover .product-transition .group-action .shop-action .woosc-btn, .product-block:hover .product-transition .group-action .shop-action .woosq-btn, .product-block:hover .product-transition .group-action .shop-action .woosw-btn, .product-block:hover .product-transition .group-action .shop-action a[class=product_type_]{ -webkit-animation-name: unset; animation-duration:unset; } .product-block:hover .price { opacity: 1; visibility: unset; } .product-block a[class=product_type_] {
background-color: var(--e-global-color-primary);
color: #fff;
}
.product-block a[class*=product_type_]{
position: relative;
}
}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger img {
display: none !important;
font-size: 0;
} @media (max-width: 767px){
.single-product .woocommerce-tabs ul.tabs {
display: block !important;
}
.single-product .woocommerce-tabs h2.resp-accordion.active {
display: none;
}
.single-product .woocommerce-tabs h2.resp-accordion{
display: none;
}
.single-product .woocommerce-tabs ul.tabs li a{
font-size: 16px;
}
}Thank you
Hey there ??
To clarify, did you add the product quantity before setting the “Out of Stock threshold” in WooCommerce → Settings → Products → Inventory?
If so, can you go to the “All products” page and find any product experiencing this issue. Next, click on “Quick edit” and then click “Update” without making any changes, and see if this makes any difference?
If this resolves the issue, this is something I am able to reproduce on my test site, as it seems the global “Out of stock threshold” is not respected until the product is republished.
After checking, it seems this has already been reported on GitHub here:
https://github.com/woocommerce/woocommerce/issues/37747
Cheers!
- The topic ‘Out of stock threshold is not working properly’ is closed to new replies.