Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [address]

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

Filter by
Sorted by
Tagged with
2
votes
3answers
844 views

Magento 2: Can't delete additional address from address book

When I am going to delete an address from "My Account" address book I am getting error message We can't delete the address right now. But some other account I can delete the address. I have checked ...
0
votes
0answers
16 views

Magento\Quote\Model\Quote\Address is not the instance of \Magento\Framework\DataObject

In vendor/magento/framework/DataObject/Copy.php::_getFieldsetFieldValue the paramter $source is an object of Magento\Quote\Model\Quote\Address. In _getFieldsetFieldValue, $source will be considered ...
0
votes
1answer
49 views

Magento 2: in checkout how to display input fields on the same row?

how can I display street , House number, Addition fields in one row? I have this file app/code/Mageplaza/Osc/Block/Checkout/LayoutProcessor.php <?php /** * Mageplaza * * NOTICE OF LICENSE ...
4
votes
2answers
795 views

Disable P.O. Box entry on Paypal Express?

Is it possible to disallow orders shipping to PO Boxes when a customer is checking out using Paypal Express?
0
votes
1answer
40 views

One page checkout html file

In one page checkout i need to find html file for the address block. Please can someone help me with that. I want to put first name and last name together in a div.
0
votes
1answer
1k views

Want to edit Default Billing and Default shipping address individually

Right now if I edit only default billing address then automatically update default shipping address. Can anyone have any code idea to customize this?
0
votes
1answer
31 views

Magento 2 miss label Street address in company form

Please help me fix the issue label Street address miss in the backend. I see that have the div class "admin__field-label" duplicate above This is the class delicate
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, ...
3
votes
2answers
3k 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 ...
6
votes
4answers
4k views

How to add label on all lines of street fields in checkout and turn then required?

Magento has a feature to define between 1 and 4 fields, how much we will want to use in the street field. I've activated 4 lines and would like to add labels line by line. I did this on the user ...
0
votes
0answers
12 views

Magento 2.X: Showing wrong order address country in sales order view

We are using Magento version 2.1.8. We have set UAE as the default country and allowed countries as UAE and SA. On placing an order using SA address, the sales order view shows UAE as the country. ...
0
votes
1answer
1k views

Magento 2 How to add onKeyUp to a text field in customer checkout address form?

I want to add a auto complete function to the customer checkout address form, but I found that the address fields are rendered by knockout js, I can't add the "onKeyUp" attribute directly. How can I ...
0
votes
0answers
13 views

Magento2 add field in shipping adress step or cusomer address information when customers are register

I would like to add the Tax/VAT field to the shipping step during the guest checkout phase, which is currently available when customers sign up from Magento2. Not new, add existing field to address. ...
2
votes
1answer
104 views

Magento 2.3.2 How to add Multiline component field in admin form using ui component

I want to add a field like Street address in my custom module. same as customer Address Add from back-end form. it will look like below image. How can I add this kind of field using the UI component? ...
1
vote
1answer
3k views

how to add “gender” resp. a salutation to customer address?

I like to add gender (or a salutation) to the customer's address. While the gender already for a customer exists, I thought I can simply reuse it but somehow I get stuck at the source model which ...
1
vote
2answers
651 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 which fetches the corrected address from USPS API and displays the corrected ...
2
votes
3answers
2k views

how do disable/remove Zip Code for specific country in magento 2

How can i disable/remove Zip Code for specific country in magento 2 For example if some one select UAE than Zip Code field should remove or disable else it should visible.
0
votes
0answers
22 views

CE 2.3.2 - Checkout Error - Switching between multiple addresses (array to string error)

Before opening a bug report, does anyone else faced this issue ? When a user with multiple addresses try to select one of it, this error is shown Notice: Array to string conversion in /var/www/...
1
vote
1answer
434 views

How to refresh shipping and billing address after checkout page load just like shipping Rates refresh using Knockout Js magento 2

Hi guys, i want to refresh shipping and billing address after checkout page load using Knockout Js magento 2. If you guys have any idea please guide me. Please check the code i tried below ...
0
votes
1answer
83 views

Addresses Delete not working in address book Magento 2.3

Add additional addresses to address book in magento 2.3 then Click on ' Delete Address' link in address book it redirect to 404 page and invalid url shows.
0
votes
0answers
11 views

How to add custom address of customer in new order or new shipment email template?

I want to add label before the address fields.I found that currenly customer address is rendered from backend->Configuration->Customers->Customer Configuration->Address Templates. But when i edit it ...
3
votes
1answer
177 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\...
1
vote
0answers
39 views

Add custom address attribute to checkout

I create custom address attribute, same as suggested here: https://codeblog.experius.nl/magento-2-add-extra-billing-or-shipping-field-to-the-checkout/ But when I place an order there is error occurs: ...
8
votes
3answers
2k 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" ...
0
votes
0answers
47 views

How to autofill telephone filed in billing form at checkout page Magento2

Does anyone know how to autofilled checkout billing form telephone ?
0
votes
1answer
42 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->...
0
votes
1answer
34 views

Remove the Required field for the postcode at the checkout page

Remove the required field for the postcode for the billing and shiping Address
1
vote
0answers
25 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
1answer
40 views

Magento2 Copy Customer name to invoice billing address name

For billing issues i want to use default customer name as same billing address in invoice only. i.e Customer name is John Doe and he use Johny Doe in billing address when he order. it is ok for order ...
0
votes
0answers
72 views

Magento 2 remove requirement for address,city and country fields in checkout

Need to make address,city and country fields not required on checkout as the shipping methods used in store does not require them. Edited database and removed "is_required" parameter from the ...
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 ...
0
votes
1answer
30 views

Sell only for a state or region in Magento 2

I'm looking for help, I need to leave the state fixed in the shipping and billing in magento 2.
0
votes
1answer
20 views

Change condition to add new address if no address save in customer My address book

I want to change the condition that redirect you to customer/address/new if you want to see your address book. I just want to open the address book empty without force users to add a new address in ...
7
votes
2answers
3k views

How to get customer address with address id

Can i get customer address like picture below with address id? If i can, how should i do it?
2
votes
0answers
213 views

Adding custom attributes to states and a dropdown to cities

I would like to change the way the users enter addresses, and I have several doubts about the best way to do it. First, I need to add a drop down for states/provinces to other countries, for what I'...
0
votes
0answers
15 views

How to expose custom field from sales_order_address table to rest api magento 2

I am able to add a custom field called "subdistrict" to Checkout address of Magento 2. Data is stored nicely in table sales_order_address table now i want to expose this field throught rest API, can ...
2
votes
0answers
51 views

How to Add checkboxes for default billing/shipping address and show as check/uncheck

Currently Billing and Shipping address don't have checkboxes to select, to change it from Billing to Shipping or Shipping to Billing. It only shows a message info. So, I want to be checkboxes as ...
0
votes
0answers
43 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 ...
2
votes
1answer
21 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
32 views

Change Shipping Address Form to Billing Address Form on Guests Checkout Magento2 2.3

my client wants that the shop guests should first fill in the billing address instead of the shipping address on the checkout page. How can I change the shipping address form with the billing address ...
0
votes
1answer
80 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
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?
2
votes
2answers
467 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
57 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
90 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
351 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....
1
vote
0answers
101 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
253 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
2answers
125 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?
4
votes
2answers
6k views

Magento 2.1.2, Remove “region” from the Address

I would like to remove "Region" from all the address forms (checkout, billing address, shipping address, customer's addressbook). I've set the Backend setting for "Allow to Choose State if It is ...