Chathuraka
Chathuraka

Reputation: 231

Magento custom attribute label

I have created a custom attribute for the billing address on my magneto backed (Sales-> order -> billing address). However, the attribute input field is showing on the backend without the label. like this custom attribute field

My backend array for this label is like this.

 $attributes = array(
    'buildingnumber' => array(
       'label' => 'Building Number',
        'backend_type' => 'varchar',
        'frontend_input' => 'text',
        'is_user_defined' => 1,
        'is_system' => 0,
        'is_visible' => 1,        
        'is_required' => 1,
        'multiline_count' => 0,
        'validate_rules' => array(
            'max_text_length' => 255,
           'min_text_length' => 1
        ),
    ),
);

Please let me know how to add a label for my field.

Upvotes: 0

Views: 124

Answers (1)

faizanbeg
faizanbeg

Reputation: 391

Open eav_attribute table and search for buildingnumber attribute_code and check field frontend_label

Upvotes: 1

Related Questions