fouadabuhattab
Forum Replies Created
-
Hi, I cleared WooCommerce transients and Expired transients but that’ does not show any effects on my products page or in the front end for each product
Hi, I’m using this code snippet to hide out of stock products
/* Hide out of Stock Products in WooCommerce */ add_filter( 'pre_option_woocommerce_hide_out_of_stock_items', 'misha_hide_out_of_stock' ); function misha_hide_out_of_stock( $option ) { if( is_admin() ) { // do nothing in WordPress admin return $option; } $option = 'yes'; return $option; }
Hello, I disabled this option in my staging website with the default WordPress Theme, But the problem in rendering the price for out-of-stock variable products still exists in the website.
how we can solve these problem without causing any issues?
Hi, The isuue of the disappearance of the price of some of variable products when they are out of stock still exting in my website, when i editing any products the price exist in the all variation in the woocommerce tab but to appear this price in the front end i need to enter the price and update the product, Until now i updates all plugins, themes and woocommerce templates in my theme in the production site.
Also Creating a staging site, deactivated all plugins and current theme then activated the default wordpress theme 2023 and woocommerce plugin only to confirm if there is any conflict with any plugin or theme but the isuue still existing I’m ready to send the support report from my live and staging site, all of the following images in the link from my staging site for the issue explanation and system status in production and staging websites
Drive Link to images and system status for staging and production websites
Thanks for your efforts, enable this option causes the problem, Now I hide the out-of-stock product from the shop page, categories pages, and related products using a PHP code, in the same time these products are accessible from search engines and search forms in my website, But exit add to cart button in the out of stock product pages is not good,
For that, I think you need to recheck the whole process when enabling Hide out-of-stock items from the catalog to be more suitable for stores.Thanks for your response,
After rechecking my website, I think the cause of the problem is enabling Hide out-of-stock items from the catalog from the settings in the inventory tab, when I disabled it the price displayed on the product page.
https://drive.google.com/drive/folders/1qabJz1cwJOt8QyarLyyw8s8GIR68tF_5?usp=sharing
Can you check that on your test site?
Forum: Plugins
In reply to: [WooCommerce] display the product price for out of stock productsHi @margaretwporg, I requested the woodmart theme update is their woo-commerce templates in the theme files
I run the pending actions but the problem is still existing