Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-10T09:33:54.043Z
Answers.LastActivityDate: 2018-10-10T09:33:54.043Z
Answers.UserDisplayName: Luke Holder
Body: <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>
  
Tags: <plugin-craftcommerce2>
Title: Update an order afterwards
ThreadText: # 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.
  
  ```
  <form method="post" name="submitOrder" style="width: 100%" onkeypress="return event.keyCode != 13;">
    <input type="hidden" name="action" value="commerce/cart/update-cart">
      {{ redirectInput('s/partner?number=' ~ number) }}
      {{ csrfInput() }}
  
      <input type="text" id="retailPartner"
             name="fields[orderCommercePartner][]"
             value="0">
  
      <input type="submit" 
             class="a-button  a-button--black  a-button--bold js-chooseThisPartner"
             style="margin-bottom: 40px;"
             value="{{ 'Choose this partner' | t }}">
  </form>
  
  ```
  
  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>
  
  
  ---
  
  