• Resolved David Relich

    (@relichd)


    Hi,

    A client of mine is running an eshop based on WooCommerce.

    She was trying to add a manual order (via wp-admin) and when she tried to add a product the product search dropdown would not show all of the relevant results.

    The number of results seems to be limited to about 25. Her products are variable products. Each of the product has dozens of variations.

    Is there a way to increase the limit of what the product search dropdown shows? Tried to glance at the plugin files but could not find it anywhere.

    Cheers.

    David.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @relichd !

    There is no setting to adjust this in WooCommerce core. You will need to get some code to extend this. You could hire a developer to make these changes for you. We highly recommend using developers on our Customizations Page.

    Thread Starter David Relich

    (@relichd)

    Thanks, Tony!

    I don’t suppose you could point me to the file that actually handles this functionality so I can do the coding myself?

    Cheers.

    Hey @relichd !

    It is never a good idea to edit the WooCommerce code directly. It is generally best to use a plugin with the added functions or a snippet inserter like Code Snippets. You can read more about that here.

    As for the code you need, I am not 100% sure this is the same piece but you can try this one:

    add_filter ('woocommerce_json_search_limit', 'woo_set_custom_search_limit', 10 );
    function woo_set_custom_search_limit( $limit ) {
    	return 100;
    }
    Thread Starter David Relich

    (@relichd)

    Hey, Tony!

    Obviously, I wouldn’t be going about editing core files. Just wanted to see what hook/filter I’d need to use.

    Aaaanyway, your code worked brilliantly. Thanks so much for your help! You saved me some headaches, haha!

    Cheers again!

    David.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Manual Order – Add Product Dropdown Limit’ is closed to new replies.