Public Ticket #3697182

Products on individual store page

Closed
Comments
15 Tickets 7
Eana started the conversation 2 years ago on August 1, 2024 at 2:39am

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

2,762
KingsPlugins replied 2 years ago on August 2, 2024 at 7:11pm

Hello 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