I’ve been looking for an answer for a couple of days now. I’ve tried every snippet possible, changing the functions files, creating a separate template for content products but I can’t change the number of products listed. Currently WooCommerce displays 4 products per row. Adding a css class of “last” to that fourth product. I want to display the products in a line of three products.
Here is the url to the current store: http://teamhappiness.org/store/
You didn’t say what snippets you’ve actually tried, but according to the docs, you can filter
loop_shop_columns
like so:tested and working for me with Twenty Eleven theme.
EDIT – this is the particular line in the default
content-product.php
template file that makes the above filter work. you could just set it directly if you’re using a custom template file and don’t need it filterable:Hey guys I was searching around the same issue; just found the solution! It’s not involving content-product.php at all (at least in my case), it’s involving the file woocommerce > single-product > related.php
Make a template of this file (if you don’t know how to override WooCommerce template study that) and find this code:
All you’ve got to do is change the variable
In which number of related products you want to display!
For example:
Will display 10 products.