Okay
  Public Ticket #3697182
Products on individual store page
Closed

Comments

  •  6
    Eana started the conversation

    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,218
    WebWizards replied

    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