Skip to main content

Questions tagged [addresses]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

Adding an address for user during front-end registration

Is there any way to add an address for a prospective user during front-end registration on Craft 5? I'm trying to set up front-end registration on a Craft 5 site. The ideal process is that a ...
Meester_Paul's user avatar
2 votes
2 answers
94 views

How to retrieve full country name from address field

I'm using the Address field in Craft CMS 5, as detailed in the Craft CMS documentation. I need to display the full country name based on the countryCode provided by the Address field. Currently, the ...
Romain P.'s user avatar
  • 1,917
1 vote
0 answers
81 views

Addresses lost in the void after Craft and Commerce upgrade from 3 to 4

With the changes to addresses in Craft 4 I'm trying to do a cleanup of 80 000 addresses I have, many who does not have a valid user or commerce orders connceted to them. Trying to fetch all addresses ...
Syversen's user avatar
  • 485
1 vote
1 answer
182 views

How can I best add additional fields to the Address form during the checkout

I want my customers to enter their date of birth and place of birth during the checkout. Do I have to overwrite the Address commerce model somehow? (\craft\commerce\models\Address). Something else I ...
Rayco's user avatar
  • 11
1 vote
1 answer
360 views

Commerce: Calling unknown method error on Edit Address screen

I'm using Commerce 3.4.16, Craft 3.7.51. I'm able to enter an address as part of checkout, and I can see that address in the CP, but when I go to the edit address screen on the front end, I get this ...
artmem's user avatar
  • 1,022
1 vote
0 answers
337 views

Craft Commerce 3 guest checkout flow – can't update addresses

I'm finding a guest checkout flow in Commerce 3.4.14 insanely confusing, docs aren't much help. I'm using Craft Solo and Commerce Lite. TL;DR I realize the code below is probably too complex, so even ...
Yawner's user avatar
  • 65
2 votes
1 answer
50 views

EVENT_DEFINE_ADDRESS_LINES not pushing response back to Craft Commerce

I have a plugin to reorder the address lines in Commerce. Basically to move the Phone Number to the bottom as it drives all my clients nuts. While the final array, addressLines is the correct array ...
John Henry Donovan's user avatar
1 vote
1 answer
228 views

Craft Commerce "state" dropdown field fails to populate with states for new customer addresses

I'm having an issue with addresses on Craft Commerce 3 (specifically the State field). When a new customer adds an address, the State field defaults to a text field (not the expected Select field). If ...
Chris H.'s user avatar
2 votes
1 answer
64 views

Override "sameAddress" option when updating cart

I'm working on a new checkout process which involves taking the shipping address first. To do this I am setting sameAddress to 1 in my shippingAddress form. Then, at a later stage I want to offer ...
foamcow's user avatar
  • 2,029
1 vote
1 answer
53 views

Can I add a billing address while updating the cart?

I'm designing a donation form right now for what will be a Craft Commerce site, and I want to collect the donator's billing name, address, etc in the product form which adds the donation to the cart. ...
Derek Hogue's user avatar
1 vote
1 answer
234 views

Limit countries shown in checkout shipping to countries assigned in shipping zones settings?

Is there a way to restrict the list of countries available in the checkout shipping address select menu to the countries assigned in the shipping zones?
smartpill's user avatar
  • 107
1 vote
1 answer
1k views

How to make the shipping address and billing address the same?

I have a checkout page where a user puts in their shipping address. At the bottom is a checkmark which by default sets the shipping address to be the same as the billing address. This however does not ...
patrick.altair's user avatar
1 vote
2 answers
1k views

Craft Commerce - Edit Complete Order Address from frontend

We are trying to give our clients the ability to update an order's shipping address before the order has been actually shipped. We've created a members area where they can list their orders and ...
Alberto's user avatar
  • 123
2 votes
1 answer
404 views

How to import user addresses?

I have an existing database full of users with their addresses. I'd like to import this into Craft (Commerce), and have their addresses saved as their billing address. The user import part is fine, I ...
Jai Redden's user avatar
2 votes
1 answer
93 views

Carry address over with customer's order when creating user

When a user is created with the same email as a customer, the orders are attached to that user account. I have a Customer Info custom field attached to the Users, and that is updated to include the ...
Clive Portman's user avatar