Coder Social home page Coder Social logo

django_ecommerce's Introduction

ECOMMERCE

developer

FUNCTIONS

Customer

  • Customer can view/search products without login.
  • Customer can also add/remove product to cart without login (if customer try to add same product in cart. It will add only one)
  • When customer try to purchase product, then he/she must login to system.
  • After creating account and login to system, he/she can place order.
  • There is a payment page also (just for demo, DONT FILL YOUR CARD DETAILS THERE ,By the way, website do not save that details)
  • If customer click on pay button, then their payment will be successful and their order will be placed.
  • Customer can check their ordered details by clicking on orders button.
  • Customer can see the order status (Pending, Confirmed, Delivered) for each order
  • Customer can Download their order invoice for each order
  • Customer can send feedback to admin (without login)

Admin

  • First admin will login ( for username/password run following command in cmd )
py manage.py createsuperuser
  • Give username, email, password and your admin account will be created.
  • After login, there is a dashboard (attached in screenshot) where admin can see how many customer is registered, how many products are there for sale, how many orders placed.
  • Admin can add/delete/view/edit the products.
  • Admin can view/edit/delete customer details.
  • Admin can view/delete orders.
  • Admin can change status of order (order is pending, confirmed, out for delivery, delivered)
  • Admin can view the feedbacks sent by customers.

Other Features

  • customer places order and admin deleted that user(fraud detection), then their orders will automatically deleted

  • suppose 1 customer places 4 products order and admin deleted 2 product from website, then that 2 product order will also be deleted and other 2 will be their

  • If user click on purchase button without having products in their cart, then website will ask to add product in cart first.

HOW TO RUN THIS PROJECT

  • Install Python(3.7.6) (Dont Forget to Tick Add to Path while installing Python)
  • Open Terminal and Execute Following Commands :
pip install django==3.0.5
pip install django-widget-tweaks
pip install xhtml2pdf

  • Download This Project Zip Folder and Extract it
  • Move to project folder in Terminal. Then run following Commands :
py manage.py makemigrations
py manage.py migrate
py manage.py runserver
  • Now enter following URL in Your Browser Installed On Your Pc
http://127.0.0.1:8000/

CHANGES REQUIRED FOR CONTACT US PAGE

  • In settins.py file, You have to give your email and password
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'your email password'
EMAIL_RECEIVING_USER = '[email protected]'
  • Login to gmail through host email id in your browser and open following link and turn it ON
https://myaccount.google.com/lesssecureapps

Drawbacks/LoopHoles

  • When user edit their profile then he/she must login again because their username/password is updated in db.
  • Popup of product is added to cart is shown when click on Ecommerce logo (soon i will fix it)

Disclaimer

This project is developed for demo purpose and it's not supposed to be used in real application.

Owned By

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.