e commerce

127
A Project Report On “E-COMMERCE WEBSITE USING WORDPRESS” Submitted in partial fulfillment of The requirements for the award of the Degree of BACHELOR OF TECHNOLOGY IN Information Technology By MUKUL CHAND GUPTA 1101210429 Under the esteemed guidance of Prof. Dr. G.S.S.Rao HOD of IT Deptt.

Upload: rajat

Post on 09-Sep-2015

6 views

Category:

Documents


3 download

DESCRIPTION

e commerce

TRANSCRIPT

E-commerce Website Project Documentation

A Project Report On

E-COMMERCE WEBSITE USING WORDPRESS

Submitted in partial fulfillment ofThe requirements for the award of the Degree of

BACHELOR OF TECHNOLOGYIN

Information Technology

ByMUKUL CHAND GUPTA1101210429

Under the esteemed guidance of

Prof. Dr. G.S.S.RaoHOD of IT Deptt.

DEPARTMMENT OF INFORMATION TECHNOLOGYGANDHI INSTITUTE OF ENGINEERING AND TECHNOLOGYGUNUPUR 7650222014-2015

DECLARATION

I hereby declare that the project entitled E-COMMERCE WEBSITE USING WORDPRESS submitted for the B.Tech. Degree is my original work and the project has not formed the basis for the award of any degree, associateship, fellowship or any other similar titles.

Signature of the Student: Place:Date:

Gandhi Institute of Engineering & TechnologyGUNUPUR 765 022, Dist: Rayagada (Odisha), India(Approved by AICTE, Govt. of Orissa and Affiliated to Biju Patnaik University of Technology): 06857 250172(Office), 251156(Principal), 250232(Fax), e-mail: [email protected] visit us at www.giet.orgISO 9001:2000 Certified Institute

Department of Information Technology

CERTIFICATE

This is to certify that the project entitled E-COMMERCE WEBSITE USING WORPDRESS is the bonafide work carried out by Mr Mukul Chand Gupta, University Regd. No-1101210429students of B. Tech (IT), Gandhi Institute of Engineering and Technology, Gunupur during the academic year 2011-15 in partial fulfillment of the requirements for the award of the Degree of Bachelor of Technology in Information Technology.

Prof. Dr. G.S.S.RaoProf. Dr. G.S.S.Rao Project Guide HOD (IT) HOD in Department of IT, G.I.E.T., Gunupur G.I.E.T., Gunupur

ACKNOWLEDGEMENT

My sincere thanks to Prof Dr G.S.S.RAO, Head of the Department of Information Technology, Gandhi Institute of Engineering and Technology Gunupur for his encouragement and valuable suggestions during period of my project work.No words would suffice to express my regard and gratitude to all the faculty members of Department Information Technology GIET, Gunupur for his inspiring guidance, constant encouragement, immense support and help during the course of the project.I express my heartfelt gratitude to Principal, GIET, Gunupur for permitting me to carry out this project work.

MUKUL CHAND GUPTA

ABSTRACT

E-commerce is the most visible business use of the World WideWeb. The primarygoal of an e-commerce site is tosell goods and services online.This project deals with developing ane-commerce website for Online store wherebusiness houses can create their own business portfolio of their product and services.It provides the user with a catalogof different product and services. It facilitates theuser to get information of different businesshouses and abouttheir products andservices before making purchasing decisions.The system is implemented using a 3-tier approach, with a backend database, a middle tier of apache and PHP, and a webbrowser as the front end client. In order to develop an e-commerce website, a numberof Technologies must be studied andunderstood. These include multi-tiered architecture, server and client side scripting techniques, implementation technologies such as Wordpress is Content Management system and PHP, programming language relational databases (such as MySQL).This is a project with the objectiveto develop a basic website wherea business houses can create their ownaccount of their products andservices. With this website no other business needs to create their own websites and bear its cost

TABLE OF CONTENTSPage No.Title page Declaration by the StudentCertificate by the GuideAcknowledgementAbstractList of Figures

Chapter 1 Introduction......91.1 What is E-commerce.101.2 Types of E-commerce...11

Chapter 2 System Analysis & Implementation.152.1. Requirements Analysis15 2.1.1 Product Perspective................................................152.1.1 User Interface..............................................................152.1.1 Hardware Interface......................................................16 2.1.1 Software Interface.................................................. ...17

Chapter 3 System Design & Specification..213.1 Data Model ...212.2 E-R Diagram.223.3 DFD..233.4 Use case Diagram..333.5 Database Design....343.6 Data Dictionary.353.7 Implementation Overview.44Chapter 4Software Code......51Chapter 5Testing..77Chapter 6Advantages and Applications.............84Chapter 7Conclusion and future work.......................87

List of Figures Process of E-commerce:-..1.1.1 Business-to-business (B2B):- ...1.2.1 Business-to-consumer (B2C):- .1.2.2 Business-to-government(B2G):- ..1.2.3 Consumer-to- consumer (C2C):- ..1.2.4 Government-to- consumer (G2C):- ..1.2.5 Government-to- business (G2B):- ....1.2.6 Xamp server..2.2.1 Wordpress Dashboard...2.2.2 Xamp server..2.2.3 E-R-diagram..3.2.1 DFD context level.3.3.1 First level DFD..3.3.2 Second level DFD.3.3.3 Use Case Diagram (USER)...3.4.1 Use Case Diagram(ADMIN).....3.4.2 Database Design....3.5.1 Home Page....3.6.1 User Login.3.6.2 Add Cart3.6.3 Product..3.6.4 Sub product Man/Women.3.6.8

Chapter-1

Introduction

It is known globally that, in todays market, it is extremely difficult to start a new smallscale business and its sustenance with competition from the well-established and settled/brand owners. Most often, even if the quality of the product is really good, due to a lack of advertisement or business at the small scale, it just becomes another face in the sea, and the product does not reach a larger group of customers. In fast paced life of today when everyone is squeezed for time, the majority of people are finicky when it comes to doing physical shopping. Logistically, a consumer finds a product more interesting and attractive when they find it on the website of a retailer directly and are able to see items details online. The customers of today are not only attracted because online shopping is very convenient, but also because they have broader selections, highly competitive prices, better information about the product (including peoples reviews) and extremely simplified navigation for searching regarding the product. Moreover, business owners often offer online shopping options at low rates because the overhead expenses in opening and running a physical store are higher. Further, with online shopping, their products have access to a worldwide market, which increases the number of customers from different ethnic groups, adds customer value, and overall sustainable in the marketing. Online web stores, such as Amazon and eBay, have gained huge popularity over the years because one can buy almost everything at these stores. These web stores also give an opportunity to a lot of small-scale companies and manufactures to reach the global market and to directly sell their products to people without involving different other companies or middlemen before their product can reach the shelves of a physical store.

1.1 What is E-commerce:- Electronic commerce or ecommerce is a term for any type of business, or commercial transaction, that involves the transfer of information across the Internet. It covers a range of different types of businesses, from consumer based retail sites, through auction or music sites, to business exchanges TRADING goods and services between corporations. It is currently one of the most important aspects of the Internet to emerge.Working of E-commerce:- The consumer moves through the internet to the merchant's web site. From there, he decides that he wants to purchase something, so he is moved to the online transaction server, where all of the information he gives is encrypted. Once he has placed his order, the information moves through a private gateway to a Processing Network, where the issuing and acquiring banks complete or deny the transaction. This generally takes place in no more than 57seconds.

There are many different payment systems available to accommodate the varied processing needs of merchants, from those who have a few orders a day to those who process thousands of transactions daily.With the addition of Secure Layer Technology-commerce is also a very safe way to complete transactions.1.2 Type of E-commerce:- Business-to-business (B2B) Business-to-Consumer (B2C) Business-to-government (B2G) Consumer-to-consumer (C2C) Government to consumer (G2C) Government-to-business (G2B)

Business-to-business (B2B):- B2B e-commerce is simply defined as ecommerce between companies. About 80% of e-commerce is of this type.Examples:- Heinz selling ketchup to Mc Donalds Intell selling microprocessor to Dell

Figure 1.2.1

Business-to-Consumer (B2C):-(B2C)Business-to-consumer e-commerce, or commerce between companies and consumers, involves customers gathering information; purchasing physical goods or receiving products over an electronic network.Examples:- Dell selling me a laptop.

Figure 1.2.2

Business-to government (B2G):-Business-to-government e-commerce or B2G is generally defined as commerce between companies and the public sector. It refers to the use of the Internet for public procurement, licensing procedures, and other government-related operations. Examples:- Business pay taxes, file reports, or sell goods and services to Govt. agencies..

Figure 1.2.3

Consumer-to-consumer (C2C):-Consumer-to-consumer e-commerce or C2C is simply commerce between private individuals or consumers. Examples:- Mary buying an iPod from Tom on eBay Me selling a car to my neighbor.

Figure 1.2.4

Government to consumer (G2C):- This Model is also a part of e-governance. The objective of this model is to provide good and effective services to each citizen. The Government provides the following facilities to the citizens through website. Information of all government departments, Different welfare schemes, Different application forms to be used by the citizens.

Figure 1.2.5

Government to business (G2B):- Government-to-business (G2B) is a business model that refers to government providing services or information to business organization.Government uses B2G model website to approach business organizations. Such websites support auctions, tenders and application submission functionalities.

Figure 1.2.6

Chapter-2

System Analysis & Implementation

2.1 Recruitments Analysis:-2.2.1 Product Perspective:-The online shopping-cart application is a web-based system. It can be accessed using Internet Explorer 8.0 and above, Mozilla Firefox 2.0, and Google Chrome.

2.2.2 User Interface:- The two interface types found in the online shopping-cart application are as follows: 1. User Interface: Users are able to view the home page of the shopping-cart application, browse the different categories, browse and add any number of items from any categories in the shopping cart, look for information about each product, delete the items in the shopping cart, save the cart for later viewing, check out or continue shopping after adding the item to the cart, and check out the items by completing the required information in the order form.

2. Admin Interface: The administrator is able to view the users information that was entered during checkout in the database, can update the information, price, shipping costs of the items, add or remove items from the main display

2.1.3.. Hardware Interface: The online shopping-cart application shall provide minimum hardware requirements. The following hardware configurations are required for a PC using the online shopping-cart application: Pentium processor10 32 MB of free hard-drive space 128 MB of RAM

2.2.4Software Interface:-This section lists the requirements that are needed to run the system efficiently. The operating system needed for the system to run effectively, the interface to run the application follow: Adobe Dreamviwer CS6 Xamp ServerAdobe Dreamviwer CS6:- AdobeDreamweaveris a software program for designing web pages, essentially a more fully featured HTML web and programming editor. The program provides a what-you-see-is-what-you-get (WYSIWYG) interface for users to create and edit web pages in a more user-friendly environment. Dreamweaver supports multiple web and programming languages including HTML, C#, Visual Basic (VB), Cascading Style Sheets (CSS), Active Server Pages (ASP), ExtensibleMarkup Language(XML) and others. The program is also available in a number of languages, including English, Spanish, French, German, Japanese, Chinese (both Simplified and Traditional), Italian, Russian, and more.Dreamweaver was originally developed and published byMacromediain 1997.Adobe purchased Macromedia (which included the rights to Dreamweaver)

in 2005 and continued the development of the program. The many features of Dreamweaver make it a versatile web editing tool, where it be for creating complex or very simples sites.Xamp Server:-It is a free open source cross-platform web server package.

2.1.1 Figure Xamp server 2.2 Platform Requirements:- Wordpress Woo Commerce PluguinsWordpress:- An open source blogging tool and publishing platform that can be customized into a content management system (CMS).Other words we can say WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time Examples wordpress websites:- CNN Time Magazine TechCrunch

Figure 2.2.2 Wordpress Dashboard

What is CMS(content management system):-A content management system (CMS) is a system used to manage the content of a Web site. Typically, a CMS consists of two elements: the content management application (CMA) and the content delivery application (CDA). The CMA element allows the content manager or author, who may not know Hypertext Markup Language (HTML), to manage the creation, modification, and removal of content from a Web site without needing the expertise of a Webmaster. The CDA element uses and compiles that information to update the Web site. The features of a CMS system vary, but most include Web-based publishing, format management, revision control, and indexing, search, and retrieval.

How to install Wordpress in web server:-Download the Wordpress through internet site:www.wordpress.org Download it and Unpack files Paste extract files to the physical path of the server C:\XAMPP\htdocs Rename the file wp-config-sample to wp-config and save it Open the file and set databasename, username, password

Figure 2.2.3 Install Wordpress

Database setup with XAMPP in Wordpress To access database WP will need Mysql-database which has a name SQL-Username the appropriate password the database host is localhost With XAMPP username and password are root to create a database use PhpMyAdmin http://localhost/XAMPP Login the Wordpress Before you can make any changes to your site, you will need to log in. The login for your site is

typically found at the following URL - http://your-wordpress-site.com/wp-admin. Obviously, replace your-wordpress-site.com with your actual domain name.Woo Commerce Pluguins:-Woo Commerce is the most popular open source e-commerce plug-in for Wordpress. It is designed for small to large-sized online merchants using Wordpress. Launched on September 27, 2011, the plug-in quickly became famous for its simplicity to install and customization and being free in nature

Chapter-3

System Design & Specification

In order to design a web site, the relational database must be designed first. Conceptual design can be divided into two parts: The data model and the process model. The data model focuses on what data should be stored in the database while the process model deals with how the data is processed. To put this in the context of the relational database, the data model is used to design the relational tables. The process model is used to design the queries that will access and perform operations on those tables.

3.1 Data Model:- A data model is a conceptual representation of the data structures that are required by a database. The first step in designing a database is to develop an Entity-Relation Diagram (ERD). The ERD serves as a blue print from which a relational database maybe deduced. Figure 3.1.1 shows the ERD for the project and later we will show the transformation from ERD to the Relational model.

Entity A matches exactly one record in entity B and every record in B matches exactly one record in A. One to many means that every record in A matches zero or more records in B and every record in B matches exactly one record in A. If there is a one to many relationships between two entities, then these entities are represented as Associative Entities. In the Relational Database model, each of the entities will be transformed into a table. The tables are shown below along with the attributes.

3.2 E-R-Diagram:-

Figure 3.2.1 E-R-Diagram

3.3. Data Flow Diagram (DFD):-Data Flow Diagrams show the flow of data from external entities into the system, and from one process to another within the system.

There are four symbols for drawing a DFD: Rectangles representing external entities, which are sources or destinations of data. Ellipses representing processes, which take data as input, validate and process it and output it. Arrows representing the data flows, which can either, be electronic data or physical items. Open-ended rectangles or a Disk symbol representing data stores, including electronic stores such as databases or XML files and physical stores such as filing cabinets or stacks of paper.

Each process within the system is first shown as a Context Level DFD and later as a Detailed DFD. The Context Level DFD provides a conceptual view of the process and its surrounding input, output and data stores. The Detailed DFD provides a more detailed and comprehensive view of the interaction among the sub-processes within the system.

Figure 3.3.1 Context Level Diagram

Figure 3.3.2 First Level DFD

Figure 3.3.3 First Level DFD

Figure 3.3.4 Customer DFD

Figure 3.3.5 Customer Shopping cart DFD

Figure 3.3.6 Customer Authentication DFD

Figure 3.3.7 Customer Authentication User DFD

Figure 3.3.9 Customer New Registration DFD

3.4 Use Case Diagram-

UML Diagram of USER

Figure 3.4.1 UML Diagram of USER

UML Diagram of ADMIN

Figure 3.4.2 UML Diagram of ADMIN

3.5 Database Design-

Figure 3.5.1 Database Design

3.5 Data Dictionary 1. Wp_commentmetaCOLUMN NAMEDATA TYPEDESCRIPTION

meta idbigint(20)Use to store commentmeta id.

comment_idbigint(20)Use to store comment

meta_keyvarchar(255)Use to store meta key

meta_valuelongtextUse to store meta value

2. Wp_commentsCOLUMN NAMEDATA TYPEDESCRIPTION

comment_IDbigint(20)Use to store comment id

comment_post_IDbigint(20)Use to store comment post id

comment_authortinytextUse to store comment author

comment_author_emailvarchar(100)Use to store comment author email

comment_author_urlvarchar(100)Use to store author url

comment_author_IPvarchar(100)Use to store author ip

comment_datedatetimeUse to store comment date

comment_date_gmtdatetimeUse to store comment date gmt

comment_contenttextUse to store comment content

comment_karmaint(11)Use to store comment karma

comment_approvedvarchar(20)Use to store comment approved

comment_agentvarchar(255)Use to store comment agent

comment_typevarchar(20)Use to store comment type

comment_parentbigint(20)Use to store comment parent

user_idbigint(20)Use to store comment user id

3.Wp_linksCOLUMN NAMEDATA TYPEDESCRIPTION

link_idbigint(20)Use to store link id

link_urlvarchar(255)Use to store link url

link_namevarchar(255)Use to store link name

link_imagevarchar(255)Use to store link image

link_targetvarchar(25)Use to store link target

link_descriptionvarchar(255)Use to store link description

link_visiblevarchar(20)Use to store link visible

link_ownerbigint(20)Use to store link owner

link_ratingint(11)Use to store link rating

link_updateddatetimeUse to store link update

link_relvarchar(255)Use to store link rel

link_notesmediumtextUse to store link notes

link_rssvarchar(255)Use to store link rss

5.Wp_termsCOLUMN NAMEDATA TYPEDESCRIPTION

term_idbigint(20)Use to store term id

namevarchar(200)Use to store name

slugvarchar(200)Use to store slug

term_groupbigint(10)Use to store term group

5.Wp_optionsCOLUMN NAMEDATA TYPEDESCRIPTION

option_idbigint(20)Use to store id

option_namevarchar(64)Use to store name

option_valuelongtextUse to store value

autoloadvarchar(20)Use to store autoload

6.Wp_term_relationshipsCOLUMN NAMEDATA TYPEDESCRIPTION

object_idbigint(20)Use to store object id

term_taxonomy_idbigint(20)Use to store taxonomy id

term_orderint(11)Use to store term order

6.Wp_postmetaCOLUMN NAMEDATA TYPEDESCRIPTION

meta_idbigint(20)Use to store meta id

post_idbigint(20)Use to store post id

meta_keyvarchar(255)Use store meta key

meta_valuelongtextUse to store meta value

8.Wp_postsCOLUMN NAMEDATA TYPEDESCRIPTION

IDbigint(20)Use to store id

post_authorbigint(20)Use to store post author

post_datedatetimeUse to store post date

post_date_gmtdatetimeUse to store post date gmt

post_contentlongtextUse to store content

post_titletextUse to store title

post_experttextUse to store expert

post_statusvarchar(20)Use to store status

comment_statusvarchar(20)Use to store comment status

ping_statusvarchar(20)Use to store ping status

post_passwordvarchar(20)Use to store post password

post_namevarchar(200)Use to store post name

to_pingtextUse to store ping

pingedtextUse to store pinged

post_modifieddatetimeUse to store post modified

post_modified_gmtdatetimeUse to store post modified gmt

post_content_filteredlongtextUse to store content filterd

post_parentbigint(20)Use to store post parent

guidvarchar(255)Use to store guid

menu_orderint(11)Use to store menu order

post_typevarchar(20)Use to store post type

post_mime_typevarchar(100)Use to store post mime type

comment_countbigint(20)Use to store comment count

9.Wp_term_taxonomyCOLUMN NAMEDATA TYPEDESCRIPTION

term_taxonomy_idbigint(20)Use to store taxonomy id

term_idbigint(20)Use to store term id

taxonomyvarchar(32)Use to store taxonomy

descriptionlongtextUse to store description

parentbigint(20)Use to store parent

countbigint(20)Use to store count

10.Wp_usermetaCOLUMN NAMEDATA TYPEDESCRIPTION

umeta_idbigint(20)Use to store umeta id

user_idbigint(20)Use to store user id

meta_keyvarchar(255)Use to store meta key

meta_valuelongtextUse to store meta value

12.Wp_woocommerce_attribute_taxonomiesCOLUMN NAMEDATA TYPEDESCRIPTION

attribute_idbigint(20)Use to store woocommerce id

attribute_namevarchar(200)Use to store woocommerce name

attribute_labellongtextUse to store woocommerce label

attribute_typevarchar(200)Use to store woocommerce type

attribute_orderbyvarchar(200)Use to store woocommerce orderby

attribute_publicint(1)Use to store woocommerce public

16.Wp_ woocommerce_tax_rate_locationsCOLUMN NAMEDATA TYPEDESCRIPTION

tax_rate_idbigint(20)Use to store woocommerce tax id

tax_rate_countryvarchar(200)Use to store woocommerce tax country

tax_rate_statevarchar(200)Use to store woocommerce tax state

tax_ratevarchar(200)Use to store woocommerce tax rate

tax_rate_namevarchar(200)Use to store woocommerce tax name

tax_rate_prioritybigint(20)Use to store woocommerce tax priority

tax_rate_compoundint(1)Use to store woocommerce tax compound

tax_rate_shippingint(1)Use to store woocommerce tax shipping

tax_rate_orderbigint(20)Use to store woocommerce tax order

tax_rate_classvarchar(200)Use to store woocommerce tax class

14.Wp_ woocommerce_order_itemmetaCOLUMN NAMEDATA TYPEDESCRIPTION

meta_idbigint(20)Use to store meta id

order_item_idbigint(20)Use to store order item id

meta_keyvarchar(255)Use to store meta key

meta_valuelongtextUse to store meta value

11.Wp_usersCOLUMN NAMEDATA TYPEDESCRIPTION

IDbigint(20)Use to store id

user_loginvarchar(60)Use to store user login

user_passvarchar(64)Use to store user pass

user_nicenamevarchar(50)Use to store user nickname

user_emailvarchar(100)Use to store user email

user_urlvarchar(100)Use to store user url

user_registereddatetimeUse to store user register

user_activation_keyvarchar(60)Use to store user activation key

user_statusint(11)Use to store user status

display_namevarchar(250)Use to store user display name

18.Wp_termmetaCOLUMN NAMEDATA TYPEDESCRIPTION

meta_idbigint(20)Use to store term meta id

woocommerce_term_idbigint(20)Use to store term term id

meta_keyvarchar(255)Use to store term meta key

meta_valuelongtextUse to store term meta value

13.Wp_ woocommerce_tax_ratesCOLUMN NAMEDATA TYPEDESCRIPTION

tax_rate_idbigint(20)Use to store tax rate id

tax_rate_countryvarchar(200)Use to store tax rate country

tax_rate_statevarchar(200)Use to store tax rate state

tax_ratevarchar(200)Use to store tax rate

tax_rate_namevarchar(200)Use to store tax rate name

tax_rate_prioritybigint(20)Use to store tax rate prirority

tax_rate_compoundint(1)Use to store tax rate compound

tax_rate_shippingint(1)Use to store tax rate shipping

tax_rate_orderbigint(20)Use to store tax rate order

tax_rate_classvarchar(200)Use to store tax rate class

15.Wp_ woocommerce_order_itemCOLUMN NAMEDATA TYPEDESCRIPTION

order_item_idbigint(20)Use to store order item id

order_item_namelongtextUse to store order item name

order_item_typevarchar(200)Use to store order item type

order_idbigint(20)Use to store order item order id

17.Wp _woocommerce_downlodable_product_permissionCOLUMN NAMEDATA TYPEDESCRIPTION

permission_idbigint(20)Use to store permission id

download_idvarchar(32)Use to store download id

product_idbigint(20)Use to store product id

order_idbigint(20)Use to store order id

order_keyvarchar(200)Use to store order key

user_emailvarchar(200)Use to store user email

user_idbigint(20)Use to store user id

downloads_remainingvarchar(9)Use to store downloads remaining

access_granteddatetimeUse to store acces granted

access_expiresdatetimeUse to store access expriess

download_countbigint(20)Use to store download count

3.6 Implementation OverviewHome Page

3.6.1 Figure Home Page

User Login Page

3.6.2 Figure User Login Page

Add Cart Page

3.6.3 Figure Add Cart Page

Shop Categories

3.6.4 Figure Categories

Product Screen shot

3.6.5 Figure Product Page

Man Categories

3.6.6 Figure Sub Categories Man

Women Categories

3.6.7Figure Sub Categories Women

Chapter-4

Software Coding

Wordpress Database Config:-