e-commerce

I get the error : - Unhandled Rejection (TypeError): Cannot read property 'id' of undefined in React Application

喜你入骨 提交于 2021-01-07 06:34:36
问题 My Payment.js :- import React, { useState, useEffect } from 'react' import "./Payment.css" import { useStateValue } from './StateProvider' import CheckoutProduct from './CheckoutProduct'; import { Link, useHistory } from 'react-router-dom'; import { CardElement,useElements, useStripe } from '@stripe/react-stripe-js'; import CurrencyFormat from 'react-currency-format'; import { getBasketTotal } from './reducer'; import axios from "./axios"; import {db} from "./firebase"; function Payment() {

Laravel 8 Shopping Cart item quantity wont increment

北慕城南 提交于 2021-01-07 02:36:52
问题 new update: I have solved this problem, you can refer to this post for the answer. I'm a beginner in laravel and I've been trying to create a simple ecommerce web but i got stuck in this logic error for days. I've been following in a youtube tutorial about creating shopping cart but the item quantity won't increment if i add the same item in the cart. The totalPrice and totalQty seems counting fine though... this is what i get when i tried to dd($this) into cart.php. I think it's because i

How can save session of shopping cart data after logout, so the user can find them when login again in Django?

一个人想着一个人 提交于 2020-06-01 06:20:53
问题 I am working on e-commerce website using Django, I'm working on the shopping cart it's implemented using sessions and it's currently working fine, except one problem when the authenticated user logout from website, and login again , all data on cart lost. How can save session of shopping cart data after logout, so the user can find them when login again? my cart app files are: 1) cart.py from decimal import Decimal from django.conf import settings from shop.models import Product from coupons

Initially fetch data and pass props to another component

旧时模样 提交于 2020-03-05 03:13:08
问题 I have honestly (and perhaps ashamedly) been flummoxed by this for well over a week now. I've read the Next.js documentation back to front and have scoured the web for hours. I am clearly missing something and would appreciate it if someone could take a look. When Index.js gets loaded, it sends a request to my database (via) express and this returns a json response. The intention is for my ProductList component to .map() this response - which has been passed to it via props - into my

Etsy-like marketplace with Activemerchant? (Rails)

心不动则不痛 提交于 2020-02-22 08:51:33
问题 I am in the early stages of integrating a vendor marketplace (similar to Etsy, but for a very niche demographic) into an online community. I envision a platform that allows vendors to sign up and post goods for sale, with all transactions handled through the platform. Payments would be made from the consumers directly to the Paypal accounts of the vendors. A processing fee would be incurred for each transaction, with the sum of all fees billed to the vendors at the end of each 30 day period.

Etsy-like marketplace with Activemerchant? (Rails)

﹥>﹥吖頭↗ 提交于 2020-02-22 08:50:29
问题 I am in the early stages of integrating a vendor marketplace (similar to Etsy, but for a very niche demographic) into an online community. I envision a platform that allows vendors to sign up and post goods for sale, with all transactions handled through the platform. Payments would be made from the consumers directly to the Paypal accounts of the vendors. A processing fee would be incurred for each transaction, with the sum of all fees billed to the vendors at the end of each 30 day period.

While compiling ASP.NET ecommerce website receive: Object reference not set to an instance of an object

被刻印的时光 ゝ 提交于 2020-02-07 08:59:48
问题 I just partially added shopping cart to my ecommerce test-site. It still can't do checkout, or even update quantity of items(about to start though) but I should be able to open the page responsible for displaying the shopping cart. Instead it bricks my entire website. I get the following error when compiling the site: Server Error in '/Website' Application. Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current