Infinite scroll on category and attribute oage

eCommerce WordPress theme with various e-store features and WooCommerce support.
GK User
Wed Apr 27, 2016 10:53 pm
Hi there,

Is there a way I can add infinite scroll on the category page so I can have a flow of products instead of using the pagination? Or is it possible to increase the default number pf products displayed on the category page (or on the attribute page)?

Thanks,
User avatar
Fresh Boarder

Joshua M
Thu Apr 28, 2016 8:52 am
Hi,

Unfortunately it's not possible to add infinite scroll without theme customization, but you can change the number of products. Please edit your StoreBox/gavern/wc-functions.php file and change the following line:
Code: Select all
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 9;' ), 20 );


into:
Code: Select all
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return X;' ), 20 );

where "X" will be your number of products.
User avatar
Moderator

GK User
Thu Apr 28, 2016 11:54 pm
Thank you very much, it worked!
User avatar
Fresh Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.