Answers.Body: <p>I extended my code to include the billing address and it worked. So I guess the answer to my question is yes, shipping and billing address need to be submitted together.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-07T17:43:59.243Z
Answers.LastActivityDate: 2017-10-07T17:43:59.243Z
Answers.UserDisplayName: Darryl Hardin
Body: <p>I've had this working before but with the billing address as well. Do both the billing and shipping addresses need to be filled out in the same form for this to work? I get this error when I click the submit and the page just refreshes instead of redirects. </p>
  
  <blockquote>
    <p>CWebUser.flash.error' => 'Cart not completely updated.',</p>
  </blockquote>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;form method="POST" class="flex-container flex-center flex-col nav-buttons flex-lg"&gt;
      {{ getCsrfInput() }}
      &lt;input type="text" name="email" value="" placeholder="email@site.com"/&gt;
      &lt;input type="text" name="shippingAddress[firstName]" value="" placeholder="First Name"&gt;
      &lt;input type="text" name="shippingAddress[lastName]" value="" placeholder="Last Name"&gt;
      &lt;input type="text" name="shippingAddress[address1]" value="" placeholder="Street Address"&gt;
      &lt;input type="text" name="shippingAddress[address2]" value="" placeholder="Apartment/Suite/etc"&gt;
      &lt;input type="text" name="shippingAddress[city]" value="" placeholder="City"&gt;
      &lt;input type="text" name="shippingAddress[zipCode]" value="" placeholder="Zipcode"&gt;
      &lt;input type="hidden" name="shippingAddress[countryId]" value="233"&gt;
      &lt;select style="width:100%; padding:10px 0; margin:10px 0; text-align-last:center;" name="shippingAddress[stateId]"&gt;
          &lt;option&gt;State&lt;/option&gt;
          {% for stateId, stateName in craft.commerce.statesArray["233"] %}
              &lt;option value="{{ stateId }}"&gt;{{ stateName }}&lt;/option&gt;
          {% endfor %}
      &lt;/select&gt;
      &lt;input type="hidden" name="action" value="commerce/cart/updateCart"&gt;
      &lt;input type="hidden" name="redirect" value="store/checkout/payment"&gt;
      &lt;input type="submit" value="To Payment"&gt;
  &lt;/form&gt;
  </code></pre>
  
Tags: <plugin-craftcommerce><form>
Title: Address form not redirecting to payment form in Craft Commerce
ThreadText: # Address form not redirecting to payment form in Craft Commerce
  
  (Asked by: username_0 on 2017-10-04)
  
  I've had this working before but with the billing address as well. Do both the billing and shipping addresses need to be filled out in the same form for this to work? I get this error when I click the submit and the page just refreshes instead of redirects.
  
  > CWebUser.flash.error' => 'Cart not completely updated.',
  
  Here is my code
  
  ```
  <form method="POST" class="flex-container flex-center flex-col nav-buttons flex-lg">
      {{ getCsrfInput() }}
      <input type="text" name="email" value="" placeholder="email@site.com"/>
      <input type="text" name="shippingAddress[firstName]" value="" placeholder="First Name">
      <input type="text" name="shippingAddress[lastName]" value="" placeholder="Last Name">
      <input type="text" name="shippingAddress[address1]" value="" placeholder="Street Address">
      <input type="text" name="shippingAddress[address2]" value="" placeholder="Apartment/Suite/etc">
      <input type="text" name="shippingAddress[city]" value="" placeholder="City">
      <input type="text" name="shippingAddress[zipCode]" value="" placeholder="Zipcode">
      <input type="hidden" name="shippingAddress[countryId]" value="233">
      <select style="width:100%; padding:10px 0; margin:10px 0; text-align-last:center;" name="shippingAddress[stateId]">
          <option>State</option>
          {% for stateId, stateName in craft.commerce.statesArray["233"] %}
              <option value="{{ stateId }}">{{ stateName }}</option>
          {% endfor %}
      </select>
      <input type="hidden" name="action" value="commerce/cart/updateCart">
      <input type="hidden" name="redirect" value="store/checkout/payment">
      <input type="submit" value="To Payment">
  </form>
  
  ```
  
  **Tags:** plugin-craftcommerce, form
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-10-07. Score: 2 | Accepted answer
  
  I extended my code to include the billing address and it worked. So I guess the answer to my question is yes, shipping and billing address need to be submitted together.
  
  
  ---
  
  