BuddyBoss Home – Web Support Forums Themes OneSocial theme Product gallery pages only displaying 10 products per page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Question

    #60497
    @conscious-crafties

    Hello,

    I’m a WCVEndors Pro customer and bought this theme today (on recommendation from Ben) and have to say I’m super impressed with it – THANK YOU 🙂

    I’ve got a couple of issues that I’ll raise in different tickets.

    Firstly, when users are browsing through products, the product listing page (gallery pages) only display 10 products per page. How can I change this as customers don’t realise there are more products because of the empty space after the products on the first page.

    Many thanks,

    Karen

    Answers

    #60514
    @conscious-crafties

    I’ve fixed the qty of products on gallery myself using code added to functions.php:

    /* Display 32 products per page. Goes in functions.php */
    add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 32;’ ), 20 );

    However the community page for vendors products still only shows 10 products:

    https://www.consciouscrafties.com/community/s-j-crafting-creations/products/

    How do I increase this please so there is no empty space making visitors think there are no more products to see?

    Thank you,

    Karen

    #60758

    Anonymous
    @

    Hi @conscious-crafties

    Product per page is controlled from default WordPress option
    /buddyboss-marketplace/templates/wc-vendors/store/store-products.php
    Line 15

    
    $product_args = array(
        'post_type'       => 'product',
        'author'          => $vendor_id, 
        'posts_per_page'  => apply_filters( 'loop_shop_per_page', get_option( 'posts_per_page' ) ),
        'paged'           => $product_paged
    );
    

    Regards
    Varun dubey

    #60771
    @conscious-crafties

    Hi Varun,
    Unfortunately I’m not a clever coder. Could you explain what I need to change in the code?
    Many thanks,
    Karen

    #60898
    @crissfred

    Hi Karen ,
    You will have to go to Settings —> Reading and change the number of post per page
    (Blog pages show at most — 12 or what number you want)

    Regards
    Edmond

    #60917
    @conscious-crafties

    Thank you so much Edmond!

    That was much easier solution! Worked a treat 🙂

    #60936

    Anonymous
    @

    Excellent! Thanks @crissfred for helping out 🙂

    #60959
    @crissfred

    I’m glad i could help .

Viewing 8 posts - 1 through 8 (of 8 total)
  • The question ‘Product gallery pages only displaying 10 products per page’ is closed to new replies.