Unable to change stock status in woocomerce
-
Some items are showing as Out of Stock. I have gone into the Edit Product both individually and in Bulk and changed the status, but when I go back to the All Products list it is still showing as Out of Stock.
I have tried turning off Inventory Control in WooCommerce->Settings->Products->Enable stock management (off) and now it doesn’t show out of stock in the list. However if I browse to the Product Page it says “This product is currently out of stock and unavailable.” and it will not give me the Add to Cart button.
I found this in the logs:
2021-05-28T10:49:40+00:00 CRITICAL Uncaught Error: Call to a member function is_in_stock() on bool in /public_html/example.com/wp-content/plugins/xxhidenxx-core/inc/plugins/woocommerce/shortcodes/product-preview/product-preview.php:206
Stack trace:
#0 /public_html/example.com/wp-content/plugins/xxhidenxx-core/inc/plugins/woocommerce/shortcodes/product-preview/product-preview.php(154): xxhidenxxCoreProductPreviewShortcode->get_item_add_to_cart_html(Array)
#1 /public_html/example.com/wp-content/plugins/qode-framework/inc/shortcodes/translators/elementor/class-qodeframeworkelementor-translator.php(502): xxhidenxxCoreProductPreviewShortcode->render(Array)
#2 /public_html/example.com/wp-content/plugins/xxhidenxx-core/inc/plugins/elementor/elementor-widget-base.php(55): QodeFrameworkElementor_Translator->create_render(Object(xxhidenxxCoreProductPreviewShortcode), Array)
#3 /public_html/example.com/wp-content/plugins/elementor/includes/base/c in /public_html/example.com/wp-content/plugins/xxhidenxx-core/inc/plugins/woocommerce/shortcodes/product-preview/product-preview.php on line 206`
- The topic ‘Unable to change stock status in woocomerce’ is closed to new replies.