PHPackages                             okaeli/magento1-categorycode - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. okaeli/magento1-categorycode

ActiveMagento-module

okaeli/magento1-categorycode
============================

Okaeli\_CategoryCode extension for Magento 1

v0.0.1(8y ago)08GPL-3.0+PHPPHP  &gt;= 5.3

Since Mar 5Pushed 8y agoCompare

[ Source](https://github.com/julienloizelet/magento1-categorycode)[ Packagist](https://packagist.org/packages/okaeli/magento1-categorycode)[ RSS](/packages/okaeli-magento1-categorycode/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Okaeli\_CategoryCode
====================

[](#okaeli_categorycode)

---

```
@category   Okaeli
@package    Okaeli_CategoryCode
@author     Julien Loizelet
@copyright  Copyright (c)  2017 Julien Loizelet
@license    GNU GENERAL PUBLIC LICENSE Version 3

```

Description
-----------

[](#description)

`Okaeli_CategoryCode` is a Magento extension that will add a "code" attribute to categories. The main purpose of this is to have a better unique identifier to manage categories (better than Id that could be dependent of the environment)

Installation
------------

[](#installation)

This extension can be installed with `modman` or `composer`.

### Requirements

[](#requirements)

- Magento &gt;= 1.6 (probably much earlier, but I didn't test)

### Modman

[](#modman)

Run `modman link /path/to/your/clone/of/this/repo` at root of your Magento Project.

### Composer

[](#composer)

In your `composer.json` file, add

```
 {
"type": "vcs",
"url": "https://github.com/julienloizelet/magento1-categorycode"
 }

```

in the `repositories` part and

```
"okaeli/magento1-categorycode":"dev-master"

```

in the `require` part.

Usage
-----

[](#usage)

### Features

[](#features)

1. If you have to update datas of a category in a data upgrade script for example, you should use : `Mage::getModel('catalog/category')->loadByAttribute('okaeli_category_code','here-the-code-of-the-category');`
2. If you need to update layout of a category and do not want to do it in the database, you should use the handle `catalog_category_code_HERE-THE-CODE-OF-THE-CATEGORY`
3. You will find a shell script `okaeli_category_code_generate.php` that can generate `okaeli_category_code` attribute for each category.

### Configurations

[](#configurations)

This module comes with some configurations :

- `System Config > Okaeli > Okaeli Category Code`

***Backend***

- Disable / Enable admin category code edition. *(As the code should be used for design in layout, modifying it can break your design. So, it is strongly suggested to disable admin edition.)*

***Frontend***

- Enable / Disable frontend layout update.

[![Okaeli CategoryCode Settings screenshot](doc/images/okaeli-category-code-settings.png)](doc/images/okaeli-category-code-settings.png)

Technical Notes
---------------

[](#technical-notes)

### No rewrite. Events driven development.

[](#no-rewrite-events-driven-development)

This extension is **0 rewrite** guaranteed. The following events are listened:

- `controller_action_layout_load_before` : used to add custom handle.
- `adminhtml_catalog_category_edit_prepare_form` : used to disable `okaeli_category_code` edition in admin.

### Coding Standards

[](#coding-standards)

This extension has been checked with the [Magento Extension Quality Program Coding Standard](https://github.com/magento/marketplace-eqp). You can find the output of the command `phpcs /path/to/Okaeli/CategoryCode/sources --standard=MEQP1` in [this file](doc/coding-standard/magento-eqp.txt).

Support
-------

[](#support)

If you encounter any problems or bugs, please create an issue on [GitHub](https://github.com/julienloizelet/magento1-categorycode/issues).

Contribution
------------

[](#contribution)

Any contribution is highly welcome. The best possibility to provide any code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).

License
-------

[](#license)

[GNU General Public License, version 3 (GPLv3)](http://opensource.org/licenses/gpl-3.0)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2988d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c62160b3300387b649938015ae57ea3767d23857994161c4e62d3cfcd192c2b?d=identicon)[okaeli](/maintainers/okaeli)

---

Top Contributors

[![julienloizelet](https://avatars.githubusercontent.com/u/20956510?v=4)](https://github.com/julienloizelet "julienloizelet (1 commits)")

---

Tags

attributecategorymagentomagento-1magento-extensionmagento-modulemagento1magento1-modulemagentoextensionmodulecategoryattributemagento1

### Embed Badge

![Health badge](/badges/okaeli-magento1-categorycode/health.svg)

```
[![Health](https://phpackages.com/badges/okaeli-magento1-categorycode/health.svg)](https://phpackages.com/packages/okaeli-magento1-categorycode)
```

###  Alternatives

[rafaelcg/magento2-quicklink

Faster subsequent page-loads by prefetching in-viewport links during idle time

5115.9k](/packages/rafaelcg-magento2-quicklink)[magepsycho/magento2-custom-shipping

Magento 2 Custom Shipping

697.5k](/packages/magepsycho-magento2-custom-shipping)[opengento/module-webapi-logger

This module allows you to analyze all the webapi rest done call toward your Magento.

1014.9k](/packages/opengento-module-webapi-logger)[magepsycho/magento2-discountlimit

Magento 2 Discount Amount Limiter

1111.6k](/packages/magepsycho-magento2-discountlimit)[werfu/magento2-url-key-mask

Enable Product and Category URL\_key generation using masks

135.4k](/packages/werfu-magento2-url-key-mask)[magepsycho/magento2-seosuite

Magento 2 FREE SEO Suite

106.3k](/packages/magepsycho-magento2-seosuite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
