• Resolved univ182

    (@univ182)


    Hello guys,

    I’m working on last version of woocommerce, in the functions.php file i try to modify the columns number and products per page of archive page.

    /*products per page*/
     add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );
    // Change number or products per row to 5
     add_filter('loop_shop_columns', 'loop_columns');
     if (!function_exists('loop_columns')) {
      function loop_columns() {
       return 3; // 5 products per row
      }
    }

    but it’s just working three columns per page, the quantity of products “24” not working, always i see 12 products for page.

    What can i do, i’m not doing something?

    I installed the next plugin: Woocommerce Products Per Page, and to I realice the configurations but not working yet

    • This topic was modified 5 years, 12 months ago by univ182.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Products per page not working’ is closed to new replies.