0

only in admin panel i want to show only field to add the address right now there are two fields. How i can achieve it?

only in admin panel i want to show only field to add the address right now there are two fields. How i can achieve it?

asked Oct 2, 2023 at 10:57
5
  • Do you still want to see 2 fields on the customer side ? Commented Oct 2, 2023 at 11:11
  • yes that's the functionality i want show only one field on admin side and other than that let everything stay as it is Commented Oct 2, 2023 at 11:27
  • As this fields are editable, how will you tell which part belong to which street_line ? Do you want them separated by some delimiter ? Commented Oct 2, 2023 at 11:46
  • yes that would be great Commented Oct 2, 2023 at 11:58
  • Hello @Harris please try this way magento.stackexchange.com/questions/316061/… Commented Oct 3, 2023 at 5:41

1 Answer 1

0

You can do that with css.

just put below css in the admin area.

input[name="street[1]"] {
 display: none;
}

You can add above css by using an extension or by creating child admin theme.

answered Oct 2, 2023 at 13:12
1
  • i dont have much knowledge of magento can you tell me where i need to create a file in which dir . i am asuming it should be in app/desing/frontend/vendor/theme/Magento_Customer/adminhtml/whats next Commented Oct 2, 2023 at 17:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.