• Resolved nghiatech24

    (@nghiatech24)


    Dear everyone,
    Woocommerce plugin have their own store page and it can customize the number of products show per page and it have page number <<1 2 3 4 ….>>, too.
    But when i try to create other products page with UX Builder and use products element of Flatsome theme. The prodcuts just have option to show with numbers or all, do not have option to customize how many products can show per page.
    For example, i have 100 products, show 20 per page, so i need 5 pages.
    Please help me if you know how; Thank much !
    P.s: i’m not a coder, i just want to learn how create my own website.

Viewing 1 replies (of 1 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @nghiatech24!

    We have provided a code snippet in our support documentation to change the number of products displayed per page:

    /**
     * Change number of products that are displayed per page (shop 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;
    }

    Add this snippet to your site using a plugin like Code Snippets.

    For reference, feel free to check out our Codex pages:

    https://docs.woocommerce.com/document/change-number-of-products-displayed-per-page/

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Create page number for customized products page’ is closed to new replies.