Skip to content

Number of address lines (street lines) in admin #2450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Litiano opened this issue Nov 20, 2015 · 9 comments
Closed

Number of address lines (street lines) in admin #2450

Litiano opened this issue Nov 20, 2015 · 9 comments

Comments

@Litiano
Copy link

Litiano commented Nov 20, 2015

Setting # 4 the number of address lines, but admin appear only 2 lines.
street1
street2

@sevos1984
Copy link
Contributor

Internal issue created with id MAGETWO-47376. Thanks for reporting.

@slavvka
Copy link
Member

slavvka commented Feb 4, 2016

Hi @Litiano, the fix has been delivered to mainline (see 4956b2a).

@slavvka slavvka closed this as completed Feb 4, 2016
@mikebranderhorst
Copy link

"Leave empty for default (2)"

After migrating, this field was empty for us in adminhtml. It should show 2 lines on frontend. Instead it shows no lines.

core_config_data customer/address/street_lines NULL

If the field is filled with a value, now it shows the correct lines.

"Valid range: 1-4"

If I use "5" as value, this is accepted (shouldn't) it also show 5 lines on frontend. Value "0" is also accepted and show no lines on frontend.

Now, there is no html5 not javascript validation on this field. I think adminhtml should validate on save and leave value empty if value is not valid 1-4.

@PascalBrouwers
Copy link
Contributor

PascalBrouwers commented Aug 30, 2016

@slavvka Seems this bug is still present in magento 2.1.0
I set "Number of Lines in a Street Address" to 1, yet in the checkout is shows 2 lines.

@girishassudanizeon
Copy link

I am using magento 2.1.5, the issue is i am not able to see the setting in magento to set the Number of Lines in street address.. Does any one encounter such issue?

@rodrigowebjump
Copy link
Member

Hi I also did not see anymore the option to set the number of lines in the admin.

Store->Configuration->Customer Configuration->Name and Address Options

@samgranger
Copy link
Contributor

I have also encountered the issue that 'Number of Lines in a Street Address' is missing.

It appears that in my case, this is due to being an Enterprise installation. The EE module 'Customer Custom Attributes' removes the street lines from the previously mentioned Customer Configuration.

For EE, this has moved to Stores => Attributes => Customer Address. You can find the Street attribute & modify the Lines Count there. The current EE street line range is 2-20 compared to CE's range of 1-4.

To get around this issue, in case you only want 1 line in EE, you can set the following path value to 1 in core_config_data: customer/address/street_lines

@rodrigowebjump
Copy link
Member

Hi Sam,

Thanks for the information

@samgranger
Copy link
Contributor

Excuse me, but what I said was incorrect, the number of street lines can be edited in customer_eav_attribute - you can edit it to one there, in the multiline_column column (make sure you edit it for the correct attribute ID).

!!Please do this on a test environment and make sure everything is still working as intended before applying to live!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants