Comments 6Eana started the conversationAugust 1, 2024 at 2:39amHi,We used this code to show all products on the overall shop page,add_filter( 'loop_shop_per_page', 'lw_loop_shop_per_page', 30 ); function lw_loop_shop_per_page( $products ) { $products = -1; return $products;}However, it seems that this does not affect the individual vendor shop page.Is there a hook or function allowing us to show all products without pagination on the vendor shop page?Kind Regards 2,218WebWizards repliedAugust 2, 2024 at 7:11pmHello Eana,In MarketKing, you can control how many products show per page, using the following code snippet (default is 12): add_filter('marketking_default_products_number', function($product_nr){ return 12; }, 10, 1);You can set a high number there instead of 12, such as: add_filter('marketking_default_products_number', function($product_nr){ return 10000; }, 10, 1); to show all products.Kind regards,Stefan Sign in to reply ...
Hi,
We used this code to show all products on the overall shop page,
add_filter( 'loop_shop_per_page', 'lw_loop_shop_per_page', 30 );
function lw_loop_shop_per_page( $products ) {
$products = -1;
return $products;
}
However, it seems that this does not affect the individual vendor shop page.
Is there a hook or function allowing us to show all products without pagination on the vendor shop page?
Kind Regards
Hello Eana,
In MarketKing, you can control how many products show per page, using the following code snippet (default is 12):
You can set a high number there instead of 12, such as:
to show all products.
Kind regards,
Stefan