Post by vimal » Mon Sep 21, 2009 2:15 pm

Hi All,

Can someone please tell me how to increase the number of products displayed on one page. By default it shows 12 products. Can I make it to 20?

Thanks!
Vimal.

www.beeshop.se
Starta webbshop, Starta e-butik, Starta e-handel


Newbie

Posts

Joined
Wed Aug 26, 2009 8:54 am
Location - Sweden

Post by Qphoria » Mon Sep 21, 2009 8:19 pm

This has been answered a few times.. be sure to search the forums.. for things like "more products", "more rows", "products per page" etc.

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by vimal » Mon Sep 21, 2009 8:53 pm

Hi Qhoria,

I did check and I got some entries where you have replied on too..eg below. But I don't want it for the latest products as I don't use that feature. I have hidden it. I have my own pics and products that I want to showcase and use it through the WYSIWYG editor for the home page.

What I needed is for the categories page where products are displayed. I have searched other posts that show how to change the latest products from 8 to 12 or 20 etc. I then changed my category page to show 20 products. I now get 20 products but I also have additional pages which contains no products. Hence I thought there is a smarter way of doing it that good people like you would know...

I am sorry if I have made a post that is already answered before. But I couldn't find the answer and I tried with other solutions provided.
Re: Where to change "Rows Per Page"
by Qphoria » Tue Sep 15, 2009 11:20 am

in the home.tpl file you change the <td width="25%"> to 20% for 5 (formula: 100/num of rows)
Do the same in category.tpl

Hope this at least goes back to the css soon.
Re: home page featured products
by readyman » Tue Jun 16, 2009 10:12 pm

FidoX and his website are down and I checked his 'patch' on the contributions & it's incomplete. I guess you can only get the full package from his website.

Here's a quick hack to replace the latest products with & display products by category - you just have to replace one line in catalog/controller/common/home.php

Around line 27

Code: Select all
foreach ($this->model_catalog_product->getLatestProducts(8) as $result) {
change to

Code: Select all
//foreach ($this->model_catalog_product->getLatestProducts(8) as $result) { //get latest products
foreach ($this->model_catalog_product->getProductsByCategoryId(18,'','','',8) as $result) {

Keep the current code there for later... this is just a quick hack.

The 18 represents the category you want to show - just rollover your category menu to find out what id it is.
The 8 represents the number of products you want to limit this display to.

Hope this helpshttp://www.alreadymade.com
- Dynamic drop down menu for categories/sub categories
- Text options, Global attributes for products
- Professional Opencart template designs
readyman
Global Moderator

Posts: 333
Joined: Tue May 19, 2009 10:16 pm
Location: Sydney
Private messageWebsite

www.beeshop.se
Starta webbshop, Starta e-butik, Starta e-handel


Newbie

Posts

Joined
Wed Aug 26, 2009 8:54 am
Location - Sweden

Post by Qphoria » Mon Sep 21, 2009 9:20 pm

You are on the right path... The pagination can be confusing.
In the catalog/controller/product/category.php

There are 3 spots where the number 12 is.
Replace all with 20

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by vimal » Mon Sep 21, 2009 10:00 pm

Thanks Qphoria! Got it working now. Shows the correct number of pages and also the page numbers..thanks :)

www.beeshop.se
Starta webbshop, Starta e-butik, Starta e-handel


Newbie

Posts

Joined
Wed Aug 26, 2009 8:54 am
Location - Sweden

Post by Robonz » Mon Mar 20, 2017 10:37 am

If you got to the bottom of this and went huh? You were probably look for this.

In opencart 2 go to extensions/extensions/themes/
click edit and change "Default Items Per Page" to the magic number wanted.

Newbie

Posts

Joined
Mon Feb 27, 2017 2:24 pm
Who is online

Users browsing this forum: No registered users and 59 guests