Remove Unnecessary Profile Section Items

if( is_admin() ){ remove_action( ‘admin_color_scheme_picker’, ‘admin_color_scheme_picker’ ); add_action( ‘personal_options’, ‘prefix_hide_personal_options’ ); } function prefix_hide_personal_options() { ?>Continue reading

Hide Private Products in Admin Frontend

/** * @snippet Hide Private Products @ WooCommerce Frontend * @how-to Get CustomizeWoo.com FREE * @author Rodolfo Melogli * @compatible WooCommerce 8 * @community https://businessbloomer.com/club/ */ add_filter( ‘posts_where’, ‘bbloomer_no_private_products_posts_frontend_administrator’ ); function bbloomer_no_private_products_posts_frontend_administrator( $where ) { if ( is_admin() ) return…Continue reading

Hide Private Products in Admin Frontend

/** * @snippet Hide Private Products @ WooCommerce Frontend * @how-to Get CustomizeWoo.com FREE * @author Rodolfo Melogli * @compatible WooCommerce 8 * @community https://businessbloomer.com/club/ */ add_filter( ‘posts_where’, ‘bbloomer_no_private_products_posts_frontend_administrator’ ); function bbloomer_no_private_products_posts_frontend_administrator( $where ) { if ( is_admin() ) return…Continue reading

Minimum Order Restriction

// // minimum order amount for checkout // // add_action(‘woocommerce_checkout_process’, ‘wc_minimum_order_amount’); add_action(‘woocommerce_before_cart’ , ‘wc_minimum_order_amount’); function wc_minimum_order_amount() { $minimum = 200; $cart_total = WC()->cart->total; $shipping_total = WC()->cart->get_shipping_total(); if (($cart_total – $shipping_total) < $minimum) { if (is_cart()) { wc_print_notice( sprintf('Your current order…Continue reading

Minimum Order Restriction

// // minimum order amount for checkout // // add_action(‘woocommerce_checkout_process’, ‘wc_minimum_order_amount’); add_action(‘woocommerce_before_cart’ , ‘wc_minimum_order_amount’); function wc_minimum_order_amount() { $minimum = 200; $cart_total = WC()->cart->total; $shipping_total = WC()->cart->get_shipping_total(); if (($cart_total – $shipping_total) < $minimum) { if (is_cart()) { wc_print_notice( sprintf('Your current order…Continue reading

Hide Variation Dropdown if Product Out of Stock

add_action( ‘woocommerce_before_single_product’, ‘custom_check_variations_stock_status’ ); function custom_check_variations_stock_status() { global $product; if ( $product->is_type( ‘variable’ ) ) { $variations = $product->get_available_variations(); $all_out_of_stock = true; foreach ( $variations as $variation ) { if ( $variation[‘is_in_stock’] ) { $all_out_of_stock = false; break; } }…Continue reading