If you use it, you are effectively adopting the code for your own project.
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.
- Version: check the config.xml
- Extension key: - This extension is not on Magento Connect (github only) -
- Extension on GitHub
- Direct download link
- Includes de_DE locale
- Includes CSS classes for easy styling
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.
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
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.
- Magento >= 1.4 (since
Mage_Core_Block_Abstract::getCacheKeyInfo()
exists)
- Unpack the extension ZIP file in your Magento root directory.
- Clear the cache.
- Log out of the admin and log back in again to refresh the access control lists for the system configuration.
- If you use the Magento compiler, recompile.
If you have any issues with this extension, open an issue on GitHub (see URL above)
Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.
Vinai Kopp
http://www.netzarbeiter.com
@VinaiKopp
OSL - Open Software Licence 3.0
(c) 2014 Vinai Kopp