Support » Plugin: WooCommerce Quick/Bulk Order Form » Search all products with catalog visibility “Search only”

  • Resolved intheraw

    (@intheraw)


    Currently when i set my products to “Search only” in catalog visibility options
    https://prnt.sc/s7j3ae I cannot search it in quick/bulk form. is there anyway to include it so i can search it in the form?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support alexmigf

    (@alexmigf)

    Hello @intheraw

    Within our plugin is not possible, but you can use this filter inside your functions.php file:

    add_action( 'wc_bof_render_standard_template_product_search', 'wc_bof_override_visibility_hook', -1 );
    add_action( 'wc_bof_render_variation_template_product_search', 'wc_bof_override_visibility_hook', -1 );
    function wc_bof_override_visibility_hook() {
    	add_filter( 'woocommerce_product_get_catalog_visibility', 'wc_bof_override_catalog_visibility', 10, 2 );
    }
    function wc_bof_override_catalog_visibility( $visibility, $product ) {
    	if ( $visibility == 'search' ) {
    		$visibility = 'visible';
    	}
    	return $visibility;
    }

    If you never worked with adctions/filters you should read this documentation.

    • This reply was modified 10 months, 1 week ago by alexmigf.
    Thread Starter intheraw

    (@intheraw)

    Hi @alexmigf i tried your code that you gave and put it in my functios.php file but it didn’t work. I already clear all my browser cache and cookies but still i got the same results.

    I also install code snippets plugin and try to paste the code there but still got the same results.

    Can you please verify if the code works. thank you!

    Plugin Support alexmigf

    (@alexmigf)

    Hello @intheraw

    I did test before gave it to you, and seems to be working on my side.

    Could you provide a link of the website and the name of the product that you want to show?

    Let me know.

    Thread Starter intheraw

    (@intheraw)

    @alexmigf

    here is my staging site

    Product SKU that is set in search-only:
    P556245
    P556745

    • This reply was modified 10 months, 1 week ago by intheraw.
    • This reply was modified 10 months, 1 week ago by intheraw.
    Plugin Support alexmigf

    (@alexmigf)

    Hello @intheraw

    Search by SKU is only available in the Pro version.

    Thread Starter intheraw

    (@intheraw)

    @alexmigf

    Yup i have a pro version of it. i bought it last year it think

    Plugin Support alexmigf

    (@alexmigf)

    Hello @intheraw

    In that case you must email us, we can’t provide support for paid products here in the forums.

    We will do our best to help you!

    Thread Starter intheraw

    (@intheraw)

    Email Sent

    Thread Starter intheraw

    (@intheraw)

    @alexmigf Email Sent

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Search all products with catalog visibility “Search only”’ is closed to new replies.