Cannot disable woocommerce pagination!! Any ideas?
-
Hi All,
I have a new website I am pretty much ready to go live with, except for this one issue. For some strange reason, I cannot, no matter what I try, stop/disable woocommerce pagination in product categories.
The funny thing is, it always display 9 products before paginating, which makes my columns of 4 look mighty silly.
I have tried the plugins, tried editing the functions.php file with the recommended Woo Themes fix:
// Display 50 products per page. Goes in functions.php add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 50;' ), 20 );
And even went as far as hard coding the following line from class-wc-query.php:
$q->set( 'posts_per_page', $q->get( 'posts_per_page' ) ? $q->get( 'posts_per_page' ) : apply_filters( 'loop_shop_per_page', get_option( 'posts_per_page' ) ) );
so that it read:
$q->set( 'posts_per_page', 50 );
And even confirmed that the SQL DB value for “posts_per_page” was set to 50 (which is what I set it to in reading settings).
Even tried removing/disabling any potentially conflicting plugins.
One of the affected pages in question is:
https://www.stage.maiseycollections.com.au/product-category/furniture/lounges/
But really ALL the product categories with more than 9 items is affected.
ANY help with this would be greatly appreciated. I am banging my head in frustration.
Thanks in advance,
Hayden
- The topic ‘Cannot disable woocommerce pagination!! Any ideas?’ is closed to new replies.