Giter Site home page Giter Site logo

sveltekit-commerce's People

Contributors

dominikg avatar leerob avatar stephdietz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

sveltekit-commerce's Issues

Opps or oops?

Grammar error on 404 page.

Opps can mean something else ๐Ÿ˜…

Comparision vs NextJs Commerce

Can't believe how much simpler this code is vs your NextJs Commerce! Great job. Might have to learn Svelte now to use this. NextJs Commerce is way too complex.

Can't make it work ๐Ÿ˜…

Okay so, I deployed the project to Vercel. All running. But now that I want to connect my Shopify store, I have troubles finding the API variables that works. I created an App in my store, set the storefront api for VITE_SHOPIFY_STOREFRONT_API_TOKEN and my admin api for VITE_SHOPIFY_API_ENDPOINT. Still, I receive an error when I load the page (err 500). I have a test product in my store. What else I'm missing? Thanks in advance.

bug: august sveltekit breaking `routes` and `load` changes

Opening an issue around the breaking changes in the latest version of SvelteKit.

  • index.svelte -> +page.svelte
  • Eliminate context="module"
  • +server.js for backend
  • etc...

Is there already an advocate at Vercel taking on these template updates? Or is the intent for the community to maintain breaking changes moving forward?

Thanks for any guidance!

Demo version on vercel doesn't 'always' update cart

Strange enough, if you open your browser in private mode and add the first product "Quarter Zip" to your cart and then within the cart side modal, the buttons (remove / or add more item) don't work. It send requests but do not update the cart value.

The addToCart mutation now uses merchandiseId instead of variantId

First off I appreciate that you've shared this template. It's helped me greatly in setting up a Sveltekit-powered Shopify storefront. That said, it could probably stand for an update soon. The API is still defaulting to /2021-10/ version of the API from October 2021.

Most of the API I've touched has remained the same, but I've been roadblocked the last few days because one key name has changed...

In shopify.js the addToCart mutation key variantId is now merchandiseId.

Here's the full modification to the function:

export async function addToCart({ cartId, merchandiseId }) {
    return shopifyFetch({
        query: `
      mutation addToCart($cartId: ID!, $lines: [CartLineInput!]!) {
        cartLinesAdd(cartId: $cartId, lines: $lines) {
          cart {
            lines(first: 100) {
              edges {
                node {
                  id
                  quantity
                  merchandise {
                    ... on ProductVariant {
                      product {
                        title
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    `,
        variables: {
            cartId: cartId,
            lines: [
                {
                    merchandiseId: merchandiseId,
                    quantity: 1
                }
            ]
        }
    });
}

Just thought I'd share to help other folks beating their head against a wall like I have the last few days :)

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.