Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8333627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:05:52+00:00 2026-06-09T03:05:52+00:00

Im using Magento CE 1.6.2.. I am displaying products from THREE different categories on

  • 0

Im using Magento CE 1.6.2..

I am displaying products from THREE different categories on a static page. i have created a copy of list.phtml, removed toolbar from it and renamed it listHome_noToolbar.phtml

I am achieving this by using the following code:

{{block type="catalog/product_list" name="home.catalog.product.listHome_noToolbar" alias="products_by_category" category_id="37" num_products="4" column_count="4" template="catalog/product/listHome_noToolbar.phtml"}}

{{block type="catalog/product_list" name="home.catalog.product.listHome_noToolbar" alias="products_by_category" category_id="38" num_products="4" column_count="4" template="catalog/product/listHome_noToolbar.phtml"}}

{{block type="catalog/product_list" name="home.catalog.product.listHome_noToolbar" alias="products_by_category" category_id="39" num_products="4" column_count="4" template="catalog/product/listHome_noToolbar.phtml"}}

I know the category id and so im using it for displaying the products in a grid.

Now, i want advice and inputs about the following:

1. I want to find out and display the number of products in the category id=37, just before the display of the products. This display will have to be on the static page/ cms page only. What code can i use and how to make this happen?

2. I am calling 3 separate category product grids on this static page. I have been trying to LIMIT product displayed in each grid to 4 only using num_products=”4″, but this is somehow not working out. How can i achieve this?? i always thought num_products worked !!!!

I have looked at many solutions offered but somehow there appears to be no talk about limiting number of products displayed in a custom list or grid.

This somehow didnt work… was getting a fatal error… Magento Limit Number of Products in Home page

I DO NOT WANT TO ALTER number of products from Magento backend… as this would affect other GRIDs which display all products.

Any help and guidance will be appreciated….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T03:05:54+00:00Added an answer on June 9, 2026 at 3:05 am

    Found the answer to Qs.1 “Find out and display the number of products in the category id=37”

    Thought would share it here:

    Add the following lines of code in the listHome_noToolbar.phtml file, at the point where the number of products is required to be displayed..

    Note: You can add the following code in your list.phtml file, wherever you want the number of products to be visible..

    <?php $_productCollection = $this->getLoadedProductCollection(); 
    $count = $_productCollection->getSize(); 
    echo $count; ?> 
    

    hope this helps anybody 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Magento 1.5 and have around 33,450 products on my site. 32000
I am using Magento eCommerce and I have modified my header.phtml via the Blank
I'm using Magento 1.5 with 3 different stores (same products, though targetted at different
I have no problem importing simple products using Magento Core API (SOAP). How can
I am using magento 1.5, I already created different stores in my store. I
We are using Magento as our eCommerce platform. We have Oracle apps in which
i am using Magento 1.5.1.0 and the mPAY24 Payment Gateway Extension. I have an
I am trying to call magento api using Soap from android but I am
I have 4 categories within the 'Default Category' category. Currently by default Magento is
I'm using Magento v2 web service in WS-I compliant mode when try to list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.