mse-sv3n / m1-lock-attributes
防止在管理后端编辑产品属性。
1.1.0
2018-12-22 19:45 UTC
Requires
This package is auto-updated.
Last update: 2024-08-24 14:03:58 UTC
README
防止在管理后端编辑产品属性。
事实
- 版本:1.1.0
- 扩展密钥:StackExchange_LockAttributes
- GitHub上的扩展
描述
我想创建一个只读属性,但看起来这是不可能的。
我尝试通过传递
'disabled' =>true
或'readonly' => true
到 addAttribute(),但没有成功。我发现了一些关于使用setLockedAttributes()
的建议,但出于某种原因它不起作用参考
Varien_Data_Form_Element_Abstract::serialize($attributes = array(), $valueSeparator='=', $fieldSeparator=' ', $quote='"')
要求
- PHP >= 5.4.0
兼容性
- Magento >= 1.5
安装说明
- 通过 modman
modman clone https://github.com/sreichel/magento-StackExchange_LockAttributes.git
- 通过 composer
composer require mse-sv3n/m1-lock-attributes
卸载
- 通过 modman
modman remove magento-stackexchange-lockattributes
- 通过 composer
composer remove mse-sv3n/m1-lock-attributes
使用方法
- 进入配置部分并设置要锁定的属性
- 为仍然允许编辑的用户设置 ACL 权限
支持
如果您对此扩展有任何问题,请在此 GitHub 上提交问题。
贡献
任何贡献都将受到高度赞赏。最好的贡献代码的方式是在 GitHub 上发起一个拉取请求。