Questions tagged [customer-address]

Denotes question related to customer-address in magento 1 and magento 2

Filter by
Sorted by
Tagged with
0
votes
2answers
25 views

How do you get values from Quote_address table Magento 2

I have added new column in Quote_address table but I am not able to get the value when i do the following steps; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
0
votes
0answers
13 views

How i can add custom address to shippingQuote

How to add your address to multisping so that the same addresses are grouped. Like standart addreses wich you create. protected function getCustomAddressDataById($addressId) { $addresses = []; ...
0
votes
0answers
38 views

Customer address problems after migration from Magento 1.9.2.4 to Magento 2.3.2

I've searched high and low for a problem the same as this, and while I have found some seemingly similar, after investigating they are not linked. I migrated fine, and products, categories, ...
1
vote
0answers
23 views

Magento 2: Create new customer address type [duplicate]

How can we create new customer address type(like billing and shipping) in Magento 2.3.x ? That new address type should work same like billing or shipping i.e. it should be assigned to particular order,...
0
votes
0answers
9 views

How to get customer default shipping and billing address data (i am after country and postcode)

I have customer ID - Not sure how to grab the default shipping/billing address. I can get the current shipping address and billing address but not the default. Is there any way I could get the default ...
0
votes
0answers
32 views

Magento 2 A customer with the same email already exists in an associated website error

I'm stuck in a weird problem. Everytime I try to create an account and add an address to that account programmatically I get an error called A customer with the same email already exists in an ...
4
votes
4answers
251 views

Magento 2.3 - Customer address attribute not saving in checkout from

I have created a custom custom_address attribute "a_mobile_phone". I can save the attribute in the admin and the customer address edit form. I have added this attribute to the checkout address form ...
1
vote
0answers
29 views

Magento 2 - Uncheck Billing and Shipping are the same for selected Payment Method

I'm trying to uncheck Billing and Shipping Address are the same but for only one payment method and leave all the other with this option selected but I'm unable to do it with this solution bellow. The ...
0
votes
0answers
21 views

Magento 2 Which event I can call to save multiple Customer addresses in custom table?

I wanted to store multiple Customer addresses in my custom table, Which event in Magento is used for this. I need to call event for edit Customer from Admin Panel. I tried it bu using this event ...
0
votes
1answer
185 views

Magento 2.X - Invalid Customer Address Id comes randomly for the customers on checkout

I've faced an issue in Magento 2.2.9 says "Invalid Customer address id XXXX" randomly for the registered customers on the website. [2019-08-09 02:44:33] main.CRITICAL: Invalid customer address id ...
2
votes
0answers
172 views

Magento 2 customer data migration & volume check failed?

I would like to migrate only customers data using magento2 data migration tool. Can anyone suggest how to resolve the below error when migrating data [2019-08-06 12:20:19][INFO][mode: data][stage: ...
0
votes
0answers
21 views

VAT Customer shipping goods to different country with billing address VAT magneto 2.2.3

Not sure how to get this working, if anyone has any idea will be appreciated for the time. My aim is to create a module to check if the customer passing two different countries in billing and ...
1
vote
0answers
18 views

Is there anyway to check shipping address country matches with billing address?

I have created an account and added a billing address in my account section. After selecting products, I get to the first /checkout page. I want to do a check does billing address country matches with ...
0
votes
0answers
25 views

How to create two different form for the customer registration one is default and the other is Seller

I want to create the separate registration page for the seller and the customer, please guide me. I created the custom module for the seller registration page, where i called the custom page in ...
1
vote
0answers
29 views

Updated address not reflecting at Checkout in Magento 2

I have customized the Checkout, Where I split the checkout into 3 steps. Cart section. Shipping Payment. In the Shipping section, I am showing the customer address details with an edit button to ...
0
votes
0answers
14 views

Magento2: How can remove street address search in customer admin grid?

I want to remove street address search when search by text. It should search by name and phone numbers. Anyone have an idea for that.
3
votes
1answer
142 views

Save customer custom address attribute programmatically

I have created new address attribute hide_address with yes no value. Using setup script: if(version_compare($context->getVersion(), '1.0.2', '<')) { $objectManager = \Magento\...
3
votes
0answers
22 views

Magento 2 : In registration page how to ask for shipping address different than company address?

In registration form I want to ask the user if he wants to use a different address for shipping address. If that is true, then he can input the fields for the shipping Address. I have tried to ...
0
votes
1answer
40 views

Can't override phtml template, displays blank page

I have override vendor/magento/module-customer-custom-attributes/view/frontend/templates/customer/address/edit.phtml and placed the replaced file in: app/design/frontend/ParentTheme/childTheme/...
0
votes
1answer
73 views

How to get street address in customer edit form

Currently, I am in the customer address form block \Magento\Customer\Block\Address\Edit $block How to use $block and get the street address of the customer address. I tracked the street address is ...
0
votes
1answer
40 views

Customer street address second line not getting populated

I have address the 2nd street text box(2nd street line), but when I enter the address on both text boxes. code for 1st street line <input type="text" name="street[]" value="<?= $block->...
1
vote
0answers
24 views

How to add label on all lines of street fields in backend customer address field and turn then required?

how to add label in the backend admin grid that is sales->order-> Create new order from the backend and add the street label and also remove the required field for the postal code
0
votes
0answers
23 views

Creating custom button in customer address section Magento v2.3.1

I have created the custom button in the customer address section and it's showing well. When I edit any customer it's working normally/expected. But when I click on Add new address it's throwing an ...
1
vote
1answer
76 views

Magento 2 How to get Customer address after registration?

How to get customer address(company,telephone,country,state,city etc.) after registration in observer? I am using observer. Code - $customer = $observer->getData('customer'); first name and ...
0
votes
1answer
58 views

How to identify if region_id is required or region (region_name) is required?

I am creating customer address in Magento 2 programatically. In few countries the region_id is required, which can be obtained from the model \Magento\Directory\Model\Region, for example forUS ...
0
votes
0answers
12 views

Is there a way in magento2 to detect if placed ordered ADDRESS IS NEW ADDRESS OR NOT?

I'm using Magento 2 order split 3rd party extesnion which is splitting order based on the seller. if an user placed an order having 2 items where each items have different seller then 2 order will be ...
1
vote
0answers
34 views

New Customer address attribute not saving on Frontend

I have created a new customer address attribute, it shows the field correctly on the frontend BUT it doesn't allow you to save the data. It does work correctly when saving through admin, and then ...
2
votes
1answer
34 views

How to change a state placeholder from the cart and checkout shipping summary

I want to change state placeholder on the cart and checkout summary section. In dropdown state/Province for showing "Please select state". Instead of "Please select state" I want to display "Please ...
1
vote
0answers
16 views

How to add VAT validation Check

Is it possible to add a VAT validation Check when user saves it (frontend)
2
votes
2answers
124 views

Loading a customer address by a custom attribute

I've added a custom attribute to customer address entity which is a backoffice ID. I've synced addresses from clients backoffice. If order maintain a continual sync to check whether address exists I ...
0
votes
0answers
37 views

Get custom customer address attribute on email

I have a module with which I create my attribute. I can get it and show it in the admin panel, but not when the data is recibed on checkout process. This is my installer code: public function ...
2
votes
0answers
311 views

Magento 2 Save custom customer address attribute in customer edit form using extension attributes

I want to save custom customer address attribute in Customer Edit Form under My Account section. I have created an attribute using Setup script and save that attribute using extension attributes. ...
1
vote
0answers
23 views

Exclude addresses from checkout

Please Help me on this, We have a one customer which has three different addresses in his account.in to the entity of address i have a select attribute field with values A,B and C. My question is how ...
0
votes
0answers
41 views

How do I remove store-wide the state/province field for users

In our German store for users it is not required to select a state/province for their personal address or shipping addresses. I already managed to disable the the field in the store frontend via the ...
1
vote
0answers
32 views

Magento 1.9.2. - Save the attribute of the customer_account table in the form customer_address

On the customer address change page I am trying to add fields for some custom attributes that I have created and inserted into the customer_account table. After several tests I saw that in the edit....
0
votes
1answer
47 views

How to put labels in the input fields in the customer address edit?

In Magento 2.x, on the customer account screen, I need to add labels to the address inputs. What is the best way to do this? I was able to perform the same modification on the address inputs of the ...
0
votes
0answers
74 views

Magento 2: How to load another customer data on checkout instead of current logged in customer via custom module?

I want to show a customers list as dropdown on checkout page and when I change the customer from that dropdown list, All details like shipping addresses, customer detail should be change according to ...
5
votes
1answer
104 views

Magento 2 - What is the LayoutProcessor for addresses in the admin panel?

When adding a field to the address form of the checkout in the front end I could do so by creating a plugin for \Magento\Checkout\Block\Checkout\LayoutProcessor. I would like to add the same field ...
1
vote
1answer
122 views

Custom address attribute: issue on display value magento 2

I have created a custom attribute for customer address. I can see the attribute on admin, I can insert value on frontend, the value saved successfully (and it displayed in address preview) however if ...
2
votes
2answers
425 views

How to get Region text from address id (Magento 2)

I am not able to get region text from address id, <?php $_pAddsses = $block->getDefaultBilling() ?> <?php echo $block->getAddressById($_pAddsses)->getRegionId() ?> // ...
1
vote
0answers
8 views

Is there any way to retain the entered customer billing/shipping addresses in magento admin once entered?

We see that the addresses of billing/shipping added to the order creation process gets erased if we remove all line items from the cart and then add back new product using "Add products by SKU" button....
5
votes
0answers
26 views

Load default address when logged in on magento2

I want to load magento2.1 default address on my cart page address box when i'm logged in. mean that, when i'm in one step checkout page and logged in, in my address part, see default address instead ...
1
vote
0answers
64 views

How to get custom address attributes in Magento 2

I am trying to display all custom address (Added programmatically) attributes on address add/edit page in My Account section. I have looked into below interface module-customer/Model/Address/...
0
votes
0answers
82 views

Magento 2. Invalid country code CW. Record of CW exists. Transform to valid country_id

As a result of a migration I inherited some customers from Curaçao. For whatever reason Curacao (CW) is considered an invalid country code. There is a record of Curacao (CW) vendor/magento/...
1
vote
2answers
733 views

Magento2 - New customer address attribute won't save to database

I'm trying to define a new customer address attribute that will be available in all the customer address forms (backend, frontend, checkout). I've used the information provided here: https://devdocs....
-2
votes
2answers
58 views

Set value to customer custom address attribute in magento2

I have created a multi-select attribute(attribute_code is address_purpose) for the customer using UpgradeData The options are created and the values are getting stored if I edit in magento admin. ...
1
vote
1answer
1k views

Multiselect attribute not saving in Magento 2.3.0

I have created the multi-select attribute for customer address using below code. Setup/UpgradeData.php $customerEntity = $customerSetup->getEavConfig()->getEntityType('customer_address'...
0
votes
2answers
25 views

Magento 2 - InstallData script doesn´t add column to my 'customer_entitiy'

I´m now trying to add a custom attribute for like 5 hours now. It drives me nuts that I dont find the solution hope you can help me. I want a custom attribute to be displayed and saved when the user ...
2
votes
1answer
163 views

How to validate form fields such as city, zipcode in address form

I have done form validation as follows <form class="form-address-edit" action="<?= $block->escapeUrl($block->getSaveUrl()) ?>" method="post" id="form-validate" enctype="...
1
vote
0answers
69 views

Validation customer address attribute in Backend and Frontend server side

I should create a server side validation for a customer_address attribute in both the backend and the frontend. I do not use overwrite the model and the validadateData() method associated to the ...