@spree/docs 0.1.280 → 0.1.281
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -224,6 +224,8 @@ To add your own step or requirement, see
|
|
|
224
224
|
|
|
225
225
|
Each [fulfillment](fulfillments.md) offers delivery rates. Pick one per fulfillment.
|
|
226
226
|
|
|
227
|
+
A cart has no fulfillments until it has a shipping address or a pickup location, unless none of its items ships to an address (a digital-only cart has them straight away). Saving a different address replaces the fulfillments, under new ids, with the cheapest shipping rate selected, so show the customer the new options before taking payment.
|
|
228
|
+
|
|
227
229
|
```typescript Store SDK
|
|
228
230
|
const cart = await client.carts.get(cartId)
|
|
229
231
|
await client.carts.fulfillments.update(cartId, cart.fulfillments[0].id, {
|