how do I disable the "view all products" in magento 1.8

how do I disable the "view all products" in magento 1.8

September 23, 2026 · Illustrated author avatarBy Stefan Bogdanescu
how do I disable the "view all products" in magento 1.8

Disabling “View All Products” in Magento 1.8: A Comprehensive Guide

If you’re facing issues with Magento 1.8 displaying all products on category pages despite having disabled the option in your admin panel, read on for a step-by-step solution from an experienced developer.

Understanding the Problem with “View All”

In Magento 1.8, even after setting “Allow All Products per Page” to “No” under Catalog > Manage Categories in the admin panel, the live site may still display a “View All” option at the bottom of product category pages. When users click this, you’ll find that it returns a URL with limit=all parameter.

<a href="http://addalinkofcharm.com/italian-charm-categories.html?limit=all">View All Products</a>

This poses major SEO problems by creating pages with thousands of links, exceeding the limits recommended for crawlability and indexing. It also negatively impacts site performance.

Current Solutions and their Limitations

Several community-suggested solutions involve modifying core files in the Mage_Catalog module:

  1. In /app/code/core/Mage/Catalog/Block/Product/List/toolbar.php, lines 539 and 598 (list view; then grid view) need to be changed from:

    return ($perPageValues + array('all' => $this->__(‘All’)));
    

    To simply:

    return ($perPageValues);
    
  2. Lines 255 and 264 in the same file should also be changed from:

    return ($perPageValues + array('all' => $this->__(‘All’)));
    

    To:

    return ($perPageValues);
    

However, these solutions involve editing core files which is generally discouraged due to the risk of conflicts during updates or overwrites.

The Best Practice: Using a Magento Extension

Instead of modifying core files, I recommend using an extension designed for this specific purpose. Extensions like “All Products per Page” by Amasty provide advanced functionality while keeping your Magento installation clean and maintainable.

Features you can expect:

  • Customize the maximum number of products displayed per page.
  • Set different limits for different customer groups or store views.
  • Enable/disable pagination options on a category-by-category basis.

Visit Laravel Company for more information on compatible extensions and professional Magento development services.

Changing the Number of Products Per Page

To change the number of products displayed per page, follow these steps:

  1. In your admin panel, navigate to Catalog > Manage Categories.
  2. Select the desired category or create a new one.
  3. Under the “Display Settings” section, find the “Number of Products per Row (Grid)” and “Number of Products per Page (List)” fields.
  4. Set your preferred limit for each view type.

Adjusting these settings allows you to control the product count without needing to modify any core files or risk conflicts during updates.

Conclusion

In summary, to disable the “View All” option in Magento 1.8:

  • Ensure you have set “Allow All Products per Page” to “No” under Catalog > Manage Categories.
  • Consider using a professional extension for advanced control over pagination options.
  • Adjust product display settings on a category-by-category basis.
  • Avoid editing core files, as this creates potential maintenance issues.

By following these best practices and leveraging the power of Magento extensions, you can effectively manage your product listings while optimizing SEO performance. If you require further assistance or professional development services for your Magento store, feel free to contact us at Laravel Company.

Magento 1 Catalog Indexing Performance

Our network