Work with snipcart Events

Check the snipcart documentation for more informations for more information.

Basically we do nothing here as when you will have to implement it as you normally do with NuxtJS.

You will have access to window.Snipcart when script is loaded. And you will have to add event inside mounted hook and of course use beforeDestroy if necessary.


export default {
  data: () => ({
    addItemEvent: null
  mounted () {
    document.addEventListener('snipcart.ready', function () {
      this.addItemEvent ='item.added', (cartItem) => {
  beforeDestroy () {
Edit this page on GitHub Updated at Mon, Oct 18, 2021