27 Sep

opencart Icon Logo

Change number of products per row on search results page

The problem I had was to change the number of products on each row on the search results page from 4 to 3.

I was also using version of OpenCart and I couldn't find a way via the admin, but after searching I managed to solve the problem by changing some code instead.

The page can be found in either




Then find the following segment of code.

<table class="list">
    <?php for ($i = 0; $i < sizeof($products); $i = $i + 4) { ? >
    <?php for ($j = $i; $j < ($i + 4); $j++) { ? >

and change it to the new number in both places

<table class="list">
    <?php for ($i = 0; $i < sizeof($products); $i = $i + 3) { ? >
    <?php for ($j = $i; $j < ($i + 3); $j++) { ? >
Posted in: < eCommerce >
me@grafxflow avatar


I am a Full-stack Developer who also started delving into the world of UX/UI Design a few years back. I blog and tweet to hopefully share a little bit of knowledge that can help others around the web. Thanks for stopping by!

Visitors also viewed these posts

Add comment

Add comment