Home
Softono
i

iamdeepti

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
1

Software by iamdeepti

online-store
Open Source

online-store

# Online store [![HitCount](http://hits.dwyl.io/iamdeepti/online-store.svg)](http://hits.dwyl.io/iamdeepti/online-store) An Ecommerce website having all basic functionalites with paytm as payment gateway and an admin panel where you can insert , delete and modify products detail and view user query. #### Dependencies : LAMP/WAMP stack or any web server of such kind</br> (It's been tested on both LAMP and WAMP stack) #### Structure of the Repository This repository has following structure: admin </br> │   ├── admin.php : *Contains an html form and checks the username and password for admin panel* </br> │   └── Image : *This directory contains images that are being used in the for selling* </br> │   ├── add.php : *This file adds new product*</br> │   ├── Canon_dslr.jpg</br> │   ├── database.php : *This shows the whole information about products*</br> │   ├── delete.php : *This file deletes a record from database*</br> │   ├── edit.php : *This file edits a record*</br> │   ├── t-shirt.jpg</br> │   └── watch.jpg</br> ├── basicDetail.php : *This file displays the basic Details of the user and gives option to edit them*</br> ├── cart.php : *This file displays the items in the cart of the user that has logged in*</br> ├── cart-remove.php : *Removes an item from cart*</br> ├── favorite.php : *Displays items that were marked as favorite by the user*</br> ├── include </br> │   ├── bootstrap-3.3.7-dist : *Frontend Framework*</br> │   │   ├── css</br> │   │   │   ├── bootstrap.css</br> │   │   │   ├── bootstrap.css.map</br> │   │   │   ├── bootstrap.min.css</br> │   │   │   ├── bootstrap.min.css.map</br> │   │   │   ├── bootstrap-theme.css</br> │   │   │   ├── bootstrap-theme.css.map</br> │   │   │   ├── bootstrap-theme.min.css</br> │   │   │   └── bootstrap-theme.min.css.map</br> │   │   ├── fonts</br> │   │   │   ├── glyphicons-halflings-regular.eot</br> │   │   │   ├── glyphicons-halflings-regular.svg</br> │   │   │   ├── glyphicons-halflings-regular.ttf</br> │   │   │   ├── glyphicons-halflings-regular.woff</br> │   │   │   └── glyphicons-halflings-regular.woff2</br> │   │   └── js</br> │   │   ├── bootstrap.js</br> │   │   ├── bootstrap.min.js</br> │   │   └── npm.js</br> │   ├── bootstrap.css</br> │   ├── bootstrap.js</br> │   ├── Check-if-added.php : *This file checks if an item is already there in cart*</br> │   ├── common.php : *This file establishes connection with the database*</br> │   ├── fonts</br> │   │   ├── glyphicons-halflings-regular.eot</br> │   │   ├── glyphicons-halflings-regular.svg</br> │   │   ├── glyphicons-halflings-regular.ttf</br> │   │   ├── glyphicons-halflings-regular.woff</br> │   │   └── glyphicons-halflings-regular.woff2</br> │   └── jQuery.js</br> ├── index.css </br> ├── index.php : *The start page of our store*</br> ├── lebens.sql : *contains all the tables, database files*</br> ├── login.php : *Displays a login page*</br> ├── login_script.php : *contains the script to check the password and username entered in login form*</br> ├── logout.php : *logs out a user*</br> ├── manage_address.php : *Displays all addresses entered by user and gives an option to add or delete them*</br> ├── manage_script.php : *Adds or deletes the address of the user depending upon the choice made*</br> ├── my_order.php : *shows all the orders made by user*</br> ├── PaytmKit : *This directory contains files for paytm authentication*</br> │   ├── lib</br> │   │   ├── config_paytm.php</br> │   │   └── encdec_paytm.php</br> │   ├── pgRedirect.php</br> │   ├── pgResponse.php</br> │   ├── TxnStatus.php</br> │   └── TxnTest.php</br> ├── private</br> │   ├── config.properties</br> │   ├── private.properties</br> │   └── private.xml</br> ├── product_detail.php : *Shows the all the details of product once you click on the image*</br> ├── profile.css : *css for profile.php*</br> ├── profile.php : *shows profile of the user*</br> ├── README.md : *This where you are :p*</br> ├── search_form.php : *code for a search bar*</br> ├── search.php : *script for searching*</br> ├── sidebar.php : *creates a sidebar*</br> ├── signup.php : *displays a signup form*</br> ├── signup_script.php : *script for signup page*</br> ├── style.css </br> ├── success.php : *user is directed here if the product was purchased successfully*</br> ├── support_current.php : *shows current tickets generated by user*</br> ├── support_old.php : *shows old tickets that were generated by the user*</br> ├── support.php : *displays the html page where user can view old/current tickets or add new*</br> └── support_script.php : *adds new tickets into the database*</br> ### HOW TO USE THIS First fork/clone this repository and install all dependencies (Lamp/wamp or any web server supporting php and mySql). To install Lamp you can follow this tutorial : https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04#how-to-find-your-server-39-s-public-ip-address </br> ##### Windows user : After forking this repo include it in the **www** folder inside wamp ##### Linux users : After forking this repo include it inside **/var/www/html** folder </br></br> Import the **lebens.sql** file in mysql database named "lebens", if you want to use different database name then you will have to change it in include/common.php, just replace lebens with name_of_your_database in mysqli_connect function. </br> Add the username and password of your database in the file ./include/common.php inside mysqli_connect function </br> now on linux you can simply write http://localhost/online-store-master<or whatever the name of this repo is on your machine>/index.php on any browser and a start page like one shown below should appear . On windows just "localhost" should work, let me know if it doesn't. ![home page](/screenshots/ss1.png) To open admin panel run admin.php and use following credentials</br> **username = deepti**</br> **password = deepti**</br> to test the payment gateway (using staging credentials) you'll need to login/signup first and click on buy now button you'll be redirected to paytm's payment gateway </or> **use phone number : 7777777777**</br> **and OTP : 489871**</br>

E-commerce Platforms
14 Github Stars