Answers.Body: <p>Guests do not have an address book so editing the address is not the right way to think about it. Logged in users can edit the addresses in their address book, but only one at a time.</p>
  
  <p>If you want the guest user to change their addresses for the current cart, just use the data from the current cart addresses to populate the "commerce/cart/updateCart" form to submit 2 new addresses to the cart.</p>
  
  <p>Let me know if you have further questions in the comments.</p>
  
  <p>To edit a completed order's addresses, see this question: <a href="https://craftcms.stackexchange.com/questions/21079/craft-commerce-edit-complete-order-address-from-frontend/21155#21155">Craft Commerce - Edit Complete Order Address from frontend</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-21T13:36:49.890Z
Answers.LastActivityDate: 2017-07-11T04:41:43.763Z
Answers.LastEditDate: 2017-07-11T04:41:43.763Z
Answers.UserDisplayName: Luke Holder
Body: <p>While working with guest checkout in craft I noticed that the "Edit" address links were not available.</p>
  
  <p>I removed {% if currentUser %} from the shipping template to reveal the edit links. Now when editing the billing address it also updates the shipping address - manipulating two different addresses does not seem possible.</p>
  
  <p>This is the code for both edit links:</p>
  
  <pre><code>&lt;a class="edit" href="/shop/checkout/customer/addresses/edit?addressId={{ cart.billingAddressId }}&amp;redirect={{ craft.request.path }}"&gt;Edit&lt;/a&gt;
  </code></pre>
  
  <p><a href="https://i.sstatic.net/gtxcx.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/gtxcx.png" alt="enter image description here"></a></p>
  
Tags: <plugin-craftcommerce>
Title: Craft Commerce: Editing Guest Address?
ThreadText: # Craft Commerce: Editing Guest Address?
  
  (Asked by: username_0 on 2016-07-12)
  
  While working with guest checkout in craft I noticed that the "Edit" address links were not available.
  
  I removed {% if currentUser %} from the shipping template to reveal the edit links. Now when editing the billing address it also updates the shipping address - manipulating two different addresses does not seem possible.
  
  This is the code for both edit links:
  
  ```
  <a class="edit" href="/shop/checkout/customer/addresses/edit?addressId={{ cart.billingAddressId }}&redirect={{ craft.request.path }}">Edit</a>
  
  ```
  
  [![enter image description here](https://i.sstatic.net/gtxcx.png)](https://i.sstatic.net/gtxcx.png)
  
  **Tags:** plugin-craftcommerce
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-07-21. Score: 4
  
  Guests do not have an address book so editing the address is not the right way to think about it. Logged in users can edit the addresses in their address book, but only one at a time.
  
  If you want the guest user to change their addresses for the current cart, just use the data from the current cart addresses to populate the "commerce/cart/updateCart" form to submit 2 new addresses to the cart.
  
  Let me know if you have further questions in the comments.
  
  To edit a completed order's addresses, see this question: [Craft Commerce - Edit Complete Order Address from frontend](https://craftcms.stackexchange.com/questions/21079/craft-commerce-edit-complete-order-address-from-frontend/21155#21155)
  
  
  ---
  
  