Skip to content

Commit

Permalink
Deleted initializing a cart from existing data as it might be too adv…
Browse files Browse the repository at this point in the history
…anced for a starter guide
  • Loading branch information
mikkoh committed Oct 17, 2016
1 parent f74df35 commit 072e1a6
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions docs/guide/index.md
Expand Up @@ -116,17 +116,6 @@ cart.clearLineItems()
});
```

### Initializing a cart with a Variant

Above we showed an example on how to initialize an empty cart. Alternately variants can be passed in during initalization to create a non-empty cart with those variants.

```js
shopClient.createCart({id: 123, quantity: 1})
.then(function (cart) {
// do something with cart
});
```

## Selecting variants

A product's options are accessed through `product.options`. Options are used to determine which variant is selected.
Expand Down

0 comments on commit 072e1a6

Please sign in to comment.