Professional Documents
Culture Documents
Online Food Ordering System
Online Food Ordering System
Page - 1
Introduction of the Project Online Food Ordering System:
The "Online Food Ordering System" has been developed to override the problems
prevailing in the practicing manual system. This software is supported to eliminate and
in some cases reduce the hardships faced by this existing system. Moreover this
system is designed for the particular need of the company to carry out operations in a
smooth and effective manner.
The application is reduced as much as possible to avoid errors while entering the data.
It also provides error message while entering invalid data. No formal knowledge is
needed for the user to use this system. Thus by this all it proves it is user-friendly.
Online Food Ordering System , as described above, can lead to error free, secure,
reliable and fast management system. It can assist the user to concentrate on their
other activities rather to concentrate on the record keeping. Thus it will help organization
in better utilization of resources.
Every organization, whether big or small, has challenges to overcome and managing
the information of Category, Food Item, Order, Payment, Confirm Order. Every Online
Food Ordering System has different Food Item needs, therefore we design exclusive
employee management systems that are adapted to your managerial requirements.
This is designed to assist in strategic planning, and will help you ensure that your
organization is equipped with the right level of information and details for your future
goals. Also, for those busy executive who are always on the go, our systems come with
remote access features, which will allow you to manage your workforce anytime, at all
times. These systems will ultimately allow you to better manage resources.
Abstract of the Project Online Food Ordering System:
The purpose of Online Food Ordering System is to automate the existing manual
system by the help of computerized equipments and full-fledged computer software,
fulfilling their requirements, so that their valuable data/information can be stored for a
longer period with easy accessing and manipulation of the same. The required software
and hardware are easily available and easy to work with.
Online Food Ordering System, as described above, can lead to error free,
secure, reliable and fast management system. It can assist the user to concentrate on
their other activities rather to concentrate on the record keeping. Thus it will help
organization in better utilization of resources. The organization can maintain
computerized records without redundant entries. That means that one need not be
distracted by information that is not relevant, while being able to reach the information.
The aim is to automate its existing manual system by the help of computerized
equipments and full-fledged computer software, fulfilling their requirements, so that their
valuable data/information can be stored for a longer period with easy accessing and
manipulation of the same. Basically the project describes how to manage for good
performance and better services for the clients.
Objective of Project on Online Food Ordering System:
The main objective of the Project on Online Food Ordering System is to manage
the details of Food Item, Category, Customer, Order, Confirm Order. It manages all the
information about Food Item, Payment, Confirm Order, Food Item. The project is totally
built at administrative end and thus only the administrator is guaranteed the access. The
purpose of the project is to build an application program to reduce the manual work for
managing the Food Item, Category, Payment, Customer. It tracks all the details about
the Customer, Order, Confirm Order.
Provides the searching facilities based on various factors. Such as Food Item,
Customer, Order, Confirm Order
Online Food Ordering System also manage the Payment details online for Order
details, Confirm Order details, Food Item.
It tracks all the information of Category, Payment, Order etc
Manage the information of Category
Shows the information and description of the Food Item, Customer
To increase efficiency of managing the Food Item, Category
It deals with monitoring the information and transactions of Order.
Manage the information of Food Item
Editing, adding and updating of Records is improved which results in proper
resource management of Food Item data.
Manage the information of Order
Integration of all records of Confirm Order.
Scope of the project Online Food Ordering System
It may help collecting perfect management in details. In a very short time, the
collection will be obvious, simple and sensible. It will help a person to know the
management of passed year perfectly and vividly. It also helps in current all works
relative to Online Food Ordering System. It will be also reduced the cost of collecting
the management & collection procedure will go on smoothly.
In computer system the person has to fill the various forms & number of copies
of the forms can be easily generated at a time.
In computer system, it is not necessary to create the manifest but we can directly
print it, which saves our time.
To assist the staff in capturing the effort spent on their respective working areas.
To utilize resources in an efficient manner by increasing their productivity through
automation.
The system generates types of information that can be used for various
purposes.
It satisfy the user requirement
Be easy to understand by the user and operator
Be easy to operate
Have a good user interface
Be expandable
Delivered on schedule within the budget.
Reports of Online Food Ordering System:
Food Item Management Module: Used for managing the Food Item details.
Confirm Order Module : Used for managing the details of Confirm Order
Payment Module : Used for managing the details of Payment
Category Management Module: Used for managing the information and details of
the Category.
Customer Module : Used for managing the Customer details
Order Module : Used for managing the Order informations
Login Module: Used for managing the login details
Users Module : Used for managing the users of the system
Input Data and Validation of Project on Online Food Ordering System
All the fields such as Food Item, Customer, Confirm Order are validated and does
not take invalid values
Each form for Food Item, Category, Payment can not accept blank value fields
Avoiding errors in data
Controlling amount of input
Integration of all the modules/forms in the system.
Preparation of the test cases.
Preparation of the possible test data with all the validation checks.
Actual testing done manually.
Recording of all the reproduced errors.
Modifications done for the errors found during testing.
Prepared the test result scripts after rectification of the errors.
Functionality of the entire module/forms.
Validations for user input.
Checking of the Coding standards to be maintained during coding.
Testing the module with all the possible test data.
Testing of the functionality involving all type of calculations etc.
Commenting standard in the source files.
The software quality plan we will use the following SQA Strategy:
In the first step, we will select the test factors and rank them. The selected test
factors such as reliability, maintainability, portability or etc, will be placed in the
matrix according to their ranks.
The second step is for identifying the phases of the development process.
The phase should be recorded in the matrix.
The third step is that identifying the business risks of the software
deliverables. The risks will be ranked into three ranks such as high, medium
and low.
Features of the project Online Food Ordering System:
The old manual system was suffering from a series of drawbacks. Since whole of
the system was to be maintained with hands the process of keeping, maintaining and
retrieving the information was very tedious and lengthy. The records were never used to
be in a systematic order. there used to be lots of difficulties in associating any particular
transaction with a particular context. If any information was to be found it was required
to go through the different registers, documents there would never exist anything like
report generation. There would always be unnecessary consumption of time while
entering records and retrieving records. One more problem was that it was very difficult
to find errors while entering the records. Once the records were entered it was very
difficult to update these records.
The reason behind it is that there is lot of information to be maintained and have
to be kept in mind while running the business .For this reason we have provided
features Present system is partially automated (computerized), actually existing system
is quite laborious as one has to enter same information at three different places.
Documents and reports that must be provided by the new system: there can also
be few reports, which can help management in decision-making and cost
controlling, but since these reports do not get required attention, such kind of
reports and information were also identified and given required attention.
Details of the information needed for each document and report.
The required frequency and distribution for each document.
Probable sources of information for each document and report.
With the implementation of computerized system, the task of keeping records in
an organized manner will be solved. The greatest of all is the retrieval of
information, which will be at the click of the mouse. So the proposed system helps
in saving the time in different operations and making information flow easy giving
valuable reports.
Feasibility Study:
After doing the project Online Food Ordering System, study and analyzing all the
existing or required functionalities of the system, the next task is to do the feasibility
study for the project. All projects are feasible - given unlimited resources and infinite
time.
Feasibility study includes consideration of all the possible ways to provide a solution to
the given problem. The proposed solution should satisfy all the user requirements and
should be flexible enough so that future changes can be easily done based on the
future upcoming requirements.
A. Economical Feasibility
This is a very important aspect to be considered while developing a project. We
decided the technology based on minimum possible cost factor.
All hardware and software cost has to be borne by the organization.
Overall we have estimated that the benefits the organization is going to receive
from the proposed system will surely overcome the initial costs and the later on
running cost for system.
B. Technical Feasibility
This included the study of function, performance and constraints that may affect
the ability to achieve an acceptable system. For this feasibility study, we studied
complete functionality to be provided in the system, as described in the System
Requirement Specification (SRS), and checked if everything was possible using
different type of frontend and backend plaformst.
C. Operational Feasibility
No doubt the proposed system is fully GUI based that is very user friendly and all
inputs to be taken all self-explanatory even to a layman. Besides, a proper training has
been conducted to let know the essence of the system to the users so that they feel
comfortable with new system. As far our study is concerned the clients are comfortable
and happy as the system has cut down their loads and doing.
System Design of Online Food Ordering System
In this phase, a logical system is built which fulfils the given requirements. Design
phase of software development deals with transforming the clients’s requirements into a
logically working system. Normally, design is performed in the following in the following
two steps:
The general tasks involved in the design process are the following:
User Interface Design is concerned with the dialogue between a user and the
computer. It is concerned with everything from starting the system or logging into the
system to the eventually presentation of desired inputs and outputs. The overall flow of
The following steps are various guidelines for User Interface Design:
5. Default values for fields and answers to be entered by the user should be
specified.
7. The system user should never get an operating system message or fatal error.
Preliminary Product Description:
The first step in the system development life cycle is the preliminary investigation
to determine the feasibility of the system. The purpose of the preliminary investigation is
to evaluate project requests. It is not a design study nor does it include the collection of
details to describe the business system in all respect. Rather, it is the collecting of
information that helps committee members to evaluate the merits of the project request
and make an informed judgment about the feasibility of the proposed project.
Benefit to Organization
The initial cost of setting up the system will include the cost of hardware software
(OS, add-on software, utilities) & labour (setup & maintenance). The same has to bear
by the organization.
Running Cost
Besides, the initial cost the long term cost will include the running cost for the
system including the AMC, stationary charges, cost for human resources, cost for
update/renewal of various related software.
The users along with the administrator need to be trained at the time of
implementation of the system for smooth running of the system. The client will provide
the training site.
We talked to the management people who were managing a the financial issues
of the center, the staff who were keeping the records in lots of registers and the
reporting manager regarding their existing system, their requirements and their
expectations from the new proposed system. Then, we did the system study of the
entire system based on their requirements and the additional features they wanted to
incorporate in this system.
Reliable, accurate and secure data was also considered to be a complex task
without this proposed system. Because there was no such record for keeping track of all
the activities, which was done by the Online Food Ordering System on the daily basis.
The new system proposed and then developed by me will ease the task of the
organization in consideration. It will be helpful in generating the required reports by the
staff, which will help them to track their progress and services.
Thus, it will ease the task of Management to a great extent as all the major
activities to be performed, are computerized through this system.
Project Category
RDBMSs have become a predominant choice for the storage of information in new
databases used for financial records, manufacturing and logistical information,
personnel data, and much more since the 1980s. Relational databases have often
replaced legacy hierarchical databases and network databases because they are easier
to understand and use. However, relational databases have been challenged by object
databases, which were introduced in an attempt to address the object-relational
impedance mismatch in relational database, and XML databases.
Implementation Methodology:
Model View Controller or MVC as it is popularly called, is a software design pattern for
developing web applications. A Model View Controller pattern is made up of the
following three parts:
Model - The lowest level of the pattern which is responsible for maintaining data.
View - This is responsible for displaying all or a portion of the data to the user.
Controller - Software Code that controls the interactions between the Model
and View.
MVC is popular as it isolates the application logic from the user interface layer and
supports separation of concerns. Here the Controller receives all requests for the
application and then works with the Model to prepare any data needed by the View. The
View then uses the data prepared by the Controller to generate a final presentable
response. The MVC abstraction can be graphically represented as follows.
MVC (Model View Controller Flow) Diagram
2) With respect to the customer: Weekly or timely meetings with the customer
with presentation on status reports. Customers feedback is also taken and further
modification and developments are done. Project milestones and deliverables
are also presented to the customer.
Select a project
o Testing techniques
o Documentation
Budget allocation
Project Estimates
o Cost
o Time
o Size of code
o Duration
Resource Allocation
o Hardware
o Software
o Digital Library
Risk Management
o Risk avoidance
o Risk detection
Project Scheduling:
An elementary Gantt chart or Timeline chart for the development plan is given below.
The plan explains the tasks versus the time (in weeks) they will take to complete.
Requirement
Gathering
Analysis
Design
Coding
Testing
Implement
W1 W2 W3 W4 W1 W2 W3 W4 W1 W2 W3 W4
The main point that was considered during the cost estimation of project was its sizing.
In spite of complete software sizing, function point and approximate lines of code were
also used to "size" each element of the Software and their costing.
The cost estimation done by me for Project also depend upon the baseline metrics
collected from past projects and these were used in conjunction with estimation
variables to develop cost and effort projections.
1) Effort Estimation - This refers to the total man-hours required for the development
of the project. It even includes the time required for doing documentation and user
manual.
2) Hardware Required Estimation - This includes the cost of the PCs and the
hardware cost required for development of this project.
Tools/Platform, Hardware and Software Requirement specifications:
Software Requirements:
Hardware Requirements:
There has been continuous effort to develop tools, which can ease the process of
software development. But, with the evolving trend of different programming paradigms
today’s software developers are really challenged to deal with the changing technology.
Among other issues, software re-engineering is being regarded as an important process
in the software development industry. One of the major tasks here is to understand
software systems that are already developed and to transform them to a different
software environment. Generally, this requires a lot of manual effort in going through a
program that might have been developed by another programmer. This project makes a
novel attempt to address the issued of program analysis and generation of diagrams,
which can depict the structure of a program in a better way. Today, UML is being
considered as an industrial standard for software engineering design process. It
essential provides several diagramming tools that can express different aspects/
characteristics of program such as
Use cases: Elicit requirement from users in meaningful chunks. Construction planning
is built around delivering some use cases n each interaction basis for system testing.
Class diagrams: shows static structure of concepts, types and class. Concepts how
users think about the world; type shows interfaces of software components; classes
shows implementation of software components.
Interaction diagrams: shows how several objects collaborate in single use case.
State diagram: show how single object behaves across many use cases.
Activity diagram: shows behavior with control structure. Can show many objects over
many uses, many object in single use case, or implementations methods encourage
parallel behavior, etc.
The end-product of this project is a comprehensive tool that can parse any vb.net
program and extract most of the object oriented features inherent in the program such
as polymorphism, inheritance, encapsulation and abstraction.
What is UML?
UML stands for Unified Modeling Language is the successor to the wave of
Object Oriented Analysis and Design (OOA&D) methods that appeared in the late 80’s.
It most directly unifies the methods of Booch, Rumbaugh (OMT) and Jacobson. The
UML is called a modeling language, not a method. Most methods consist at least in
principle, of both a modeling language and a process. The Modeling language is that
notation that methods used to express design.
The notation is the graphical stuff; it is the syntax of the modeling language. For
instance, class diagram notation defines how items are concepts such as class,
association, and multiplicity is represented. These are:
Class Diagram: The class diagram technique has become truly central within object-
oriented methods. Virtually every method has included some variation on this technique.
Class diagram is also subject to the greatest range of modeling concept. Although the
basic elements are needed by everyone, advanced concepts are used less often. A
class diagram describes the types of objects in the system and the various kinds of
static relationship that exist among them. There are two principal kinds of static
relationship:
Association
Subtype
Class diagram also show the attributes and operations of a class and the constraints
that apply to the way objects are connected.
Association: Association represent between instances of class. From the conceptual
perspective, association represents conceptual relations between classes. Each
association has two roles. Each role is a direction on the association. A role also has
multiplicity, which is a indication of how many object may participate in the given
relationship.
Aggregation: aggregation is the part of relationship. It is like saying a car has engine
and wheels as its parts. This sounds good, but difficult thing is considering, what is the
difference is aggregation and association.
Interaction: interaction diagrams are models that describes how groups of objects
collaboration in some behavior.
Typically, an interaction diagram captures the behavior a single use cases. The
diagram shows a number of example objects and the messages that are passed
between these objects in use cases. These are following approaches with simple use
case that exhibits the following behavior.
Objects can send a message to another. Each message is checks with given
stock item. There are two diagrams: Sequence and Collaboration diagram.
Package Diagram: One of the oldest questions in software methods is: how do you
break down a large system into smaller systems? It becomes difficult to understand and
the changes we make to them.
State diagram: State diagram are a familiar technique to describe the behavior of a
system. They describe all the possible states a particular object can get into and how
the objects state changes as a result of events that reach the objects. In most OO
technique, state diagrams are drawn for a single class to show the lifetime behavior of a
singe object. There are many form of state diagram, each with slightly different
semantics. The most popular one used in OO technique is based on David Harel’s state
chart.
PERT CHART (Program Evaluation Review Technique)
PERT chart is organized for events, activities or tasks. It is a scheduling device that
shows graphically the order of the tasks to be performed. It enables the calculation of
the critical path. The time and cost associated along a path is calculated and the path
requires the greatest amount of elapsed time in critical path.
Implementation
Write User Manual
It is also known as Bar chart is used exclusively for scheduling purpose. It is a project
controlling technique. It is used for scheduling. Budgeting and resourcing planning. A
Gantt is a bar chart with each bar representing activity. The bars are drawn against a
time line. The length of time planned for the activity. The Gantt chart in the figure shows
the Gray parts is slack time that is the latest by which a task has been finished.
1-19 MAY 10 20-3 JUNE 10 6-25 JUNE 10 26-15 JULY 10 JULY 16 AUG 31
Specification
CODE DATABASE
PART
IMPLEMENTATION
The use case model for any system consists of “use cases”. Use cases represent
different ways in which the system can be used by the user. A simple way to find all the
use case of a system is to ask the questions “What the user can do using the system?”
The use cases partition the system behavior into transactions such that each
transaction performs some useful action from the users’ point of view.
The purpose of the use case to define a piece of coherent behavior without
reveling the internal structure of the system. An use case typically represents a
sequence of interaction between the user and the system. These interactions consists
of one main line sequence is represent the normal interaction between the user and the
system. The use case model is an important analysis and design artifact (task).Use
cases can be represented by drawing a use case diagram and writing an accompany
text elaborating the drawing.
In the use case diagram each use case is represented by an ellipse with the
name of use case written inside the ellipse. All the ellipses of the system are enclosed
with in a rectangle which represents the system boundary. The name of the system
being moduled appears inside the rectangle. The different users of the system are
represented by using stick person icon. The stick person icon is normally referred to as
an Actor. The line connecting the actor and the use cases is called the communication
relationship. When a stick person icon represents an external system it is annotated by
the stereo type<<external system>>.
Dataflow Diagram:
Data flow diagram is the starting point of the design phase that functionally
decomposes the requirements specification. A DFD consists of a series of bubbles
joined by lines. The bubbles represent data transformation and the lines represent
data flows in the system. A DFD describes what data flow rather than how they are
processed, so it does not hardware, software and data structure.
The data flow diagram is a graphical description of a system’s data and how
Unlike details flow chart, DFDs don’t supply detail descriptions of modules that
graphically describe a system’s data and how the data interact with the system. Data
flow diagram number of symbols and the following symbols are of by DeMarco.
process
Data store
Source/sink
Data Flow
DeMarco &
Yourdon Gane & Sarson
symbols symbols
There are seven rules for construct a data flow diagram.
This basic DFD can be then disintegrated to a lower level diagram demonstrating
smaller steps exhibiting details of the system that is being modeled.
On a DFD, data items flow from an external data source or an internal data store to an
internal data store or an external data sink, via an internal process. It is common
practice to draw a context-level data flow diagram first, which shows the interaction
between the system and external agents, which act as data sources and data sinks. On
the context diagram (also known as the Level 0 DFD’), the system's interactions with the
outside world are modeled purely in terms of data flows across the system boundary.
The context diagram shows the entire system as a single process, and gives no clues
as to its internal organization.
This context-level DFD is next "exploded", to produce a Level 1 DFD that shows some
of the detail of the system being modeled. The Level 1 DFD shows how the system is
divided into sub-systems (processes), each of which deals with one or more of the
data flows to or from an external agent, and which together provide all of the
functionality of the system as a whole. The level 1 DFD is further spreaded and split
into more descriptive and detailed description about the project as level 2 DFD.The
level 2 DFD can be a number of data flows which will finally show the entire
description of the software project.
About ER Diagram:
E-R Model is a popular high level conceptual data model. This model and its variations
are frequently used for the conceptual design of database application and many
database design tools employ its concept.
Attributes
Relations
o Many-to-many
o Many-to-one
o One-to-many
o One-to-one
Weak entities
The entities and their relationshops between them are shown using the following
conventions.
Testing is vital for the success of any software. no system design is ever perfect. Testing is also
carried in two phases. first phase is during the software engineering that is during the module
creation. second phase is after the completion of software. this is system testing which verifies
that the whole set of programs hanged together.
In this technique, the close examination of the logical parts through the software are tested by
cases that exercise species sets of conditions or loops. all logical parts of the software checked
once. errors that can be corrected using this technique are typographical errors, logical
expressions which should be executed once may be getting executed more than once and error
resulting by using wrong controls and loops. When the box testing tests all the independent part
within a module a logical decisions on their true and the false side are exercised , all loops and
bounds within their operational bounds were exercised and internal data structure to ensure
their validity were exercised once.
This method enables the software engineer to device sets of input techniques that fully exercise
all functional requirements for a program. black box testing tests the input, the output and the
external data. it checks whether the input data is correct and whether we are getting the desired
output.
Alpha Testing:
Acceptance testing is also sometimes called alpha testing. Be spoke systems are developed for
a single customer. The alpha testing proceeds until the system developer and the customer
agree that the provided system is an acceptable implementation of the system requirements.
Beta Testing:
On the other hand, when a system isto be marked as a software product, another process
called beta testing is often conducted. During beta testing, a system is delivered among a
number of potential users who agree to use it. The customers then report problems to the
developers. This provides the product for real use and detects errors which may not have been
anticipated by the system developers.
Unit Testing:
Integration Testing:
Integration testing aims at constructing the program structure while at the same constructing
tests to uncover errors associated with interfacing the modules. modules are integrated by using
the top down approach.
Validation Testing:
Validation testing was performed to ensure that all the functional and performance requirements
are met.
System Testing:
It is executing programs to check logical changes made in it with intention of finding errors. a
system is tested for online response, volume of transaction, recovery from failure etc. System
testing is done to ensure that the system satisfies all the user requirements.
Implementation and Software Specification Testings
This phase of the systems development life cycle refines hardware and software specifications,
establishes programming plans, trains users and implements extensive testing procedures, to
evaluate design and operating specifications and/or provide the basis for further modification.
Technical Design
This activity builds upon specifications produced during new system design, adding detailed
technical specifications and documentation.
This activity prepares detailed test specifications for individual modules and programs, job
streams, subsystems, and for the system as a whole.
This activity encompasses actual development, writing, and testing of program units or modules.
User Training
This activity encompasses writing user procedure manuals, preparation of user training
materials, conducting training programs, and testing procedures.
Acceptance Test
A final procedural review to demonstrate a system and secure user approval before a system
becomes operational.
Installation Phase
In this phase the new Computerized system is installed, the conversion to new procedures is
fully implemented, and the potential of the new system is explored.
System Installation
The process of starting the actual use of a system and training user personnel in its operation.
Review Phase
This phase evaluates the successes and failures during a systems development project, and to
measure the results of a new Computerized Transystem in terms of benefits and savings
projected at the start of the project.
Development Recap
A review of a project immediately after completion to find successes and potential problems in
future work.
Post-Implementation Review
A review, conducted after a new system has been in operation for some time, to evaluate actual
system performance against original expectations and projections for cost-benefit
improvements. Also identifies maintenance projects to enhance or improve the system.
The unit testing done included the testing of the following items:
After completing the Unit testing of all the modules, the whole system is integrated with all its
dependencies in that module. While System Integration, We integrated the modules one by one
and tested the system at each step. This helped in reduction of errors at the time of the system
testing.
The System Testing done included the testing of the following items:
After the completion of system testing, the next following phase was the Acceptance Testing.
Clients at their end did this and accepted the system with appreciation. Thus, we reached the
final phase of the project delivery.
There are other six tests, which fall under special category. They are described below:
Peak Load Test: It determines whether the system will handle the volume of activities that
occur when the system is at the peak of its processing demand. For example, test the
system by activating all terminals at the same time.
Storage Testing: It determines the capacity of the system to store transaction data on a disk
or in other files.
Performance Time Testing: it determines the length of time system used by the system to
process transaction data. This test is conducted prior to implementation to determine how
long it takes to get a response to an inquiry, make a backup copy of a file, or send a
transmission and get a response.
Recovery Testing: This testing determines the ability of user to recover data or re-start
system after failure. For example, load backup copy of data and resume processing without
data or integrity loss.
Procedure Testing: It determines the clarity of documentation on operation and uses of
system by having users do exactly what manuals request. For example, powering down
system at the end of week or responding to paper-out light on printer.
Human Factors Testing: It determines how users will use the system when processing data
or preparing reports.
System Analysis:
This is normally represented as the data about data. It is also termed as metadata
some times which gives the data about the data stored in the database. It defines each
data term encountered during the analysis and design of a new system. Data elements
can describe files or the processes.
= equivalent to
+ and
[] either/ or
() Optional entry
Following are some rules, which defines the construction of data dictionary
entries:
1. Words should be defined to understand for what they need and not the
variable need by which they may be described in the program .
2. Each word must be unique. We cannot have two definition of the same
client.
3. Aliases or synonyms are allowed when two or more enters shows the same
meaning. For example a vendor number may also be called as customer
number.
4. A self-defining word should not be decomposed. It means that the reduction
of any information in to subpart should be done only if it is really required
that is it is not easy to understand directly.
Data dictionary includes information such as the number of records in file, the
frequency a process will run, security factor like pass word which user must enter
to get excess to the information.
Screenshot of the Project
Online Food Ordering
System
Code of the Project Online
Food Ordering System
Coding for Affiliate.php
<?php
class Affiliate {
private $affiliate_id;
private $firstname;
private $lastname;
private $email;
private $telephone;
private $fax;
private $code;
$this->config = $registry->get('config');
$this->db = $registry->get('db');
$this->request = $registry->get('request');
$this->session = $registry->get('session');
if (isset($this->session->data['affiliate_id'])) {
if ($affiliate_query->num_rows) {
$this->affiliate_id = $affiliate_query->row['affiliate_id'];
$this->firstname = $affiliate_query->row['firstname'];
$this->lastname = $affiliate_query->row['lastname'];
$this->email = $affiliate_query->row['email'];
$this->telephone = $affiliate_query->row['telephone'];
$this->fax = $affiliate_query->row['fax'];
$this->code = $affiliate_query->row['code'];
} else {
$this->logout();
if ($affiliate_query->num_rows) {
$this->session->data['affiliate_id'] = $affiliate_query->row['affiliate_id'];
$this->affiliate_id = $affiliate_query->row['affiliate_id'];
$this->firstname = $affiliate_query->row['firstname'];
$this->lastname = $affiliate_query->row['lastname'];
$this->email = $affiliate_query->row['email'];
$this->telephone = $affiliate_query->row['telephone'];
$this->fax = $affiliate_query->row['fax'];
$this->code = $affiliate_query->row['code'];
return true;
} else {
return false;
unset($this->session->data['affiliate_id']);
$this->affiliate_id = '';
$this->firstname = '';
$this->lastname = '';
$this->email = '';
$this->telephone = '';
$this->fax = '';
{ return $this-
>affiliate_id;
}
public function getId() {
return $this->affiliate_id;
return $this->firstname;
return $this->lastname;
{ return $this-
>email;
{ return $this-
>telephone;
return $this->fax;
}
public function getCode() {
return $this->code;}
<?php
class Amazon {
private $token;
private $enc1;
private $enc2;
private $registry;
$this->registry = $registry;
$this->token = $this->config->get('openbay_amazon_token');
$this->enc1 = $this->config->get('openbay_amazon_enc_string1');
$this->enc2 = $this->config->get('openbay_amazon_enc_string2');
return $this->registry->get($name);
if ($is_json) {
$arg_string = json_encode($data);
} else {
$arg_string = $data;
$crypt = $this->encryptArgs($arg_string);
$defaults = array(
CURLOPT_POST => 1,
CURLOPT_HEADER => 0,
CURLOPT_FRESH_CONNECT => 1,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_FORBID_REUSE => 1,
CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_SSL_VERIFYHOST => 0,
);
$ch = curl_init();
curl_setopt_array($ch, $defaults);
$response = curl_exec($ch);
curl_close($ch);
return $response;
if ($is_json) {
$arg_string = json_encode($data);
} else {
$arg_string = $data;
$crypt = $this->encryptArgs($arg_string);
$defaults = array(
CURLOPT_POST => 1,
CURLOPT_HEADER => 0,
CURLOPT_FRESH_CONNECT => 1,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_FORBID_REUSE => 1,
CURLOPT_TIMEOUT => 2,
CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_SSL_VERIFYHOST => 0,
);
$ch = curl_init();
curl_setopt_array($ch, $defaults);
curl_exec($ch);
curl_close($ch);
return $crypt;
if ($is_base_64) {
if (!$crypt) {
return false;
}
}
return $data;
return $this->url;
if ($this->config->get('openbay_amazon_status') != 1) {
return;
if (!defined('HTTPS_CATALOG')) {
$this->load->model('openbay/amazon_order');
$amazon_order_id = $this->model_openbay_amazon_order-
>getAmazonOrderId($order_id);
$this->load->library('log');
if ($this->openbay->addonLoad('openstock')) {
$os_products = $this->osProducts($order_id);
$logger->write(print_r($os_products, true));
$quantity_data = array();
$amazon_sku_rows = $this->getLinkedSkus($os_product['pid'],
$os_product['var']);
foreach($amazon_sku_rows as $amazon_sku_row) {
$quantity_data[$amazon_sku_row['amazon_sku']] =
$os_product['qty_left'];
if(!empty($quantity_data)) {
$this->updateQuantities($quantity_data);
} else {
} else {
$ordered_products = $this->getOrderdProducts($order_id);
$ordered_product_ids = array();
foreach($ordered_products as $ordered_product) {
$ordered_product_ids[] = $ordered_product['product_id'];
$this->putStockUpdateBulk($ordered_product_ids);
$logger->write('addOrder() exiting');
$quantity_data = array();
foreach($data['product_option_stock'] as $opt_stock) {
$amazon_sku_rows = $this->getLinkedSkus($product_id,
$opt_stock['var']);
foreach($amazon_sku_rows as $amazon_sku_row) {
$quantity_data[$amazon_sku_row['amazon_sku']] =
$opt_stock['stock'];
if(!empty($quantity_data)) {
} else {
} else {
$this->putStockUpdateBulk(array($product_id));
$logger->write('productUpdateListen() exiting');
if ($this->config->get('openbay_amazon_status') != 1 || !defined('HTTPS_CATALOG')) {
return;
$this->load->model('openbay/amazon');
$request = array(
);
foreach ($orders as $order) {
$amazon_order = $this->getOrder($order['order_id']);
$amazon_order_products = $this->model_openbay_amazon-
>getAmazonOrderedProducts($order['order_id']);
$products = array();
$products[] = array(
'amazon_order_item_id' =>
$amazon_order_product['amazon_order_item_id'],
);
$order_info = array(
);
if ($order['carrier_from_list']) {
$order_info['carrier_id'] = $order['carrier'];
} else {
$order_info['carrier_name'] = $order['carrier'];
}
$order_info['tracking'] = $order['tracking'];
$request['orders'][] = $order_info;
if ($this->config->get('openbay_amazon_status') != 1) {
return;
if (!defined('HTTPS_CATALOG')) {
return;
}
$amazon_order = $this->getOrder($order_id);
if(!$amazon_order) {
return;
$amazon_order_id = $amazon_order['amazon_order_id'];
$this->load->model('openbay/amazon');
$amazon_order_products = $this->model_openbay_amazon-
>getAmazonOrderedProducts($order_id);
$request_node->addChild('AmazonOrderId', $amazon_order_id);
$request_node->addChild('Status', $order_status_string);
if(!empty($courier_id)) {
if($courier_from_list) {
$request_node->addChild('CourierId', $courier_id);
} else {
$request_node->addChild('CourierOther', $courier_id);
}
$request_node->addChild('TrackingNo', $tracking_no);
$order_items_node = $request_node->addChild('OrderItems');
$new_order_item = $order_items_node->addChild('OrderItem');
$new_order_item->addChild('ItemId',
htmlspecialchars($product['amazon_order_item_id']));
$new_order_item->addChild('Quantity', (int)$product['quantity']);
$doc->preserveWhiteSpace = false;
$doc->loadXML($request_node->asXML());
$doc->formatOutput = true;
$this->model_openbay_amazon->updateAmazonOrderTracking($order_id, $courier_id,
$courier_from_list, !empty($courier_id) ? $tracking_no : '');
if(isset($result)) {
return (array)json_decode($result);
} else {
return array();
if(isset($result)) {
return (array)json_decode($result);
} else {
return array();
if(isset($result)) {
return (array)json_decode($result);
} else {
return array();
}
public function updateQuantities($data) {
if(isset($result)) {
return (array)json_decode($result);
} else {
return array();
if(isset($result)) {
return $result;
} else {
return false;
$this->load->library('log');
$quantity_data = array();
foreach($product_id_array as $product_id) {
$amazon_rows = $this->getLinkedSkus($product_id);
foreach($amazon_rows as $amazon_row) {
if(!empty($product_row)) {
$quantity_data[$amazon_row['amazon_sku']] = 0;
} else {
$quantity_data[$amazon_row['amazon_sku']] =
$product_row['quantity'];
if(!empty($quantity_data)) {
$response = $this->updateQuantities($quantity_data);
} else {
$pass_array = array();
if (!empty($product_query->row)) {
$product_option_query = $this->db->query("
SELECT `oo`.`product_option_value_id`
ORDER BY `oo`.`order_option_id`
ASC");
if ($product_option_query->num_rows != 0) {
$p_options = array();
foreach ($product_option_query->rows as
$p_option_row) {
$p_options[] =
$p_option_row['product_option_value_id'];
if(empty($quantity_left_row)) {
$quantity_left_row['stock'] = 0;
} else {
return $pass_array;
if($this->config->get('openbay_amazon_status') != 0 &&
$this->config->get('openbay_amazon_enc_string2') != ''){
return true;
}else{
return false;
}
public function orderDelete($order_id){
/**
* @todo
*/
return $qry->row;
}else{
return false;
return array(
"Blue Package",
"Canada Post",
"City Link",
"DHL",
"Fastway",
"FedEx",
"FedEx SmartPost",
"GLS",
"GO!",
"Newgistics",
"NipponExpress",
"OSM",
"OnTrac",
"Parcelforce",
"Royal Mail",
"SagawaExpress",
"Streamlite",
"TNT",
"Target",
"UPS",
"USPS",
"YamatoTransport",
);
$simplexml = null;
libxml_use_internal_errors(true);
return false;
$category = (string)$simplexml->filename;
$tabs = array();
foreach($simplexml->tabs->tab as $tab) {
$attributes = $tab->attributes();
$tabs[] = array(
);
$fields = array();
$attributes = $field->attributes();
$fields[] = array(
);
$attributes = $field->attributes();
$fields[] = array(
);
usort($fields, array('Amazon','compareFields'));
return array(
);
if($field1['order'] == $field2['order']) {
return -1;
return 1;
} else {
class Amazonus {
private $token;
private $enc1;
private $enc2;
private $registry;
$this->registry = $registry;
$this->token = $this->config->get('openbay_amazonus_token');
$this->enc1 = $this->config->get('openbay_amazonus_enc_string1');
$this->enc2 = $this->config->get('openbay_amazonus_enc_string2');
return $this->registry->get($name);
if ($is_json) {
$arg_string = json_encode($data);
} else {
$arg_string = $data;
$crypt = $this->encryptArgs($arg_string);
$defaults = array(
CURLOPT_POST => 1,
CURLOPT_HEADER => 0,
CURLOPT_FRESH_CONNECT => 1,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_FORBID_REUSE => 1,
CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_SSL_VERIFYHOST => 0,
);
$ch = curl_init();
curl_setopt_array($ch, $defaults);
$response = curl_exec($ch);
curl_close($ch);
return $response;
if ($is_json) {
$arg_string = json_encode($data);
} else {
$arg_string = $data;
$crypt = $this->encryptArgs($arg_string);
$defaults = array(
CURLOPT_POST => 1,
CURLOPT_HEADER => 0,
CURLOPT_FRESH_CONNECT => 1,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_FORBID_REUSE => 1,
CURLOPT_TIMEOUT => 2,
CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_SSL_VERIFYHOST => 0,
$ch = curl_init();
curl_setopt_array($ch, $defaults);
curl_exec($ch);
curl_close($ch);
return $crypt;
if ($is_base_64) {
if (!$crypt) {
return false;
}
$token = $this->openbay->pbkdf2($this->enc1, $this->enc2, 1000, 32);
return $data;
return $this->url;
if ($this->config->get('openbay_amazonus_status') != 1) {
return;
if (!defined('HTTPS_CATALOG')) {
$this->load->model('openbay/amazonus_order');
$amazonus_order_id = $this->model_openbay_amazonus_order-
>getAmazonusOrderId($order_id);
$this->load->library('log');
$os_products = $this->osProducts($order_id);
$logger->write(print_r($os_products, true));
$quantity_data = array();
$amazonus_sku_rows = $this-
>getLinkedSkus($os_product['pid'], $os_product['var']);
foreach($amazonus_sku_rows as $amazonus_sku_row) {
$quantity_data[$amazonus_sku_row['amazonus_sku']]
= $os_product['qty_left'];
if(!empty($quantity_data)) {
$this->updateQuantities($quantity_data);
} else {
} else {
$ordered_products = $this->getOrderdProducts($order_id);
$ordered_product_ids = array();
foreach($ordered_products as $ordered_product) {
$ordered_product_ids[] = $ordered_product['product_id'];
}
$this->putStockUpdateBulk($ordered_product_ids);
$logger->write('addOrder() exiting');
$quantity_data = array();
foreach($data['product_option_stock'] as $opt_stock) {
$amazonus_sku_rows = $this->getLinkedSkus($product_id,
$opt_stock['var']);
foreach($amazonus_sku_rows as $amazonus_sku_row) {
$quantity_data[$amazonus_sku_row['amazonus_sku']] =
$opt_stock['stock'];
if(!empty($quantity_data)) {
$this->updateQuantities($quantity_data);
} else {
$logger->write('No quantity data need to be posted.');
} else {
$this->putStockUpdateBulk(array($product_id));
$logger->write('productUpdateListen() exiting');
if ($this->config->get('openbay_amazonus_status') != 1 || !defined('HTTPS_CATALOG'))
{
return;
$this->load->model('openbay/amazonus');
$request = array(
);
$amazon_order = $this->getOrder($order['order_id']);
$amazon_order_products = $this->model_openbay_amazonus-
>getAmazonusOrderedProducts($order['order_id']);
$products = array();
$products[] = array(
'amazon_order_item_id' =>
$amazon_order_product['amazonus_order_item_id'],
);
$order_info = array(
);
if ($order['carrier_from_list']) {
$order_info['carrier_id'] = $order['carrier'];
} else {
$order_info['carrier_name'] = $order['carrier'];
}
$order_info['tracking'] = $order['tracking'];
$request['orders'][] = $order_info;
if ($this->config->get('openbay_amazonus_status') != 1) {
return;
if (!defined('HTTPS_CATALOG')) {
return;
$amazonus_order = $this->getOrder($order_id);
if(!$amazonus_order) {
return;
$amazonus_order_id = $amazonus_order['amazonus_order_id'];
$this->load->model('openbay/amazonus');
$amazonus_order_products = $this->model_openbay_amazonus-
>getAmazonusOrderedProducts($order_id);
$request_node->addChild('AmazonusOrderId', $amazonus_order_id);
$request_node->addChild('Status', $order_status_string);
if(!empty($courier_id)) {
if($courier_from_list) {
$request_node->addChild('CourierId', $courier_id);
} else {
$request_node->addChild('CourierOther', $courier_id);
$request_node->addChild('TrackingNo', $tracking_no);
}
$order_items_node = $request_node->addChild('OrderItems');
$new_order_item = $order_items_node->addChild('OrderItem');
$new_order_item->addChild('ItemId',
htmlspecialchars($product['amazonus_order_item_id']));
$new_order_item->addChild('Quantity', (int)$product['quantity']);
$doc->preserveWhiteSpace = false;
$doc->loadXML($request_node->asXML());
$doc->formatOutput = true;
$this->model_openbay_amazonus->updateAmazonusOrderTracking($order_id,
$courier_id, $courier_from_list, !empty($courier_id) ? $tracking_no : '');
$result = $this->call("productv2/RequestTemplateList");
if(isset($result)) {
return (array)json_decode($result);
} else {
return array();
if(isset($result)) {
return (array)json_decode($result);
} else {
return array();
if(isset($result)) {
return (array)json_decode($result);
} else {
return array();
if(isset($result)) {
return (array)json_decode($result);
} else {
return array();
if(isset($result)) {
return $result;
} else {
return false;
$this->load->library('log');
$quantity_data = array();
foreach($product_id_array as $product_id) {
$amazonus_rows = $this->getLinkedSkus($product_id);
foreach($amazonus_rows as $amazonus_row) {
$product_row = $this->db->query("SELECT quantity, status FROM `" .
DB_PREFIX . "product` WHERE `product_id` = '" . (int)$product_id . "'")->row;
if(!empty($product_row)) {
$quantity_data[$amazonus_row['amazonus_sku']] = 0;
} else {
$quantity_data[$amazonus_row['amazonus_sku']] =
$product_row['quantity'];
if(!empty($quantity_data)) {
$response = $this->updateQuantities($quantity_data);
} else {
}
public function getOrderdProducts($order_id) {
$pass_array = array();
if (!empty($product_query->row)) {
$product_option_query = $this->db->query("
SELECT `oo`.`product_option_value_id`
ORDER BY `oo`.`order_option_id`
ASC");
if ($product_option_query->num_rows != 0) {
$p_options = array();
foreach ($product_option_query->rows as
$p_option_row) {
$p_options[] =
$p_option_row['product_option_value_id'];
if(empty($quantity_left_row)) {
$quantity_left_row['stock'] = 0;
} else {
}
}
return $pass_array;
if($this->config->get('openbay_amazonus_status') != 0 &&
$this->config->get('openbay_amazonus_enc_string2') != ''){
return true;
}else{
return false;
/**
* @todo
*/
}
public function getOrder($order_id) {
return $qry->row;
}else{
return false;
return array(
"Blue Package",
"Canada Post",
"City Link",
"DHL",
"Fastway",
"FedEx",
"FedEx SmartPost",
"GLS",
"GO!",
"Newgistics",
"NipponExpress",
"OSM",
"OnTrac",
"Parcelforce",
"Royal Mail",
"SagawaExpress",
"Streamlite",
"TNT",
"Target",
"UPS",
"USPS",
"YamatoTransport",
);
$simplexml = null;
libxml_use_internal_errors(true);
return false;
$category = (string)$simplexml->filename;
$tabs = array();
foreach($simplexml->tabs->tab as $tab) {
$attributes = $tab->attributes();
$tabs[] = array(
);
$fields = array();
$attributes = $field->attributes();
$fields[] = array(
);
}
$attributes = $field->attributes();
$fields[] = array(
);
$fields[$index]['unordered_index'] = $index;
usort($fields, array('Amazonus','compareFields'));
return array(
);
if($field1['order'] == $field2['order']) {
return -1;
return 1;
} else {
<?php
class Cart {
private $config;
private $db;
$this->config = $registry->get('config');
$this->customer = $registry->get('customer');
$this->session = $registry->get('session');
$this->db = $registry->get('db');
$this->tax = $registry->get('tax');
$this->weight = $registry->get('weight');
if (!isset($this->session->data['cart']) || !is_array($this->session->data['cart'])) {
$this->session->data['cart'] = array();
if (!$this->data) {
$product = unserialize(base64_decode($key));
$product_id = $product['product_id'];
$stock = true;
// Options
if (!empty($product['option'])) {
$options = $product['option'];
} else {
$options = array();
// Profile
if (!empty($product['recurring_id'])) {
$recurring_id = $product['recurring_id'];
} else {
$recurring_id = 0;
if ($product_query->num_rows) {
$option_price = 0;
$option_points = 0;
$option_weight = 0;
$option_data = array();
$option_query = $this->db->query("SELECT
po.product_option_id, po.option_id, od.name, o.type FROM " . DB_PREFIX . "product_option po LEFT
JOIN `" . DB_PREFIX . "option` o ON (po.option_id = o.option_id) LEFT JOIN " . DB_PREFIX .
"option_description od ON (o.option_id = od.option_id) WHERE po.product_option_id = '" .
(int)$product_option_id . "' AND po.product_id = '" . (int)$product_id . "' AND od.language_id = '" .
(int)$this->config->get('config_language_id') . "'");
if ($option_query->num_rows) {
if ($option_query->row['type'] == 'select' ||
$option_query->row['type'] == 'radio' || $option_query->row['type'] == 'image') {
$option_value_query = $this->db-
>query("SELECT pov.option_value_id, ovd.name, pov.quantity, pov.subtract, pov.price, pov.price_prefix,
pov.points, pov.points_prefix, pov.weight, pov.weight_prefix FROM " . DB_PREFIX .
"product_option_value pov LEFT JOIN " . DB_PREFIX . "option_value ov ON (pov.option_value_id =
ov.option_value_id) LEFT JOIN " . DB_PREFIX . "option_value_description ovd ON (ov.option_value_id =
ovd.option_value_id) WHERE pov.product_option_value_id = '" . (int)$value . "' AND
pov.product_option_id = '" . (int)$product_option_id . "' AND ovd.language_id = '" . (int)$this->config-
>get('config_language_id') . "'");
if ($option_value_query->num_rows) {
if ($option_value_query-
>row['price_prefix'] == '+') {
$option_price +=
$option_value_query->row['price'];
} elseif ($option_value_query-
>row['price_prefix'] == '-') {
$option_price -=
$option_value_query->row['price'];
if ($option_value_query-
>row['points_prefix'] == '+') {
$option_points +=
$option_value_query->row['points'];
} elseif ($option_value_query-
>row['points_prefix'] == '-') {
$option_points -=
$option_value_query->row['points'];
if ($option_value_query-
>row['weight_prefix'] == '+') {
$option_weight +=
$option_value_query->row['weight'];
} elseif ($option_value_query-
>row['weight_prefix'] == '-') {
$option_weight -=
$option_value_query->row['weight'];
if ($option_value_query-
>row['subtract'] && (!$option_value_query->row['quantity'] || ($option_value_query->row['quantity'] <
$quantity))) {
$stock = false;
$option_data[] = array(
'product_option_id'
=> $product_option_id,
'option_id' =>
$option_query->row['option_id'],
'option_value_id'
=> $option_value_query->row['option_value_id'],
'name' =>
$option_query->row['name'],
'value' =>
$option_value_query->row['name'],
'type' =>
$option_query->row['type'],
'quantity' =>
$option_value_query->row['quantity'],
'subtract' =>
$option_value_query->row['subtract'],
'price' =>
$option_value_query->row['price'],
'price_prefix' =>
$option_value_query->row['price_prefix'],
'points' =>
$option_value_query->row['points'],
'points_prefix' =>
$option_value_query->row['points_prefix'],
'weight' =>
$option_value_query->row['weight'],
'weight_prefix' =>
$option_value_query->row['weight_prefix']
);
} elseif ($option_query->row['type'] ==
'checkbox' && is_array($value)) {
foreach ($value as
$product_option_value_id) {
$option_value_query = $this-
>db->query("SELECT pov.option_value_id, ovd.name, pov.quantity, pov.subtract, pov.price,
pov.price_prefix, pov.points, pov.points_prefix, pov.weight, pov.weight_prefix FROM " . DB_PREFIX .
"product_option_value pov LEFT JOIN " . DB_PREFIX . "option_value ov ON (pov.option_value_id =
ov.option_value_id) LEFT JOIN " . DB_PREFIX . "option_value_description ovd ON (ov.option_value_id =
ovd.option_value_id) WHERE pov.product_option_value_id = '" . (int)$product_option_value_id . "' AND
pov.product_option_id = '" . (int)$product_option_id . "' AND ovd.language_id = '" . (int)$this->config-
>get('config_language_id') . "'");
if ($option_value_query-
>num_rows) {
if
($option_value_query->row['price_prefix'] == '+') {
$option_price
+= $option_value_query->row['price'];
} elseif
($option_value_query->row['price_prefix'] == '-') {
$option_price -
= $option_value_query->row['price'];
if
($option_value_query->row['points_prefix'] == '+') {
$option_points
+= $option_value_query->row['points'];
} elseif
($option_value_query->row['points_prefix'] == '-') {
$option_points
-= $option_value_query->row['points'];
if
($option_value_query->row['weight_prefix'] == '+') {
$option_weight
+= $option_value_query->row['weight'];
} elseif
($option_value_query->row['weight_prefix'] == '-') {
$option_weight
-= $option_value_query->row['weight'];
if
($option_value_query->row['subtract'] && (!$option_value_query->row['quantity'] ||
($option_value_query->row['quantity'] < $quantity))) {
$stock = false;
$option_data[] = array(
'option_id'
=> $option_query->row['option_id'],
'name'
=> $option_query->row['name'],
'value'
=> $option_value_query->row['name'],
'type'
=> $option_query->row['type'],
'quantity'
=> $option_value_query->row['quantity'],
'subtract'
=> $option_value_query->row['subtract'],
'price'
=> $option_value_query->row['price'],
'price_prefix'
=> $option_value_query->row['price_prefix'],
'points'
=> $option_value_query->row['points'],
'points_prefix'
=> $option_value_query->row['points_prefix'],
'weight'
=> $option_value_query->row['weight'],
'weight_prefix'
=> $option_value_query->row['weight_prefix']
);
$option_data[] = array(
'product_option_id' =>
$product_option_id,
'option_id' =>
$option_query->row['option_id'],
'name' =>
$option_query->row['name'],
'type' =>
$option_query->row['type'],
'quantity' => '',
);
$price = $product_query->row['price'];
// Product Discounts
$discount_quantity = 0;
$product_2 =
(array)unserialize(base64_decode($key_2));
if ($product_2['product_id'] == $product_id) {
$discount_quantity += $quantity_2;
}
$product_discount_query = $this->db->query("SELECT price
FROM " . DB_PREFIX . "product_discount WHERE product_id = '" . (int)$product_id . "' AND
customer_group_id = '" . (int)$this->config->get('config_customer_group_id') . "' AND quantity <= '" .
(int)$discount_quantity . "' AND ((date_start = '0000-00-00' OR date_start < NOW()) AND (date_end =
'0000-00-00' OR date_end > NOW())) ORDER BY quantity DESC, priority ASC, price ASC LIMIT 1");
if ($product_discount_query->num_rows) {
$price = $product_discount_query->row['price'];
// Product Specials
if ($product_special_query->num_rows) {
$price = $product_special_query->row['price'];
// Reward Points
if ($product_reward_query->num_rows) {
$reward = $product_reward_query->row['points'];
} else {
$reward = 0;
// Downloads
$download_data = array();
$download_data[] = array(
);
// Stock
if (!$product_query->row['quantity'] || ($product_query-
>row['quantity'] < $quantity)) {
$stock = false;
}
$recurring_query = $this->db->query("SELECT * FROM `" .
DB_PREFIX . "recurring` `p` JOIN `" . DB_PREFIX . "product_recurring` `pp` ON `pp`.`recurring_id` =
`p`.`recurring_id` AND `pp`.`product_id` = " . (int)$product_query->row['product_id'] . " JOIN `" .
DB_PREFIX . "recurring_description` `pd` ON `pd`.`recurring_id` = `p`.`recurring_id` AND
`pd`.`language_id` = " . (int)$this->config->get('config_language_id') . " WHERE `pp`.`recurring_id` = " .
(int)$recurring_id . " AND `status` = 1 AND `pp`.`customer_group_id` = " . (int)$this->config-
>get('config_customer_group_id'));
if ($recurring_query->num_rows) {
$recurring = array(
);
} else {
$recurring = false;
$this->data[$key] = array(
);
} else {
$this->remove($key);
return $this->data;
$recurring_products = array();
if ($value['recurring']) {
$recurring_products[$key] = $value;
return $recurring_products;
}
$this->data = array();
$product['product_id'] = (int)$product_id;
if ($option) {
$product['option'] = $option;
if ($recurring_id) {
$product['recurring_id'] = (int)$recurring_id;
$key = base64_encode(serialize($product));
if (!isset($this->session->data['cart'][$key])) {
$this->session->data['cart'][$key] = (int)$qty;
} else {
$this->session->data['cart'][$key] += (int)$qty;
}
public function update($key, $qty) {
$this->data = array();
$this->session->data['cart'][$key] = (int)$qty;
} else {
$this->remove($key);
$this->data = array();
unset($this->session->data['cart'][$key]);
$this->data = array();
$this->session->data['cart'] = array();
$weight = 0;
foreach ($this->getProducts() as $product) {
if ($product['shipping']) {
$weight += $this->weight->convert($product['weight'],
$product['weight_class_id'], $this->config->get('config_weight_class_id'));
return $weight;
$total = 0;
$total += $product['total'];
return $total;
$tax_data = array();
if ($product['tax_class_id']) {
$tax_rates = $this->tax->getRates($product['price'],
$product['tax_class_id']);
if (!isset($tax_data[$tax_rate['tax_rate_id']])) {
$tax_data[$tax_rate['tax_rate_id']] =
($tax_rate['amount'] * $product['quantity']);
} else {
$tax_data[$tax_rate['tax_rate_id']] +=
($tax_rate['amount'] * $product['quantity']);
return $tax_data;
$total = 0;
return $total;
}
$product_total = 0;
$products = $this->getProducts();
$product_total += $product['quantity'];
return $product_total;
return count($this->session->data['cart']);
return count($this->getRecurringProducts());
$stock = true;
foreach ($this->getProducts() as $product) {
if (!$product['stock']) {
$stock = false;
return $stock;
$shipping = false;
if ($product['shipping']) {
$shipping = true;
break;
return $shipping;
$download = false;
foreach ($this->getProducts() as $product) {
if ($product['download']) {
$download = true;
break;
return $download;
}
Conclusion of the Project Online Food Ordering System:
Our project is only a humble venture to satisfy the needs to manage their project
work. Several user friendly coding have also adopted. This package shall prove to be a
powerful package in satisfying all the requirements of the school. The objective of
software planning is to provide a frame work that enables the manger to make
reasonable estimates made within a limited time frame at the beginning of the software
project and should be updated regularly as the project progresses.
A description of the background and context of the project and its relation to work
already done in the area.
Made statement of the aims and objectives of the project.
The description of Purpose, Scope, and applicability.
We define the problem on which we are working in the project.
We describe the requirement Specifications of the system and the actions that
can be done on these things.
We understand the problem domain and produce a model of the system, which
describes operations that can be performed on the system.
We included features and operations in detail, including screen layouts.
We designed user interface and security issues related to system.
Finally the system is implemented and tested according to test cases.
Future Scope of the Project:
In a nutshell, it can be summarized that the future scope of the project circles
around maintaining information regarding:
The above mentioned points are the enhancements which can be done to increase
the applicability and usage of this project. Here we can maintain the records of Food
Item and Category. Also, as it can be seen that now-a-days the players are versatile,
i.e. so there is a scope for introducing a method to maintain the Online Food Ordering
System. Enhancements can be done to maintain all the Food Item, Category,
Customer, Order, Confirm Order.
We have left all the options open so that if there is any other future requirement
in the system by the user for the enhancement of the system then it is possible to
implement them.In the last we would like to thanks all the persons involved in the
development of the system directly or indirectly. We hope that the project will serve its
purpose for which it is develop there by underlining success of process.
Limitation of Project on Online Food Ordering System
Although I have put my best efforts to make the software flexible, easy to operate
but limitations cannot be ruled out even by me. Though the software presents a broad
range of options to its users some intricate options could not be covered into it; partly
because of logistic and partly due to lack of sophistication. Paucity of time was also
major constraint, thus it was not possible to make the software foolproof and dynamic.
Lack of time also compelled me to ignore some part such as storing old result of the
candidate etc.
Considerable efforts have made the software easy to operate even for the people
not related to the field of computers but it is acknowledged that a layman may find it a
bit problematic at the first instance. The user is provided help at each step for his
convenience in working with the software.
Excel export has not been developed for Food Item, Category due to some
criticality.
The transactions are executed in off-line mode, hence on-line data for Customer,
Order capture and modification is not possible.
Off-line reports of Food Item, Confirm Order, Customer cannot be generated due to
batch mode execution.
References and Bibliography:
Google for problem solving
http://www.javaworld.com/javaworld/jw-01-1998/jw-01-Credentialreview.html
Database Programming with JDBC and Java by O'Reilly
Head First Java 2nd Edition
http://www.jdbc-tutorial.com/
Java and Software Design Concepts by Apress
https://www.tutorialspoint.com/java/
http://www.javatpoint.com/java-tutorial
https://docs.oracle.com/javase/tutorial/
http://www.wampserver.com/en/
http://www.JSP.net/
http://www.tutorialspoint.com/mysql/
httpd.apache.org/docs/2.0/misc/tutorials.html