<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>

CC BY-SA 3.0
2017-10-07T17:43:59.243Z
2017-10-07T17:43:59.243Z
Darryl Hardin
<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>

<plugin-craftcommerce><form>
Address form not redirecting to payment form in Craft Commerce
# 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

    {{ getCsrfInput() }}
    
    
    
    
    
    
    
    
    
        State
        {% for stateId, stateName in craft.commerce.statesArray["233"] %}
            {{ stateName }}
        {% endfor %}

**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.


---

