This error appears to me when I add something to the shopping cart . I’ve checked the code many times, but I still can’t find the solution, I don’t know how to make it work. code in cartActions.js code in cardReducers.js I think the problem comes from here, but I don’t know exactly where to change code in CartScreen.js Here
Tag: e-commerce
How to keep track of a purchase total based on number of clicks
I am trying to keep track of a running total based on number of clicks on the buttons on the site. There are 8 buttons, all of which should add $123.45 to the total when clicked, as well as alert the total. Some of my HTML And my JS so far I know this JS isn’t what I need, but
How do I fix this issue TypeError: Cannot read property ‘location’ of undefined?
I’m having a successful deployment Success: The issue says that is coming from a hook.js file which I don’t see this file in my repo: If I look at the chrome tools, this is the reference from my issue If I trace the problem it seems that is located inside of my NavBar.js which is invoking useLocation(): The problem is
cannot pass items and prices into stripe checkout
I am using the embedded nodejs/javascript Stripe Checkout for my custom ecommerce site. I have my own cart created using DB2, and want to pass the name of the products the customer has in the cart, and the matching prices for each product. Stripe is not very clear on how to do this, and i’ve been struggling to find the