Skip to content

Commit

Permalink
docs: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
giraud florent authored and giraud florent committed Jun 15, 2021
1 parent 8d5d56c commit 70b1e44
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
1 change: 0 additions & 1 deletion docs/content/en/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ description: 'Snipcart customization'
position: 4
category: Guide
---

## customize ui components

[Customizing components](https://docs.snipcart.com/v3/setup/customization) is easy with snipcart. We let you the possibility to inject a string components templates into `@nuxtjs/snipcart`.
Expand Down
27 changes: 27 additions & 0 deletions docs/content/en/utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,33 @@ export default {
checkout our [example](https://github.com/nuxt-community/snipcart-module/tree/master/example) repo for more informations


## setCurrency

Change currency based on snipcart api. https://docs.snipcart.com/v1/javascript-api/public-api.

### Usage


```vue
<template>
<div>
<button class="switch-currency" @click="switchCurrency">
switch currency
</button>
</div>
</template>
<script>
export default {
methods: {
switchCurrency (currency) {
this.$snipcart.setCurrency(currency)
}
}
}
</script>
```

## bindProduct

You can add informations by default with snipcart by yourself.
Expand Down

0 comments on commit 70b1e44

Please sign in to comment.