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

CC BY-SA 3.0
2017-04-20T12:37:10.563Z
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.
Marcus Scheller
CC BY-SA 3.0
2017-04-20T12:48:29.380Z
Got it working. Shipping methods weren’t enabled on the front end.
Marcus Scheller
CC BY-SA 4.0
2019-09-18T08:26:54.673Z
@MarcusScheller Can you post an example of your solution here?
KSPR
CC BY-SA 4.0
2019-09-19T09:53:39.877Z
@KSPR I just enabled the shipping methods.
Marcus Scheller
CC BY-SA 3.0
2017-02-15T22:28:29.563Z
2017-02-15T22:28:29.563Z
Jeremy Daalder
<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>

<plugin-craftcommerce>
Apply shipping without the shipping screen
# 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**: @MarcusScheller Can you post an example of your solution here?  
> **username_2**: @username_3 I just enabled the shipping methods.  

---

