How do I stop out of stock items from appearing on my WooCommerce site when using the Layered Nav widget [closed]

// Out of stock for general woocommerce – might help someone function product_in_stock($post, $product) { if (!$product->is_in_stock()) { $STOCK = TRUE; return $STOCK; } else { return false; } } function check_if_out_of_stock(){ global $post,$product; $stock = product_in_stock($post,$product); $output=”<div class=””; $output .= $stock?”instock”:”outofstock”; $output .= ‘”>’; echo $output; } add_action( ‘woocommerce_before_shop_loop_item’, ‘check_if_out_of_stock’); function close_out_of_stock(){ echo “</div>”; … Read more

WP e-commerce sales-view

not really php solution, but that’s how I solved this problem. I deactivated phone and email fields from Store Settings -> Chekout and created custom ones. so now when I go to orders it displays in like Additional Checkout Fields Phone: Email:

E-commerce-like solution [closed]

If you’re looking to have a product catalog, with no option for purchase at this stage, and are looking to potentially have the option for visitors to purchase via the online store at a later date, I’d recommend using WooCommerce along with the Catalog Visibility Options extension. This enables you to disable the purchase functionality, … Read more