Skip to content

Display a list of all categories the current product is associated with and their parent categories. I hear thats good for SEO somehow :)

Notifications You must be signed in to change notification settings

Vinai/VinaiKopp_ProductCategories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

This Magento 1 extension is orphaned, unsupported and no longer maintained.

If you use it, you are effectively adopting the code for your own project.

List Product Categories

Display a list of the categories associated with the a product on the product detail page on the frontend.
For each category the parent categories are displayed, too.

Facts

Description

Display a list of the categories associated with the a product on the product detail page on the frontend.
For each category the parent categories are displayed, too.

Screenshot of default block template

Once the blocks are generated, they are cached for better system performance.

The automatic addition of the categories list to product pages can be turned off in the system configuration at

Vinai Kopp Extensions > Product Categories List > General

Configuration Screenshot

If you don't want to display the block automatically at the bottom of all product pages, disable the feature in the system configuration, and add the block manually to your product template at the place you want it to display using the code

<?php echo $this->getBlockHtml('product.categories.list') ?>

Note: This only works on product pages.

The template the block uses by default is app/design/frontend/base/default/template/vinaikopp/productcategories/list.phtml

Copy it to your own theme to customize it. You can also assign a different template to the block and it will be used.

The reason for this module? I was asked for it nicely. I was told that having this supposedly is good for SEO purposes.

Compatibility

  • Magento >= 1.4 (since Mage_Core_Block_Abstract::getCacheKeyInfo() exists)

Installation Instructions

  1. Unpack the extension ZIP file in your Magento root directory.
  2. Clear the cache.
  3. Log out of the admin and log back in again to refresh the access control lists for the system configuration.
  4. If you use the Magento compiler, recompile.

Support

If you have any issues with this extension, open an issue on GitHub (see URL above)

Contribution

Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.

Developer

Vinai Kopp
http://www.netzarbeiter.com
@VinaiKopp

Licence

OSL - Open Software Licence 3.0

Copyright

(c) 2014 Vinai Kopp

About

Display a list of all categories the current product is associated with and their parent categories. I hear thats good for SEO somehow :)

Resources

Stars

Watchers

Forks

Packages

No packages published