Item Limit (Bug?)

This topic contains 3 replies, has 2 voices, and was last updated by  Patrik 5 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2984

    trose1189
    Free User
    Post count: 3

    Is there a limit to the number of items you can add? We have 137 items made, and on the Add Invoice page, the dropdown menu only displays about 3/4 of our items– arranged alphabetically, nothing past ‘S’ shows up in the dropdown.)

    Thank you for any help!

    #2986

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    #2996

    trose1189
    Free User
    Post count: 3
    This reply has been marked as private.
    #2999

    Patrik
    Moderator
    Post count: 1971

    Hi,

    We have limited the items dropdown values to 100. This can be changed using the filter. Try to put the following code in your functions.php file of current active theme or create a snippet in snippet plugin if used:

    add_filter('wpinv_item_dropdown_query_args', 'wpinv_item_dropdown_query_args_cb');
    function wpinv_item_dropdown_query_args_cb($item_args){
        $item_args['posts_per_page'] = 999;
        return $item_args;
    }

    You can change the number 999 to whatever items you have. Let me know if this works for you or not.

    Regards,
    Patrik

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket