Skip to content

Commit

Permalink
Attribute note adminhtml show translate (#1710)
Browse files Browse the repository at this point in the history
* add the notes field to the adminhtml sales_order address and customer address fields.

* add the notes field to the adminhtml sales_order address and customer address fields.

* add the notes field to the adminhtml sales_order address and customer address fields.

* Fixed typing errors

* Update app/code/core/Mage/Adminhtml/Block/Widget/Form.php

Perfect

Co-authored-by: Ng Kiat Siong <[email protected]>

* Original file restore: app/code/core/Mage/Adminhtml/Block/Widget/Form.php

* Original file restore: app/code/core/Mage/Adminhtml/Block/Widget/Form.php

Co-authored-by: Boes <[email protected]>
Co-authored-by: Ng Kiat Siong <[email protected]>
  • Loading branch information
3 people authored Jan 27, 2022
1 parent ab808b9 commit 438639f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ public function initForm()
foreach ($attributes as $attribute) {
/* @var $attribute Mage_Eav_Model_Entity_Attribute */
$attribute->setFrontendLabel(Mage::helper('customer')->__($attribute->getFrontend()->getLabel()));
$attribute->setNote(Mage::helper('customer')->__($attribute->getNote()));
$attribute->unsIsVisible();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public function initForm()
foreach ($attributes as $attribute) {
/* @var $attribute Mage_Eav_Model_Entity_Attribute */
$attribute->setFrontendLabel(Mage::helper('customer')->__($attribute->getFrontend()->getLabel()));
$attribute->setNote(Mage::helper('customer')->__($attribute->getNote()));
$attribute->unsIsVisible();
}
$this->_setFieldset($attributes, $fieldset);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ protected function _addAttributesToForm($attributes, Varien_Data_Form_Abstract $
'label' => $this->__($attribute->getStoreLabel()),
'class' => $attribute->getFrontend()->getClass(),
'required' => $attribute->getIsRequired(),
'note' => $this->escapeHtml($this->__($attribute->getNote()))
));
if ($inputType == 'multiline') {
$element->setLineCount($attribute->getMultilineCount());
Expand Down

0 comments on commit 438639f

Please sign in to comment.