<p>Orders can not be updated after they are completed. The only way around this at the moment is if a plugin used it's own controller action to update the order.</p>

<p>Please submit a feature request here: <a href="https://github.com/craftcms/commerce/issues" rel="nofollow noreferrer">https://github.com/craftcms/commerce/issues</a></p>

CC BY-SA 4.0
2018-10-10T09:33:54.043Z
2018-10-10T09:33:54.043Z
Luke Holder
<p>Have to update an order afterwards cause the client can choose a retail partner. </p>

<pre><code>&lt;form method="post" name="submitOrder" style="width: 100%" onkeypress="return event.keyCode != 13;"&gt;
  &lt;input type="hidden" name="action" value="commerce/cart/update-cart"&gt;
    {{ redirectInput('s/partner?number=' ~ number) }}
    {{ csrfInput() }}

    &lt;input type="text" id="retailPartner"
           name="fields[orderCommercePartner][]"
           value="0"&gt;

    &lt;input type="submit" 
           class="a-button  a-button--black  a-button--bold js-chooseThisPartner"
           style="margin-bottom: 40px;"
           value="{{ 'Choose this partner' | t }}"&gt;
&lt;/form&gt;
</code></pre>

<p>That's my form I fill the value <code>fields[orderCommercePartner][]</code> via JS and it's filled. </p>

<p>But the order is not updated. Any Ideas what goes wrong here.  </p>

<plugin-craftcommerce2>
Update an order afterwards
# Update an order afterwards

(Asked by: username_0 on 2018-10-10)

Have to update an order afterwards cause the client can choose a retail partner. 

  
    {{ redirectInput('s/partner?number=' ~ number) }}
    {{ csrfInput() }}

    

    


That's my form I fill the value fields[orderCommercePartner][] via JS and it's filled. 
But the order is not updated. Any Ideas what goes wrong here.

**Tags:** plugin-craftcommerce2


---

## 1 answers

### Answer by username_1 on 2018-10-10. Score: 1

Orders can not be updated after they are completed. The only way around this at the moment is if a plugin used it's own controller action to update the order.

Please submit a feature request here: <https://github.com/craftcms/commerce/issues>


---

