Questions tagged [customer-address]
Denotes question related to customer-address in magento 1 and magento 2
342
questions
0
votes
0
answers
23
views
Updating a custom field added in edit customer shipping address
I have a custom field added for my customer address :
\Magento\Customer\Setup\CustomerSetupFactory $customerSetupFactory;
public function upgrade(ModuleDataSetupInterface $setup, ...
0
votes
1
answer
48
views
How to Use Customer Address template (set address in Customer Address Template )?
Thank you in Advance
I want to use customer address template to show customer template in format but I don't know how to do this ?
You can find this configuration :- Store > Configuration > ...
0
votes
0
answers
41
views
Magento 2, In checkout page shipping method is loading while changing the shipping address
Magento 2, On the custom checkout page, the shipping method is loading while I am changing the shipping address and getting the below error in the browser console.
js.storage.js:155 Uncaught TypeError:...
0
votes
2
answers
121
views
How to run the following exports: Customer Base and Customer Addresses?
A company is switching one of my Magento 2 websites to Shopify (or some system like that) and they asked the following:
We were unable to run the following exports. Can you please provide them?
...
0
votes
1
answer
323
views
Address empty in checkout after updating to 2.4.6?
I updated from 2.4.4 to 2.4.6, everything seems good, except for the checkout. It seems that the customer addresses are not loaded correctly.
https://i.imgur.com/rZKZLs1.png
When I go on to the next ...
0
votes
1
answer
41
views
How to override customer address template
how to override customer address from customer account area and shipping option at checkout.
I aim to add a regex to stop customers from entering special characters and letters.
Customer account ...
0
votes
0
answers
61
views
How to store the data of a "used_in_forms" attribute in the Checkout?
I've added an attribute to the Customer Addresses:
<?php
namespace Dc\Customer\Setup;
use Magento\Customer\Api\AddressMetadataInterface;
use Magento\Customer\Setup\CustomerSetupFactory;
use ...
1
vote
1
answer
81
views
Custom Customer Address field not passing validation
I've added a custom field to the Customer Addresses with the following UpgradeData:
public function upgrade(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
{
/** @var ...
0
votes
2
answers
810
views
Checkout Page Street Custom Validation
I want to add validation to prevent code blocks or special characters like {}%.
1
vote
0
answers
159
views
Add custom validation for additional address field in customer account
I created a new validation role (testcaractere_speciaux_street) to eliminate specific spatial characters for the two fields address and address complement in the interface of the add address (customer ...
1
vote
1
answer
247
views
Prevent duplicate Billing address creation in cutsomer_address_entity after customer checkout
I have noticed one thing. When placing an order from customer side, each time, the default billing address is duplicating in the customer_address_entity table.
I couldn't figure out where exactly the ...
1
vote
1
answer
24
views
magento 2 bring key to first in customer address
i have multidimension array as below.
[
{
"id": 45308,
"firstname": "Sanku Pradeep"
},
{
"id": 45309,
"firstname": "Sanku&...
1
vote
0
answers
50
views
Country Code Required - Magento 2.4.3
On one of our websites, we have issues after they have created the account they need to add the home address and shipping address to their account. When they do so they get "Country code is ...
0
votes
0
answers
64
views
Magento 2: How to add reCAPTCHA to Customer Address Form
How can I add reCAPTCHA to Customer Account Address Edit and New address form
0
votes
1
answer
270
views
Magento 2 - Check if customer and customer addres created from admin backend
Is there a way in Magento 2 to check/know if a customer and a customer addres is created/edited from admin panel ?
I was thinking using a oberver on customer_address_save_before and ...
0
votes
1
answer
436
views
How to add Multiple validation rule
I have to add three validation rule and as you see below code works well for one rule :
validation-mixin.js
define([
'jquery'
], function ($) {
"use strict";
console.log('this is ...
0
votes
1
answer
46
views
How to create a custom address attribute for customer and show that in edit address in admin?
I want to create a custom customer address attribute called customer_custom_id in the below address.( check the below image.). how can I do that?
0
votes
0
answers
79
views
Customer address not save programatically in magento 2
I tried to create and save customer address for a registered, logged user.
My code in controller is like below.
$addresss = $objectManager->get('\Magento\Customer\Model\AddressFactory');
$...
0
votes
1
answer
23
views
Glitch in Customer's Billing address in admin panel
I can see The first name and last name of the customer in Billing and shipping address is coming in the form of code.
Please see https://prnt.sc/yezZ9OBC4C-t
Can anyone help me in resolving this, and ...
1
vote
1
answer
534
views
magento 2.4 save region as string in address
I'm importing my customers via code and part of that import involves addresses and regions. If the region is in the database, I have no issue in importing it, I simply get the region id by the region ...
1
vote
1
answer
323
views
Magento 2: Add custom OrderAddress field in GraphQL
I have a requirement where I want to add a custom field in the OrderAddress query of GraphQL. Anyone who have done this can help.
0
votes
1
answer
12
views
Turks and 2 Caicos Region ID
One of the customer has the country and state details as below
Postal Code-TKCA 1ZZ City-PROVIDENCIALES State-TCA Country-TCA
County-TCA
I have fixed by assigning country id as TC and region ...
1
vote
1
answer
38
views
I'm trying to define a new customer address attribute that will be available in all the customer address forms (backend, frontend, checkout)
So far I have managed to save the value in quote_address and sales_order_address when placing the order how can I save the value in the customer_address_entity_varchar table. when customer address ...
0
votes
0
answers
448
views
how to call address dynamic block in template file with arguments?
Hi here is my code in the layout XML file.
<block class="Magento\Customer\Block\Address\Edit" name="customer_address_edit" template="Magento_Customer::address/edit.phtml&...
0
votes
1
answer
55
views
I have multistore website, stores are like A, B, C, D and its respective country is W, X, Y, Z. country selection based on website entered in magento2
I have a multistore website in magento2 my stores are like A, B, C, D and its respective country is W, X, Y, Z and I have limited shipping like I want shipping only for four countries. suppose ...
0
votes
3
answers
353
views
Changing the order of fields in Customer Address Book (2.4.3)
I would like to change the order of fields when a customer adds an address or edits an existing one in the address book.
Eg: I would like the zip-code field to be ordered before the city field.
...
0
votes
1
answer
23
views
Magento 1.9 update street adress line 2 via PHP
I'm writing some codes to update customer address using php, but the site use 2 street fields,
when i set it like $address->setStreet1('test 1'); it's not working $address->setStreet('test 1'); ...
0
votes
1
answer
153
views
Magento 1.9 set exisiting address as default billing and shipping address
I'm writing some magenta 1.9 codes for set existing customer address to set as default billing and shipping address
<?php $customerId = Mage::getSingleton('customer/session')->getCustomer();
$...
0
votes
1
answer
607
views
how to save customer address attribute after order success event in Magengto 2?
I have added a new shipping address (without saving it in the address book) on the checkout page to place an order.
I want to update the existing default shipping address value (zone attribute only) ...
0
votes
2
answers
234
views
Can you recommend a good extension we can use for Magento 2 to auto complete address during checkout?
I'm looking for an extension that we could use in our store to autocomplete the address during checkout so there will be less mistakes when customer's enter their address?
I've tried to research some ...
0
votes
1
answer
2k
views
Custom Customer Address Attribute save value
I've added a custom shipping and billing address input field on checkout via layoutProcessor. The field shows up fine but when I submit the order the value of the custom attribute is not saved as the ...
0
votes
1
answer
1k
views
How to Block Customers by their Address in Magento 2?
I want a feature in which user will be blocked by their Address.
Like I will add the address in block list of Magento Admin and then user will not be able to purchase anything if I add their address ...
0
votes
0
answers
247
views
How to get the updated customer record in magento 2
I am trying to fetch the customer record which is updated. Customer update implies both customer entity as well as customer's address.
I am relying on the updated_at column which technically says that ...
0
votes
2
answers
1k
views
Magento 2 How to get all customer shipping address
How do get all customer shipping address?
Magento 2.3.5-p1 version
for the customer table, we can use - customer_entity table name
for the customer address table, we can use - customer_address_entity ...
0
votes
1
answer
229
views
How it work Magento\Customer\Api\Data\AddressInterfaceFactory
I am analysising Magento\Customer\Model\Address\AbstractAddress
By the way I am facing with $addressDataObject = $this->addressDataFactory->create(); in 567 line
$this->addressDataFactory ...
0
votes
2
answers
2k
views
Magento 2 - How to get Addresses collection
In Magento 2, I try to get addresses collection from table 'customer_address_entity', filter by updated_at field.
I know I can get addresses for customer with this :
$customer = $this->...
0
votes
1
answer
76
views
Please enter a valid region error for regions with special characters
I'm trying to import customer addresses. If the region has a name with accents, Magento v2.3.6 won't recognize it.
Example:
Country code 'RO', region 'Timiș' - doesn't work
Country code 'RO', region '...
1
vote
1
answer
651
views
How to add columns to customer address grid in admin?
I have to add two fields to the customer's address grid, for this I have to add a left join to the Magento collection. I have created the following custom module:
Vendor/Module/registration.php
<?...
0
votes
1
answer
113
views
Magento 2 : Make customer name optional while creating customer & saving address?
Is their any way we can make customer lastname as optional while creating & saving customer,
also when we save customer address from $order->getBillingAddress()->getData() ?
code for ...
0
votes
1
answer
201
views
how to change address information format in invoice, shipment and credit memo?
I want to change the address information format in shipment, invoice, and credit memo. Right now the format is Magento address information format like this
I want to display the area and subdistrict. ...
1
vote
0
answers
237
views
custom attribute in customer address grid
I am trying to add a column in the customer address grid in admin with a custom attribute.
<column name="addresstypes" class="xxx\AddressAttribute\Ui\Component\Listing\Address\...
0
votes
1
answer
672
views
Customer Address attribute added in grid in magento 2
I have added one customer address custom attribute. it is showing in the customer address form as a dropdown field. Now I want to show that as a column in customer address grid in admin with value.
I ...
0
votes
1
answer
362
views
Additional column in customer address grid in Admin in magento 2
I have added one customer address custom attribute. it is showing in customer address form i want to show that as coulum in customer address grid in admin with value.
i have added this code:
<...
0
votes
0
answers
36
views
Account Information Link in Customer Dashboard is not working - Magento 2.4
Account Information Link is not working in customer dashboard, when i click on this link then getting below error.
1
vote
1
answer
314
views
why region_code not storing properly in magento 2.3.5?
I am using Magento GraphQL api in my project. To create a customer address I used createCustomerAddress mutation(createCustomerAddress).
Below is the mutation that I have called to create the customer ...
0
votes
1
answer
147
views
Set default attribute value for existing addresses
Is there a way to create a new custom address attribute and set the default option to all existing addresses? Right now it only shows the default value when creating a new address and all existing ...
0
votes
1
answer
61
views
How to modify magento 2 submission form?
How can I add labels to the address fields.
Example:
Field 1:
Field 2:
Field 3:
1
vote
0
answers
222
views
Magento 2 - REST API filter customer data by address fields
I want to filter customers in a country,state,city or street in REST API. How can I do it?
I am using the /V1/customers/search API Call. Now I can only filter by the customers default billing address ...
0
votes
0
answers
64
views
Magento 2 how to setting Billing Address qty
i'm using magento 2.3.x , how can i setting Billing Address qty to 1 only? it just can give custumer to add one address or 2, thank you!
i want customer only can setting one or two upper limit billing ...
1
vote
0
answers
73
views
Magento 2 Checkout How to identify that customer add new shipping address on checkout?
How to identify that customers add a new shipping address on checkout(if customers do not want that shipping address which showing on checkout page)?
After identifying the new address we need to ...