Questions tagged [address]

For questions about the use of shipping/billing addresses in Magento.

Filter by
Sorted by
Tagged with
1
vote
1answer
223 views

Magento2 Event after Default Billing address change, How to send email if Billing address change?

I want to send an email to admin if the default billing address selection is changed or the values are changed by the customer. How can I achieve this?
2
votes
1answer
23 views

magento 2.1 change address structure hierarchy

I want to show state, province, postcode in line like below india-dehli 185235 how can i change the hierarchy of address structure?
2
votes
0answers
26 views

Magento2 address template

I want to show my addresses on customer panel like this: FA, Macon, rujeh st, NO12. instead of: fa macon rujeh st no12 what should i do?
1
vote
0answers
220 views

VAT-Id activated. missing field in shipping or billing address on checkout page

I've activated the option "Show Vat-Id in frontend" but the VAT-ID Field on the checkout page address forms is still not displayed. How can i add the VAT-ID field to the address forms on the ...
0
votes
1answer
356 views

Address format checkout page issue in Magento 2.2.3

On the checkout page the address format is not assumed. Customer address format defined in the backend is ignored. This is the format defined in backend {{depend prefix}}{{var prefix}} {{/depend}}{...
3
votes
2answers
1k views

How to reorder street address on checkout page in magento 2?

I am getting every field unordered on checkout page but I added code to sort them and now everything is sorting but the street address is not getting sorted I am getting a street address field on top. ...
3
votes
2answers
2k 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
135 views

How to remove city field from admin "Create New Order" Billing Address?

Hi I am working with magento 1.9.3 In admin panel I need to remove City field form Create New Order page (Both Billing and Shipping Address). Can anyone suggest me please how I can do that? For ...
1
vote
1answer
570 views

Unable to delete address from Address Book , My Account (Magento 2)

I am not able to delete the additional address from the address book. Code for script <script type="text/x-magento-init"> { ".page-main": { "address": { "deleteAddress":...
3
votes
4answers
514 views

Remove Addresses tab from customer edit page magento 2

How to remove Addresses tab from customer edit(form) page in admin panel Magento 2?
1
vote
1answer
731 views

Magento 2 Around Plugin get posted form value

I am customizing the address form to add custom arithmetic captcha. We are using ClassyLlama\AvaTax module to validate the customer address in Model File. Now, to validate my custom captcha on server ...
1
vote
1answer
88 views

how to open new form in another phtml without url change

I have put the form for add new address of Address book in address book index page itself without redirecting it to a new page for adding a new address. I need to open the form html on click of add ...
2
votes
2answers
737 views

Magento 2 How to override "\vendor\magento\module-checkout\view\frontend\web\js\view\billing-address.js" in our custom module?

I want to disable "New Address" option from billing address drop down. here i got the code to disable it. we just need to comment the below code : addressOptions.push(newAddressOption); and it will ...
3
votes
3answers
11k views

Magento 2 How to add custom attribute to customer address and how to insert value in that attribute?

I want to add a new custom attribute to "customer_address" that I did with an attribute installer script, now I am able to see that field in "eav_attribute" table. I have created a module and I have ...
0
votes
1answer
201 views

Magento 2 How to get custom field name 'location_id' aded to "customer_address_entity" at frontend, on order place after observer?

I have create one module which add 'location_id' in 'customer_address_entity' table. I also create one observer which called when order placed. Here i got the address id from order, Now i want to ...
0
votes
3answers
1k views

Magento 2 How to override Magento\Customer\Block\Address\Book block in my custom module?

I want to override block Magento\Customer\Block\Address\Book in my custom module. And need to add a new function which returns module status enable/disable, which is defined in the model class. I need ...
1
vote
1answer
98 views

Magento2: Select box as title in checkout as select

The title field in the checkout of M2 is only text field. Is there a possibility to use a select button instead to let the customer choose between "Prof" and "Dr"?
3
votes
2answers
1k views

How to get file location in magento 1.9

How to get file location of this page in magento 1.9
0
votes
0answers
219 views

how to Show address fiels in new form registration for Customer magento 2

I created a new form registration for customer and according to group, they will be redirected to a form. I added the fields of address in the first one by adding this code at customer_account_create....
0
votes
0answers
150 views

Show address fields in form registration in Magento 2

I have created another form registration for customer and according to group he will be redirected to a form. I added the fields of address in the first one by adding this code in ...
1
vote
0answers
33 views

How to customize the address in registration form Magento 2

I want to have the attribute address and region and not post code and country name so how to do that?
1
vote
0answers
210 views

Invert 'My billing and shipping address are the same' checkbox functionality in checkout

I need to do a little customization in checkout: I want to change the functionality of the checkbox My billing and shipping address are the same in this way: The label will be Need Invoice (already ...
3
votes
2answers
1k views

Magento 2 | Remove telephone from checkout address

How can I remove the telephone field from the address fields in checkout (without CSS)?
2
votes
0answers
40 views

How to create new type of customer address like billing and shipping in Magento 2 (EX : xyz address)

How to create new type of customer address like billing and shipping in Magento 2 EX : xyz address
0
votes
1answer
1k views

Magento 2 : How to change state list for USA? [duplicate]

How can I change/remove some states from Shopping Cart and Checkout page? For example. I need to remove: American Samoa; Virgin Islands; Armed Forces Africa (Americas, Canada, Europe, Middle East, ...
5
votes
1answer
3k views

region Id error on updating address using address Id in magneto2

I followed below link to update address using address id Update customer address using address id in magento 2 I am getting this error upon executing this code protected $addressRepository; public ...
8
votes
4answers
5k views

How to update customer address using custom Api in magento2?

I have created custom API to update customer address using customer id or address id. Below code I used to implement it. [Vendor]/[Module]/etc/webapi.xml <route url="/V1/address/createUpdate" ...
1
vote
0answers
53 views

Shipment Note PDF Print don't shows the shop address magento2

I am trying to put the store address to the shipment pdf. I found that Magento has an own function for address insertion, but it doesn't work. Sales/Model/Order/Shipment.php public function getPdf(...
2
votes
0answers
364 views

How to add new address for a existing customer through REST API

I am facing one issue. Actually I have created first the customer profile using magento2 through REST API but now I am trying to add the address for this existing profile but unable to do it. My code ...
2
votes
1answer
1k views

Magento 2 : From where (PHP) is the checkout billing address options drop down being populated?

From where is the checkout billing address options drop down being populated? How can I control the options? EDIT: Found root/vendor/magento/module-checkout/view/frontend/web/js/view/billing-...
1
vote
0answers
34 views

M2 : After magento upgrade not able to save "state" form address edit page

I have upgrade magento version after that i'm not able to save state (region), from both admin and frontend side into address edit section. I have check customer's attributes and address attributes ...
1
vote
2answers
2k views

How to set required field ''State/Province' of add new address in My Address Book, magento 2?

Using magento 2.2, I want to set required on field State/Province in Add New Address in 'my address book'.
2
votes
1answer
799 views

How to disable link in telephone phone number in address book?

Using magento 2.2, I want to remove link from phone number in address book. Not allow user click on number.
0
votes
0answers
40 views

Get new field address in the payment module (capture function). M2.2.4

I added a new field (neighborhood) at the client's address. Everything is working. But, I need to get this value from my payment module. I created the capture ($payment) function. With the $payment->...
0
votes
1answer
193 views

Unable to place order from Magento Admin, showing error on city field required

I am unable to place order from admin. I enter all the data in required field. When I place order, error showing in the City field - this is a required field. I am using magento 1.9.3.7 version can ...
0
votes
1answer
80 views

Magento 2 - billing address not changed

following code: <?php namespace UV\Adressen\Observer; use Magento\Framework\Event\ObserverInterface; class LieferadresseEditObserver implements ObserverInterface { private $...
2
votes
0answers
697 views

Add custom attribute to sales order address

I have a custom attribute for customer address which I setup using EAV, I load the custom attribute for customer address using order like this: // Magento\Customer\Api\AddressRepositoryInterface $...
0
votes
1answer
446 views

Which event fire on address change in Magento 1 Admin?

After place new order by customer, If Admin change shipping address of customer from Sales-> Orders then I want to know which event fire while changing address, so that I can call my function in ...
1
vote
1answer
584 views

Default Billing and Shipping address

I would like to check when a customer click on “Place Order”, if he has a default billing and shipping address. If no, I would like to put the addresses of the order by default for this customer. ...
0
votes
0answers
21 views

Magento checkout

How to add Address verification block on payment step in magento2. Please review below screen show link https://prnt.sc/irgs46
0
votes
0answers
25 views

Magento 2. Order View Addresses not showing

I have some wierd issue with Order View Addresses as can be seen in print-screen What I've done: rm manually pub/static/frontend + static content deploy Any tips? FWI: This happend after I ...
0
votes
1answer
1k views

How to add customer new Address(multiple shiiping and billing addresses) through API in magento2.1.7

How can I add customer multiple address through rest API in Magento2.1.? Hope currently there is no API for adding additional customer address.So, Please let me know is there any other option to add ...
0
votes
1answer
217 views

How to get default selected customer shipping address?

if (is_null($this->_address)) { if ($this->isCustomerLoggedIn()) { $this->_address = $this->getQuote()->getShippingAddress(); } else { $ship = $this->getQuote()-&...
1
vote
2answers
1k views

Close modal popup gracefully in magento2

I am using Magento modal popup for various functionalities in checkout. I am working on an address validation module that fetches the corrected address from USPS API and displays the corrected address ...
0
votes
1answer
5k views

Magento 2: Add or edit address in popup

In customer account address book, add or edit address is managed in separate page. I want to add or edit address in popup modal(same like shipping address popup modal in checkout page)*. How it can ...
1
vote
1answer
1k views

Magento 2 how to add city dropdown

i am trying to city as dropdown in only checkout page with following script in Magento\Checkout\Block\Cart\LayoutProcessor.php $elements = [ 'city' => [ 'visible' => true, ...
0
votes
0answers
245 views

$customer->getAddressess Error

I am using Magento 2.1.7 CE sometimes when Im trying modify cart (remove product, add, or update qty) I got Error: "Invalid customer address id XX". I noticed that in class Magento\Framework\...
1
vote
1answer
2k views

Magento 2 : Delete address from after login from address book

I want to delete the address which I have saved earlier from here but in vendor-> Magento_Customer\templates\address in addressbook file we have only edit address action but not delete action so ...
0
votes
0answers
468 views

magento 2 , write custom query in customer_address_entity, We can't save the address

I am trying to add a custom field(customer_type) value using observer to customer_address_entity table.The edit is done in BeforeAddressSaveObserver.php file. The problem is the field is not getting ...
2
votes
2answers
803 views

Remove Add New Address and delete buttons on adminhtml

I want to remove these 2 buttons denying the ability to create or delete addresses. How Magento renders this layout? It seems it has to be this file: /module-customer/view/base/ui_component/...