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?
-
Do you still want to see 2 fields on the customer side ?Cladiuss– Cladiuss2023年10月02日 11:11:04 +00:00Commented 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 isHarris– Harris2023年10月02日 11:27:36 +00:00Commented 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 ?Cladiuss– Cladiuss2023年10月02日 11:46:10 +00:00Commented Oct 2, 2023 at 11:46
-
yes that would be greatHarris– Harris2023年10月02日 11:58:21 +00:00Commented Oct 2, 2023 at 11:58
-
Hello @Harris please try this way magento.stackexchange.com/questions/316061/…Rasik Miyani– Rasik Miyani2023年10月03日 05:41:27 +00:00Commented Oct 3, 2023 at 5:41
1 Answer 1
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
-
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 nextHarris– Harris2023年10月02日 17:49:50 +00:00Commented Oct 2, 2023 at 17:49
default