Git Product home page Git Product logo

Comments (9)

taiseen avatar taiseen commented on May 17, 2024

in Cart component at line number 78, remove that onClick="", then you don't get this error...

from ecommerce_sanity_stripe.

Gerwyn1 avatar Gerwyn1 commented on May 17, 2024

the error is gone but sadly im still unable to add different cart items. any idea? trying to add other items, only ends up adding the first item only.

from ecommerce_sanity_stripe.

taiseen avatar taiseen commented on May 17, 2024

I'm not sure why it's happening at your end... so let's add some screen short here to see what is going on at your project?

from ecommerce_sanity_stripe.

Gerwyn1 avatar Gerwyn1 commented on May 17, 2024

Again i've added the 2nd item (x2) and 3rd item (x3) and it added the first item (x5) to the cart. also the console has no more errors.

image

from ecommerce_sanity_stripe.

taiseen avatar taiseen commented on May 17, 2024

Don't mind... I think you may have missed conception to understand this thing because that 2nd or 3rd item you can't add because they are already part of the 1st product item. These pictures are just another-looking version of that specific product that you already added to your cart & after adding the product into the cart you can only see just 1st picture from that product.

So it's not an error, it's a feature behavioral pattern 🙂

from ecommerce_sanity_stripe.

Gerwyn1 avatar Gerwyn1 commented on May 17, 2024

But how? Just before I copy pasted the github code, it was working fine.

'These pictures are just another-looking version of that specific product that you already added to your cart'

But I manually added the items to sanity CMS.

I'm guessing the github source code actually has bugs

from ecommerce_sanity_stripe.

beaxion avatar beaxion commented on May 17, 2024

From what I see you need to create a separate products in Sanity dashboard, not just add different pictures to the same product.

from ecommerce_sanity_stripe.

Gerwyn1 avatar Gerwyn1 commented on May 17, 2024

From what I see you need to create a separate products in Sanity dashboard, not just add different pictures to the same product.

Nope. Didn't work. I've added different products once again (this time smartwatch)

image

image

Also, i followed the exact steps in the tutorial video, what adrian did.

also there's this bug too for some reason:
image

from ecommerce_sanity_stripe.

meetsmarttechnica avatar meetsmarttechnica commented on May 17, 2024

same problem its a bug when add one item than add another item multiple time its is item._id is is undefianed why

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.