Woocommerce stock messages not displaying
-
On a site i am currently working on, the stock level is not being displayed on the frontend. I have inspected the code and there is an empty <p> with the class=stock, but if a product is out of stock, it doesn’t read Out of Stock. I’ve checked and settings are in the settings screen for out of stock = 0, and low stock = 2, with both turned on. The product linked in this post shows out of stock on the backend, but no alert shows on the frontend.
Any ideas would be great!
Thanks,
The page I need help with: [log in to see the link]
-
Hi there!
Oh wow, this is interesting! The notice should be there as on my test site with Storefront theme active:
Link to image: https://cld.wthms.co/WOcC6OCan you please advise if you see it if you switch your theme? I want to rule it out as a root cause.
Also, please send us a copy of your site’s System Status. You can find it via WooCommerce > Status > Get system report and then “Copy for support”. Once you’ve done that, paste it here in your response.
Cheers!
Hi Elvira,
It does seem to be something i’ve done in the theme, but i’m not sure what. Might take a little investigation…
### WordPress Environment ### WordPress address (URL): http://peonylane.super-digital.uk Site address (URL): http://peonylane.super-digital.uk WC Version: 3.6.4 Log Directory Writable: ✔ WP Version: ❌ 5.1.1 - There is a newer version of WordPress available (5.2.1) WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.0.33 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version PHP Post Max Size: 24 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.64.0 OpenSSL/1.0.2r SUHOSIN Installed: – MySQL Version: 5.6.43 Max Upload Size: 24 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 3.5.7 WC Database Prefix: wp_ MaxMind GeoIP Database: ✔ Total Database Size: 8.96MB Database Data Size: 7.06MB Database Index Size: 1.90MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB wp_aws_cache: Data: 0.04MB + Index: 0.00MB wp_aws_index: Data: 0.25MB + Index: 0.00MB wp_commentmeta: Data: 0.02MB + Index: 0.03MB wp_comments: Data: 0.02MB + Index: 0.09MB wp_links: Data: 0.02MB + Index: 0.02MB wp_nobuna_backups: Data: 0.02MB + Index: 0.03MB wp_nobuna_downloads: Data: 0.02MB + Index: 0.03MB wp_nobuna_products: Data: 0.02MB + Index: 0.00MB wp_options: Data: 2.05MB + Index: 0.06MB wp_pmxi_files: Data: 0.00MB + Index: 0.00MB wp_pmxi_history: Data: 0.00MB + Index: 0.00MB wp_pmxi_images: Data: 0.02MB + Index: 0.01MB wp_pmxi_imports: Data: 0.02MB + Index: 0.00MB wp_pmxi_posts: Data: 0.00MB + Index: 0.00MB wp_pmxi_templates: Data: 0.00MB + Index: 0.00MB wp_postmeta: Data: 2.52MB + Index: 0.80MB wp_posts: Data: 1.52MB + Index: 0.20MB wp_termmeta: Data: 0.02MB + Index: 0.03MB wp_terms: Data: 0.02MB + Index: 0.03MB wp_term_relationships: Data: 0.02MB + Index: 0.02MB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB wp_usermeta: Data: 0.06MB + Index: 0.03MB wp_users: Data: 0.02MB + Index: 0.05MB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB wp_wc_product_meta_lookup: Data: 0.00MB + Index: 0.01MB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB wp_yoast_seo_links: Data: 0.02MB + Index: 0.02MB wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB ### Post Type Counts ### acf-field: 110 acf-field-group: 5 attachment: 414 customize_changeset: 2 nav_menu_item: 35 page: 11 post: 18 product: 87 product_variation: 43 revision: 137 scheduled-action: 1 shop_coupon: 1 shop_order: 1 wc_category_slider: 1 wpautoterms_page: 2 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ❌ Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates. Hide errors from visitors: ✔ ### Active Plugins (23) ### Advanced Custom Fields: Google Font Selector: by Daniel Pataki – 3.0.1 Share Buttons by AddThis: by The AddThis Team – 6.2.3 Admin Menu Editor: by Janis Elsts – 1.9 Advanced Custom Fields PRO: by Elliot Condon – 5.7.7 Advanced Woo Search: by ILLID – 1.72 Classic Editor: by WordPress Contributors – 1.5 Contact Form 7: by Takayuki Miyoshi – 5.1.3 Duplicate Post: by Enrico Battocchi – 3.2.2 Jetpack by WordPress.com: by Automattic – 7.3.1 MultiLine files for Contact Form 7: by Zluck Solutions – 1.7 Nobuna Plugins: by Nobuna – 2.6 Simple Masonry Layout: by Raju Tako – 1.3.2 WooCommerce Category Slider: by pluginever – 4.0.1 WooCommerce PayPal Checkout Gateway: by WooCommerce – 1.6.14 WooCommerce PayPal Powered by Braintree Gateway: by WooCommerce – 2.2.4 – Not tested with the active version of WooCommerce WooCommerce Stripe Gateway: by WooCommerce – 4.1.16 Woocommerce Login / Signup Lite: by phoeniixx – 1.6.7 – Not tested with the active version of WooCommerce WooCommerce Services: by Automattic – 1.20.0 WooCommerce Stock Manager: by Vladislav Musílek – 1.2.8 – Not tested with the active version of WooCommerce WooCommerce: by Automattic – 3.6.4 Yoast SEO: by Team Yoast – 11.3 – Not tested with the active version of WooCommerce WP All Import Pro: by Soflyy – 4.5.6 WP All Import - WooCommerce Add-On Pro: by Soflyy – 3.0.7 ### Inactive Plugins (6) ### Contact Form 7 Multi-Step Forms: by Webhead LLC. – 3.1 Product Input Fields for WooCommerce: by Tyche Softwares – 1.2.4 – Not tested with the active version of WooCommerce Social Media and Share Icons (Ultimate Social Media): by UltimatelySocial – 2.2.0 Super Digital Dashboard: by Super Digital Team – 1.2 WooCommerce Braintree Payment Gateway: by wp.insider – 1.9.1 – Not tested with the active version of WooCommerce YITH WooCommerce Zoom Magnifier: by YITH – 1.3.9 ### Must Use Plugins (1) ### Local by Flywheel Relative URL (for Live Links): by Flywheel – 1.0 ### Settings ### API Enabled: – Force SSL: – Currency: GBP (£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #6 - /shop/ Cart: #7 - /cart/ Checkout: #8 - /checkout/ My account: #9 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Version: – 0 is available Author URL: Child 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 WooCommerce Support: ❌ Not declared ### Templates ### Overrides: supertheme/woocommerce/archive-product.php supertheme/woocommerce/auth/footer.php supertheme/woocommerce/auth/form-grant-access.php supertheme/woocommerce/auth/form-login.php supertheme/woocommerce/auth/header.php supertheme/woocommerce/cart/cart-empty.php supertheme/woocommerce/cart/cart-item-data.php supertheme/woocommerce/cart/cart-shipping.php version 3.5.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/cart/cart-totals.php supertheme/woocommerce/cart/cart.php supertheme/woocommerce/cart/cross-sells.php supertheme/woocommerce/cart/mini-cart.php supertheme/woocommerce/cart/proceed-to-checkout-button.php supertheme/woocommerce/cart/shipping-calculator.php supertheme/woocommerce/checkout/cart-errors.php supertheme/woocommerce/checkout/form-billing.php version 3.0.9 is out of date. The core version is 3.6.0 supertheme/woocommerce/checkout/form-checkout.php supertheme/woocommerce/checkout/form-coupon.php supertheme/woocommerce/checkout/form-login.php supertheme/woocommerce/checkout/form-pay.php supertheme/woocommerce/checkout/form-shipping.php version 3.0.9 is out of date. The core version is 3.6.0 supertheme/woocommerce/checkout/order-receipt.php supertheme/woocommerce/checkout/payment-method.php supertheme/woocommerce/checkout/payment.php supertheme/woocommerce/checkout/review-order.php supertheme/woocommerce/checkout/terms.php supertheme/woocommerce/checkout/thankyou.php supertheme/woocommerce/content-product.php version 3.4.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/content-product_cat.php supertheme/woocommerce/content-single-product.php version 3.4.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/content-widget-product.php supertheme/woocommerce/content-widget-reviews.php supertheme/woocommerce/emails/admin-cancelled-order.php version 3.5.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/emails/admin-failed-order.php supertheme/woocommerce/emails/admin-new-order.php supertheme/woocommerce/emails/customer-completed-order.php supertheme/woocommerce/emails/customer-invoice.php supertheme/woocommerce/emails/customer-new-account.php supertheme/woocommerce/emails/customer-note.php version 3.5.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/emails/customer-on-hold-order.php supertheme/woocommerce/emails/customer-processing-order.php supertheme/woocommerce/emails/customer-refunded-order.php supertheme/woocommerce/emails/customer-reset-password.php supertheme/woocommerce/emails/email-addresses.php supertheme/woocommerce/emails/email-customer-details.php supertheme/woocommerce/emails/email-downloads.php supertheme/woocommerce/emails/email-footer.php supertheme/woocommerce/emails/email-header.php supertheme/woocommerce/emails/email-order-details.php supertheme/woocommerce/emails/email-order-items.php supertheme/woocommerce/emails/email-styles.php supertheme/woocommerce/emails/plain/admin-cancelled-order.php version 3.5.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/emails/plain/admin-failed-order.php supertheme/woocommerce/emails/plain/admin-new-order.php supertheme/woocommerce/emails/plain/customer-completed-order.php supertheme/woocommerce/emails/plain/customer-invoice.php supertheme/woocommerce/emails/plain/customer-new-account.php supertheme/woocommerce/emails/plain/customer-note.php supertheme/woocommerce/emails/plain/customer-on-hold-order.php supertheme/woocommerce/emails/plain/customer-processing-order.php supertheme/woocommerce/emails/plain/customer-refunded-order.php supertheme/woocommerce/emails/plain/customer-reset-password.php supertheme/woocommerce/emails/plain/email-addresses.php supertheme/woocommerce/emails/plain/email-customer-details.php supertheme/woocommerce/emails/plain/email-downloads.php supertheme/woocommerce/emails/plain/email-order-details.php supertheme/woocommerce/emails/plain/email-order-items.php supertheme/woocommerce/global/breadcrumb.php supertheme/woocommerce/global/form-login.php version 3.3.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/global/quantity-input.php version 3.4.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/global/sidebar.php supertheme/woocommerce/global/wrapper-end.php supertheme/woocommerce/global/wrapper-start.php supertheme/woocommerce/loop/add-to-cart.php supertheme/woocommerce/loop/loop-end.php supertheme/woocommerce/loop/loop-start.php supertheme/woocommerce/loop/no-products-found.php supertheme/woocommerce/loop/orderby.php version 3.3.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/loop/pagination.php supertheme/woocommerce/loop/price.php supertheme/woocommerce/loop/rating.php version 3.0.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/loop/result-count.php supertheme/woocommerce/loop/sale-flash.php supertheme/woocommerce/myaccount/dashboard.php supertheme/woocommerce/myaccount/downloads.php supertheme/woocommerce/myaccount/form-add-payment-method.php supertheme/woocommerce/myaccount/form-edit-account.php supertheme/woocommerce/myaccount/form-edit-address.php version 3.4.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/myaccount/form-login.php version 3.5.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/myaccount/form-lost-password.php supertheme/woocommerce/myaccount/form-reset-password.php supertheme/woocommerce/myaccount/lost-password-confirmation.php supertheme/woocommerce/myaccount/my-account.php supertheme/woocommerce/myaccount/my-address.php supertheme/woocommerce/myaccount/my-downloads.php supertheme/woocommerce/myaccount/my-orders.php supertheme/woocommerce/myaccount/navigation.php supertheme/woocommerce/myaccount/orders.php supertheme/woocommerce/myaccount/payment-methods.php supertheme/woocommerce/myaccount/view-order.php supertheme/woocommerce/notices/error.php supertheme/woocommerce/notices/notice.php supertheme/woocommerce/notices/success.php supertheme/woocommerce/order/form-tracking.php version 3.4.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/order/order-again.php supertheme/woocommerce/order/order-details-customer.php supertheme/woocommerce/order/order-details-item.php supertheme/woocommerce/order/order-details.php supertheme/woocommerce/order/order-downloads.php supertheme/woocommerce/order/tracking.php supertheme/woocommerce/product-searchform.php supertheme/woocommerce/single-product/add-to-cart/external.php supertheme/woocommerce/single-product/add-to-cart/grouped.php supertheme/woocommerce/single-product/add-to-cart/simple.php supertheme/woocommerce/single-product/add-to-cart/variable.php supertheme/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php supertheme/woocommerce/single-product/add-to-cart/variation.php supertheme/woocommerce/single-product/meta.php supertheme/woocommerce/single-product/photoswipe.php supertheme/woocommerce/single-product/price.php supertheme/woocommerce/single-product/product-attributes.php version 3.1.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/single-product/product-image.php supertheme/woocommerce/single-product/product-thumbnails.php supertheme/woocommerce/single-product/rating.php version 3.1.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/single-product/related.php supertheme/woocommerce/single-product/review-meta.php supertheme/woocommerce/single-product/review-rating.php version 3.1.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/single-product/review.php supertheme/woocommerce/single-product/sale-flash.php supertheme/woocommerce/single-product/share.php supertheme/woocommerce/single-product/short-description.php supertheme/woocommerce/single-product/stock.php supertheme/woocommerce/single-product/tabs/additional-information.php supertheme/woocommerce/single-product/tabs/description.php supertheme/woocommerce/single-product/tabs/tabs.php supertheme/woocommerce/single-product/title.php supertheme/woocommerce/single-product/up-sells.php supertheme/woocommerce/single-product-reviews.php version 3.5.0 is out of date. The core version is 3.6.0 supertheme/woocommerce/single-product.php supertheme/woocommerce/taxonomy-product_cat.php supertheme/woocommerce/taxonomy-product_tag.php Outdated Templates: ❌ Learn how to update ### Braintree (Credit Card) ### Environment: Production Tokenization Enabled: – Debug Mode: Off ### Braintree (PayPal) ### Environment: Production Tokenization Enabled: – Debug Mode: Off ### Action Scheduler ### Complete: 1 Oldest: 2019-05-29 08:27:52 +0000 Newest: 2019-05-29 08:27:52 +0000 Pending: 0 Oldest: – Newest: – Canceled: 0 Oldest: – Newest: – In-progress: 0 Oldest: – Newest: – Failed: 0 Oldest: – Newest: –This is the status report, the weird thing is that in my theme, the p tag is there for stock, but it doesn’t add the out-of-stock class or the text.
Hi there @adamsuper,
Has the issue started recently?
I see that your WooCommerce plugin version doesn’t match its database version:
WC Version: 3.6.4 WC Database Version: 3.5.7Can you please run Update database tool from WooCommerce > Status > Tools and check if it makes a difference? It might not, but this mismatch may create issues with your products indeed.
-
This reply was modified 6 years, 11 months ago by
Elvira K..
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
-
This reply was modified 6 years, 11 months ago by
The topic ‘Woocommerce stock messages not displaying’ is closed to new replies.