Git Product home page Git Product logo

nuxt-storyblok-snipcart's Introduction

Nuxt.js Storyblok Boilerplate including Snipcart

Build Setup

# install dependencies
$ npm install # Or yarn install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm start

# generate static project
$ npm run generate

nuxt-storyblok-snipcart's People

Contributors

cajaverde avatar dominikangerer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nuxt-storyblok-snipcart's Issues

Product Crawl Failed Error

Hi,

I followed the tutorial and implement snipcart in NuxtJS with the V3 but when I want to checkout I have an error (test checkout). I tried different combinations on the snipcart button according to the debug log without success.

INF > Found 0 snipcart-add-item elements with ids []

WRN> An attempt to create an order with invalid products has been made. Don't forget you can't add/update items attributes in the cart dynamically with javascript as it will cause crawling issues.

I tried with the V2 and V3 of the snipcart and the problem persists.

<b-button
                expanded
                href="#"
                class="snipcart-add-item is-medium"
                :data-item-id="story.content._uid"
                :data-item-name="story.content.title"
                :data-item-description="story.content.simple_description"
                :data-item-price="story.content.price"
                :data-item-quantity="quantity"
                :data-item-url="`https://nuxtjssnipcart.now.sh${currentUrl}`"
                :data-item-image="story.content.images[0].filename"
              >SHOP NOW</b-button>

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.