Answers.Body: <p>You can automatically set the shipping method on a cart (e.g. by an ajax call) at any point by POSTing to <code>commerce/cart/updateCart</code> - You just use an input with name <code>shippingMethod</code> and and the value you supply is the handle of your shipping method, e.g. `ground'.</p>
  
  <p>Where you do this is entirely up to you, but note depending how you handle/implement this, changes in the cart contents &amp; addresses can invalidate shipping methods, so you'd typically do this at some point after your cart index page...</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-20T12:37:10.563Z
Answers.Text: Do you have an example for this? I have tried to add to add the input to the address form but it then breaks, stating that the amount does not add up although shipping has no cost.
Answers.UserDisplayName: Marcus Scheller
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-20T12:48:29.380Z
Answers.Text: Got it working. Shipping methods weren’t enabled on the front end.
Answers.UserDisplayName: Marcus Scheller
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-18T08:26:54.673Z
Answers.Text: @MarcusScheller Can you post an example of your solution here?
Answers.UserDisplayName: KSPR
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-19T09:53:39.877Z
Answers.Text: @KSPR I just enabled the shipping methods.
Answers.UserDisplayName: Marcus Scheller
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-02-15T22:28:29.563Z
Answers.LastActivityDate: 2017-02-15T22:28:29.563Z
Answers.UserDisplayName: Jeremy Daalder
Body: <p>Folks:</p>
  
  <p>All the products in the store I am working have only one shipping method (ground). It seems redundant to have people go through the shipping screen since there is only one shipping option. Is there a way to just apply the default shipping for the product(s) based on the address they enter rather than going through the shipping screen?</p>
  
Tags: <plugin-craftcommerce>
Title: Apply shipping without the shipping screen
ThreadText: # Apply shipping without the shipping screen
  
  (Asked by: username_0 on 2017-02-15)
  
  Folks:
  
  All the products in the store I am working have only one shipping method (ground). It seems redundant to have people go through the shipping screen since there is only one shipping option. Is there a way to just apply the default shipping for the product(s) based on the address they enter rather than going through the shipping screen?
  
  **Tags:** plugin-craftcommerce
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-02-15. Score: 3 | Accepted answer
  
  You can automatically set the shipping method on a cart (e.g. by an ajax call) at any point by POSTing to `commerce/cart/updateCart` - You just use an input with name `shippingMethod` and and the value you supply is the handle of your shipping method, e.g. `ground'.
  
  Where you do this is entirely up to you, but note depending how you handle/implement this, changes in the cart contents & addresses can invalidate shipping methods, so you'd typically do this at some point after your cart index page...
  
  > **Comments:**
  > **username_2**: Do you have an example for this? I have tried to add to add the input to the address form but it then breaks, stating that the amount does not add up although shipping has no cost.  
  > **username_2**: Got it working. Shipping methods weren’t enabled on the front end.  
  > **username_3**: @username_2 Can you post an example of your solution here?  
  > **username_2**: @username_3 I just enabled the shipping methods.  
  
  ---
  
  