Number of products shown per page

Home Forums Best Commerce Pro Number of products shown per page

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4205
    Paul Webb
    Member

    How can you adjust number of products shown per page in categories etc?
    Cant seem to see an answer for it anywhere?

    #4206
    Paul Webb
    Member

    Add the following to functions.php in themes folder, change $cols to number of products you want to show on each page

    add_filter( ‘loop_shop_per_page’, ‘new_loop_shop_per_page’, 20 );

    function new_loop_shop_per_page( $cols ) {
    // $cols contains the current number of products per page based on the value stored on Options -> Reading
    // Return the number of products you wanna show per page.
    $cols = 9;
    return $cols;
    }

    #4244
    Axle Support
    Moderator

    Hi @Paul,

    Thanks for the suggestion. We will add the option to change a number of products per page from the dashboard in next update.

    Thank you.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.