Changing product count in WC Archive

Hi, I can’t seem to find the option for changing the amount of products displayed in my Woocommerce shop before pagination occurs. The Posts and Syndication count does not alter this.

Currently it’s set to 8 and I’d like 16.

https://elite.spiralorbdesigns.com/bags-for-hire/

Can you please point me in the right direction?

Cheers,
David

Hi David,

Thanks for reaching out.
I have checked the page and it seems that you are using an Archive layout. If you are getting 8 products, it might be mentioned in the Looper Provider or it might be mentioned in the Settings > Reading > Blog pages show at most as shown in the given screenshot.

You can try by changing any of the options explained above, if that does not help, please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi @tristup, I’ve created a temp user for you to gain access.

Cheers,
David

Hi David,

I have checked the Looper Consumer and found that the condition has been added to it, and that is the reason behind your problem. I would suggest you remove the condition temporarily and check if that helps.

If that does not help, there might be some different reasons behind your issue. I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

  1. Theme Related Issue
  2. Plugin Conflict
  3. Theme Update related issue
  4. CSS/JS Customization
  5. Disabling Cache
  6. Disabling CDN

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above help, please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access to the secure note including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi @tristup

Thanks, I’d removed the conditions and it does help display more products, but not the amount I require.

I also set the Consumer to Many and the count to 99 and it still maxes out at about 12 products.

Assume I want 20 products displayed.

I troubleshooted but could not get it working. Could you please check. I created a staging for it here: https://staging49.elite.spiralorbdesigns.com/

Same login details as provided before in a secure note.

Cheers,
David

Hi David,

I am sorry for the confussion. The default number of the product is 12 to be shown in the Product/Product Archive pages. To change that you need to add some custom code into the functions.php of your child theme.

add_filter( 'loop_shop_per_page', 'bbloomer_redefine_products_per_page', 9999 );

function bbloomer_redefine_products_per_page( $per_page ) 
{
    $per_page = 16;
    return $per_page;
}

You can find more information at the following link.

Please remember that the above code will work if copied as it is and doesn’t conflict with any existing style.
Please note that the code provided serves only as a guide to help you get started custom coding on your own if there’s no option offered in our theme or the products we bundle.
We really do not provide support for custom codes which means we can’t fix it in case it conflicts with something on your site nor will we enhance it. Further customization should be directed to a third-party developer or you can avail One, where we answer the questions beyond normal theme support.

Thanks

Thank you, this works perfectly :slight_smile:
Cheers,
David

You are most welcome, David.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.