Git Product home page Git Product logo

Comments (9)

AM-Darshan avatar AM-Darshan commented on May 21, 2024 1

@dmr019 I wish I could say it worked but it did not.

Its the problem with ur sanity database, u have to go to banner section (open localhost:3333) and there u have "product" field. There u have to change it to a slug that is already existing in the database of any product u wanna display.
Since there is no product with slug "Headphones" you are getting an error.

from ecommerce_sanity_stripe.

miahthegreat avatar miahthegreat commented on May 21, 2024

@Pannu786 is it only happening when you click the Buy Now button in the banner or any product on the home page?

from ecommerce_sanity_stripe.

Pannu786 avatar Pannu786 commented on May 21, 2024

@Pannu786 is it only happening when you click the Buy Now button in the banner or any product on the home page?
Just the BUY NOW button on the banner. Other than that rest of the app works fine.

from ecommerce_sanity_stripe.

miahthegreat avatar miahthegreat commented on May 21, 2024

It's more than likely an issue with the product slug that the banner points too. Either the product doesn't exist in Sanity or there is no image published for the product.

from ecommerce_sanity_stripe.

Pannu786 avatar Pannu786 commented on May 21, 2024

Hmm, I will have a look. Thank for the help tho.

from ecommerce_sanity_stripe.

dmroberts302 avatar dmroberts302 commented on May 21, 2024

I think i found the problem, you imported capital Product from components when it should have been lower case product and i think this is the reason all four properties of lowercase product is null. Import product instead and let me know if this helps.

from ecommerce_sanity_stripe.

Pannu786 avatar Pannu786 commented on May 21, 2024

@dmr019 I wish I could say it worked but it did not.

from ecommerce_sanity_stripe.

Pannu786 avatar Pannu786 commented on May 21, 2024

from ecommerce_sanity_stripe.

Pradhan1999 avatar Pradhan1999 commented on May 21, 2024

@dmr019 I wish I could say it worked but it did not.

Here, slug name in Product and product name in Banner sholud be same.
image
image

from ecommerce_sanity_stripe.

Related Issues (20)

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.