2017 © Pedro Peláez
 

magento-module magento1-categorycode

Okaeli_CategoryCode extension for Magento 1

image

okaeli/magento1-categorycode

Okaeli_CategoryCode extension for Magento 1

  • Monday, March 5, 2018
  • by okaeli
  • Repository
  • 0 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Okaeli_CategoryCode


@category   Okaeli  
@package    Okaeli_CategoryCode  
@author     Julien Loizelet <julienloizelet@okaeli.com>  
@copyright  Copyright (c)  2017 Julien Loizelet  
@license    GNU GENERAL PUBLIC LICENSE Version 3

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), (*1)

Installation

This extension can be installed with modman or composer., (*2)

Requirements

  • Magento >= 1.6 (probably much earlier, but I didn't test)

Modman

Run modman link /path/to/your/clone/of/this/repo at root of your Magento Project., (*3)

Composer

In your composer.json file, add, (*4)

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

in the repositories part and, (*5)

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

in the require part., (*6)

Usage

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

This module comes with some configurations :, (*7)

  • System Config > Okaeli > Okaeli Category Code, (*8)

    Backend, (*9)

  • 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.), (*10)

    Frontend, (*11)

  • Enable / Disable frontend layout update., (*12)

    Okaeli CategoryCode Settings screenshot, (*13)

Technical Notes

No rewrite. Events driven development.

This extension is 0 rewrite guaranteed. The following events are listened:, (*14)

  • 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

This extension has been checked with the Magento Extension Quality Program Coding Standard. You can find the output of the command phpcs /path/to/Okaeli/CategoryCode/sources --standard=MEQP1 in this file., (*15)

Support

If you encounter any problems or bugs, please create an issue on GitHub., (*16)

Contribution

Any contribution is highly welcome. The best possibility to provide any code is to open a pull request on GitHub., (*17)

License

GNU General Public License, version 3 (GPLv3), (*18)

The Versions

05/03 2018

dev-master

9999999-dev

Okaeli_CategoryCode extension for Magento 1

  Sources   Download

GPL-3.0+

The Requires

  • php >= 5.3

 

by Julien Loizelet

extension module magento attribute category magento1

05/03 2018

v0.0.1

0.0.1.0

Okaeli_CategoryCode extension for Magento 1

  Sources   Download

GPL-3.0+

The Requires

  • php >= 5.3

 

by Julien Loizelet

extension module magento attribute category magento1