Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [shipping-address]

Denotes Question related to magento shipping address. https://devdocs.magento.com/guides/v2.2/howdoi/checkout/checkout_address.html

Filter by
Sorted by
Tagged with
19 votes
3 answers
5k views

Property does not have corresponding setter in class Magento\Quote\Api\Data\AddressInterface while change checkout step

1 - I add a eav attribute to customer_address $attributesInfo = [ 'reference' => [ 'label' => 'Reference', 'type' => 'varchar', 'input' => 'text', ...
allamgr's user avatar
  • 367
18 votes
2 answers
10k views

how to reorder (switch) billing address before shipping address

on the onepage checkout I need to reorder the billing address before the shipping address. in fact the logic should be the other way around than it is now. if the shipping address differs from the ...
steros's user avatar
  • 1,622
16 votes
5 answers
12k views

How to check if billing and shipping address are equal?

I'm trying to check if billing and shipping address are equal when creating invoice PDFs. What I've tried so far was: $order = $invoice->getOrder(); if( $order->getBillingAddress()->getData(...
oschloebe's user avatar
  • 926
16 votes
4 answers
17k views

How to show a custom attribute in the admin Shipping Address box?

I have added the drop-down custom field on the checkout page with custom values. It's working fine also save attribute values in the database but not display in the order shipping address. Any idea ...
Magento2 Devloper's user avatar
11 votes
4 answers
37k views

How to get customer address by customer ID?

How to get customer address/billing address by customer ID? here's what I've done so far: $customerId = $_POST["customer_id"]; $customer = $this->_customerRepository->getById($customerId); $...
simple guy's user avatar
  • 2,484
10 votes
4 answers
3k views

Admin edit order loses shipping address

Customer enters order with different shipping/billing addresses. if we need to edit the order in admin it creates a new order, in the new order the shipping address defaults to 'same as billing' and ...
mendel's user avatar
  • 201
9 votes
3 answers
25k views

How to get shipping address by shipping address id?

I have the order object. From that I can get the shipping address id. Can anyone suggest how to derive Shipping address by shipping address id?
Sukeshini's user avatar
  • 9,955
9 votes
4 answers
12k 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 ...
Taschert's user avatar
  • 569
8 votes
3 answers
5k views

How to remove Guam, Palau, and other US Territories from address State dropdown - Magento 2 [duplicate]

How can I remove Guam, Puerto Rico, Palau, and all other US Territories from the "State" (or "Region") dropdown list on both the cart page and checkout pages? I only want to ship to the 48 contiguous ...
Tim K.'s user avatar
  • 101
8 votes
1 answer
2k views

Magento2.3.1 : Shipping address custom attribute value getting wrong format

Ref url - Shipping address custom attribute value not getting in RateRequest object in Carrier Model in magento2.x Above link in working perfect in magento2.2.x but not in magento2.3.1. I checked ...
Magento2 Devloper's user avatar
7 votes
3 answers
6k views

Magento 2 - Add CMS Static Block to Checkout Address Form

Evening All, I am looking to add a static CMS block to the Magento 2 Checkout delivery address form. I would like display the CMS block under the phone number field. The old method would have been to ...
Baber's user avatar
  • 192
7 votes
7 answers
14k views

How do I add a customer's email to the sales invoice?

Essentially looking to add customer email to our customer's receipts (invoices) and sales order emails that are generated to dispatch/couriers as well etc. With a bit of searching I've established ...
MagentoMac's user avatar
  • 1,042
7 votes
5 answers
6k views

Store pick up Magento 2

How can we show a checkbox at checkout if the customer wants to pick up their products at the store itself instead of getting it shipped to their address? Can we do this without buying an extension ...
Bureau Springveer's user avatar
7 votes
2 answers
7k 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?
Edwin Widhiyanto's user avatar
7 votes
2 answers
34k views

Magento 2 Get shipping and billing address of customer after order placed?

I am working on custom email template. So I needed customer Billing and Shipping address in below file. /vendor/magento/module-sales/view/frontend/templates/email/items.phtml Can any 1 help me to ...
Nitesh Kuyate's user avatar
7 votes
2 answers
14k views

Magento 2 - Change the order of the Shipping fields on the Checkout page

I would like to change the order of the Shipping fields on the Checkout page so that they display in the following order: Your Email Street City State Zip Code First Name Last Name Phone Number ...
Noemi Quezada's user avatar
7 votes
3 answers
14k views

Magento 2.2.5: How to validate shipping address

I'm doing Custom Checkout, and here is what i've done til now. The adea is to use validate so when i click on "Next" button, it gonna check if the checkbox in "Terms of Use", if its checked, then it ...
fudu's user avatar
  • 1,278
7 votes
0 answers
15k views

Get shipping address in onepage checkout session [closed]

The goal is to get the shipping address (in fact only the country) currently selected by the customer in the onepage checkout process. I'm aware that quote-related data can be accessed by using ...
mkerstner's user avatar
  • 536
7 votes
1 answer
3k views

How to edit for existing shipping addresses in checkout page magento2?

How to edit the existing shipping address in checkout page. Magento2 have edit address option for only new added shipping address. Magento\Customer\view\frontend\web\js\model\customer\address.js ...
Ajesh's user avatar
  • 71
6 votes
3 answers
3k views

PayPal Express FIRSTNAME and LASTNAME instead of SHIPTONAME

In Magento 1.9 PayPal is transferring a SHIPTONAME which is used for the shipping address. Instead of populating firstname and lastname with the correct variables, only firstname is populated with ...
loeffel's user avatar
  • 722
6 votes
3 answers
12k views

Save a custom attribute from shipping method to quote_address

I have created a custom shipping method which allows delivery to a local office of the carrier. I have created a select when the shipping method is selected, so the user picks the office. Now I need ...
DreamWave's user avatar
  • 133
6 votes
2 answers
1k views

How to validate postal code by country id?

In Magento checkout there is a postal code verification for each country, now I want to implement it in different module for different case, how to do it if I already have the country id and postal ...
nortonuser 's user avatar
6 votes
1 answer
1k views

File Upload field on checkout page with shipping address Magento 2

I have create a file upload field on check out page with shipping address.But file is not going to upload. I want to upload a file in specific folder and save the file path in data base.Please see ...
Kamlesh Jha's user avatar
  • 1,058
6 votes
0 answers
230 views

How to get custom table values into front-end checkout address section in Magento 2

For custom requirement, we are saving few values in our custom table with customer id and address id. We are trying to display those values in the checkout page address section based customer,address ...
Krishna ijjada's user avatar
6 votes
0 answers
3k views

How to add city (not state!) in magento? [duplicate]

How can I add cities in city field in address form of magento in checkout? I want add city not state, want load it auto same as state State load drop-down after select country, now want city drop-...
sIiiS's user avatar
  • 632
5 votes
3 answers
4k views

How to display company name on checkout page in Magento 2.1?

I want to display the company name from customer address on checkout page in Magento2.1 It should be visible in shipping address section as well as side bar. How can I do it?
Mukesh's user avatar
  • 1,438
5 votes
6 answers
11k views

Magento 2 - How to change the SortOrder of the street address fields on the Shipping Checkout page

I am trying to reorganize the form fields on the Checkout Shipping step and having difficulty moving the Street Address field. I am not sure if I am referencing the street fields correctly in the ...
Noemi Quezada's user avatar
5 votes
4 answers
11k views

Shipping Address Missing on Payment Page Refresh

Has this happened to anyone? When you get to the payment page in checkout and refresh the page, it removes your shipping address with the exception of the zip code and country.
Paul's user avatar
  • 1,501
5 votes
1 answer
4k views

Magento 2.4 Checkout error Failed to load the "Magento_Checkout/shipping" template

I've some error console bus in checkout page when upgrading core. Does anybody know where this bug is from? Failed to load the "Magento_Checkout/shipping" template requested by "...
ATT's user avatar
  • 123
5 votes
5 answers
14k views

Get all billing address programatically

I would like to get all customer shipping address to give shipping selection option in product view page itself. I created a block to appear inside product view page. And I have below code snippet. ...
Anto S's user avatar
  • 1,417
5 votes
2 answers
8k views

How to remove zip postal code and country from checkout form?

I want to remove zip/postal code and country from checkout page. I removed them from billing.phtml file successfully. But when submit checkout data it shows alert that "country" and "zip/postal" code ...
Mohamed Maree's user avatar
5 votes
2 answers
385 views

Magento2 add extra cost to shipping method on customer selected option radio button on checkout shipping form

We need to add extra Cost to shipping method, when customer select one of the input radio button on the custom shipping form.
Mohamed Abbas's user avatar
5 votes
2 answers
6k views

How can i change default shipping address

How can i change the default shipping address of a current user programmatically.
Avesh Naik's user avatar
  • 1,210
5 votes
1 answer
6k views

Magento 2 : Event Observer For Shipping Address Selection

I am working on custom extension and need to execute my code when the customer clicks on "Next" button available in checkout. I need an event observer in which, used shipping and billing address ...
Dhiren Vasoya's user avatar
5 votes
1 answer
4k views

How to get shipping address from quote object in custom js file magento 2

I want to apply a functionality that enables , dynamic billing address to be changed as per changing shipping address in checkout page magento 2. How to get shipping address from quote object in ...
Hamendra Sunthwal's user avatar
5 votes
3 answers
12k views

Set Shipping Address via Magento 2 REST API

I have a JS application where I create a cart object with items and an associated gift-message. I would like to set the shipping (and billing) address for the order and am using the following endpoint:...
AdrianV's user avatar
  • 51
5 votes
1 answer
2k views

Add fields to shipping (and customer) address in checkout process

I know that I can add "Address lines" in Stores > Configuration > Customer Configuration > Name and Address Options > Number of Lines in a Street Address but the address is stored as a ...
Bruno Rodrigues's user avatar
5 votes
0 answers
330 views

Magento2.3: Display Custom text on Shipping Address

I would like to add custom text whenever shipping country is Sweden, Ive created Magento_Checkout module in my custom theme and added a phtml file <div class="free-shipping-info" data-bind="...
paranoid kid's user avatar
5 votes
0 answers
250 views

Magento 2.2 - add multiple new shipping address from checkout page

I want to add multiple new shipping addresses from checkout page currently Magento allows only one new shipping address from the checkout page
Emipro Technologies Pvt. Ltd.'s user avatar
5 votes
2 answers
3k views

Magento2 : How to force Shipping Address is the same as Billing Address?

Is there a way to prevent the addition of a different address at checkout, so that billing and shipping addresses are always the same? With this I'd like to also prevent the user adding a shipping ...
Aravona's user avatar
  • 367
4 votes
5 answers
8k 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 ...
Sumit's user avatar
  • 4,875
4 votes
1 answer
13k views

Programatically load default billing and shipping address

Magento 2 programatically load default billing and shipping address..
srg's user avatar
  • 455
4 votes
2 answers
12k views

How to Check If given address is Default Shipping or Billing address using Address id Magento

I want to check whether the Given address is Default Shipping or Billing for the Customer address, i have the address id. Can anyone please help me on this.
user avatar
4 votes
2 answers
3k views

Limit country drop down input field Magento 2

Currently my magento store shows all the country in shipping, billing, and register customer form. is there a way to show only some countries that i want ?
Hunter's user avatar
  • 1,484
4 votes
3 answers
3k views

Duplicate Street Address: Line 1 Label : Magento 2.3.2

I am using Magento 2.3.2 On checkout page there is double label about "Street Address: Line 1" Is it a bug on my Magento ? I can not translate as well How can I remove it? Any idea? Screen ...
ozan yeni's user avatar
4 votes
2 answers
13k 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 ...
knospe's user avatar
  • 238
4 votes
4 answers
4k views

Street address cannot contain more than 2 lines -- payment page

I changed shipping street address values 2 in the admin panel. Now I can't place order only for logged in users. It's working fine for not logged in user. If I changed it into 3 lines of the street ...
Arunprabakaran M's user avatar
4 votes
1 answer
2k views

How to get the value of custom field checkout address in Carrier Model Magento 2

I followed the tutorial here to make a custom field in address form checkout: <?php $customAttributeCode = 'custom_field'; $customField = [ 'component' => 'Magento_Ui/js/form/element/...
simple guy's user avatar
  • 2,484
4 votes
4 answers
7k views

Magento2: How to get shipping address for order in REST API?

I can't seem to find a way to get the shipping address for an order though the REST API. Does anyone have an idea?
TNordkvist's user avatar
4 votes
1 answer
3k views

Facing problem with custom attributes in customer address checkout

I am facing a problem adding customer address custom attributes, in Magento 2.2 is working fine but after upgrading to Magento 2.3 I am receiving this error when shipping-information is saved: An ...
user2899151's user avatar

1
2 3 4 5
10