Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sreichel/magento-stackexchange_lockattributes
Prevent editing product attributes in admin backend.
https://github.com/sreichel/magento-stackexchange_lockattributes
configuration magento-1 openmage openmage-module product-attributes
Last synced: about 18 hours ago
JSON representation
Prevent editing product attributes in admin backend.
- Host: GitHub
- URL: https://github.com/sreichel/magento-stackexchange_lockattributes
- Owner: sreichel
- License: osl-3.0
- Created: 2017-05-31T10:40:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-23T21:18:07.000Z (about 6 years ago)
- Last Synced: 2024-12-12T00:47:35.887Z (about 2 months ago)
- Topics: configuration, magento-1, openmage, openmage-module, product-attributes
- Language: PHP
- Homepage: https://magento.stackexchange.com/questions/784/read-only-product-backend-attribute
- Size: 17.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LockAttributes Magento 1 Extension
Prevent editing product attributes in admin backend.
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/c7e099f0fcf44a548dc29b94b7be3f37)](https://www.codacy.com/app/sreichel/magento-StackExchange_LockAttributes?utm_source=github.com&utm_medium=referral&utm_content=sreichel/magento-StackExchange_LockAttributes&utm_campaign=Badge_Grade)
[![Maintainability](https://api.codeclimate.com/v1/badges/de5eb4d457411e58c485/maintainability)](https://codeclimate.com/github/sreichel/magento-StackExchange_LockAttributes/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/de5eb4d457411e58c485/test_coverage)](https://codeclimate.com/github/sreichel/magento-StackExchange_LockAttributes/test_coverage)## Facts
- version: 1.1.0
- extension key: StackExchange_LockAttributes
- [extension on GitHub](https://github.com/sreichel/magento-StackExchange_LockAttributes)### Description
[Read-Only Product Backend attribute](https://magento.stackexchange.com/questions/784/read-only-product-backend-attribute)> I would like to create an attribute read only however it look it is not possible.
>
> I have tried to pass to addAttribute() `'disabled' =>true` or `'readonly' => true` with out any success.
> I have found out some suggestion about using `setLockedAttributes()` but for some reason it is not working
>
> **Reference:**
> `Varien_Data_Form_Element_Abstract::serialize($attributes = array(), $valueSeparator='=', $fieldSeparator=' ', $quote='"')`### Requirements
- PHP >= 5.4.0### Compatibility
- Magento >= 1.5#### Installation Instructions
- via modman
```
modman clone https://github.com/sreichel/magento-StackExchange_LockAttributes.git
```
- via composer
```
composer require mse-sv3n/m1-lock-attributes
```#### Uninstallation
- via modman
```
modman remove magento-stackexchange-lockattributes
```
- via composer
```
composer remove mse-sv3n/m1-lock-attributes
```### Usage
1. get to config section and set attributes you want to lock
2. set ACL permission for uses that are still allowed to edit### Support
If you have any issues with this extension, open an issue on [GitHub](https://github.com/sreichel/magento-StackExchange_LockAttributes/issues).### Contribution
Any contribution is highly appreciated. The best way to contribute code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).### License
[OSL - Open Software Licence 3.0](http://opensource.org/licenses/osl-3.0.php)