Rien Cakes and Pastries Chapt 1-4 Maam Galos Proff CHECK FINAL

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 139

COLLEGE CAVITE

AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Web-Based Online Bakery Management System Project


for Rein Cakes and Pastries Shop

CAPSTONE PROJECT PRESENT TO THE FACULTY MEMBERS


OF
AMA COMPUTER COLLEGE CAVITE

In Partial Fulfillment of the Requirements of the Degree of


Bachelor of Science in Information Technology (BSIT)

CAPSTONE PROJECT GROUP


ARMADO DARWIN V.
AGUIRRE JAN LUIS A.
DE VILLA JOHN VINCENT B.

SEPTEMBER 2023
APPROVAL SHEET
1
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

This Capstone project paper entitled “Web Based Online


Bakery Management System Project for Rein Cakes and Pastries
Shop” prepared and submitted by Darwin Armado, Jan Luis Aguirre,
and John Vincent De Villa in partial requirement fulfillment of the course
requirement for the Degree of Science in Information Technology, has
been examined and recommended for acceptance and approval for Oral
Examination.
Diarecson Antonio Rivera
ADVISER

Approved by Committee of Oral Examination on (DATE) with the grade of


_________

______________________
CHAIRMAN, CAPSTONE
COMMITTE

______________________ _______________________

MEMBER MEMBER

Accepted as partial
fulfillment of the course requirements of the degree
in Bachelor of Science in Information Technology

Diarecson Antonio Rivera


School Director
AMA COMPUTER COLLEGE CAVITE

ACKNOWLEDGEMENTS
2
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

The Proponents would like to express the deepest gratitude and


immeasurable appreciation for the help and support of the following individuals
and organizations:

First and foremost, we thank the Lord Jesus Christ, For Giving First and
foremost, we thank the Lord Jesus Christ, for giving us the strength, knowledge,
patience, and wisdom to explore things, and for giving us the determination to
pursue and make this study possible and successful.

Words cannot express our gratitude to our advisers for their invaluable
patience and feedback. We would also want to thank the defense panelists, who
generously shared their knowledge and expertise.

We would like to thank you the owner and employees of Rein Cakes and
Pastries Shop for your support and kindness in our assistance in this project.
Additionally, this would not be impossible without our family's support and our
professor who guided us to this capstone project once again Thank you.

3
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

ABSTRACT
The system aims to manage Rein Cakes and Pastries shop customers’ orders by
making an online web-based system to monitor their customers ordered cakes
and also the availability of the cakes and making a database for their customers to
access the website when ordering cakes.
The system provides the information regarding as follows:
Costumer’s information: The customer can create their account on the website by
clicking Create Account then the customer would provide a name, email, and
address in a secured database by doing so they can access the website cake
shop tab and order what cake would they like and also monitor their ordered
deliveries of cakes and breads.
Employee and Cake availability: The employee would see the customer the
ordered cake by accessing their order tab so they can process the customer's
ordered cake by sending a notification on the customer’s account and messages.
that the cake was in process employees can monitor the cake availability by
accessing the inventory tab on the website.
Admin Tab: The owner can monitor the website by accessing the admin tab so
they can see the registered customer and the sales of the cake as well as the
order.
The fronted will be a Hyper Text Mark-up Language (HTML). A standardized
system for tagging text files to achieve font, color, graphics, and hyperlink effects
on World Wide Web pages, this system will have a supported Cascading Style
Sheets (CSS), a computer language for lay-outing and structuring webpages
(HTML), and JavaScript an object-oriented computer programming language
commonly used to create interactive
effects with a web browser. As for the back end, we will be using PHP Hyper Text
Preprocessor (PHP) a widely used open-source general-purpose scripting
language which many is usable by many operating systems like Microsoft
Windows and Mac OS and it is used as a secured database.

4
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

TABLE OF CONTENTS
CHAPTER I 5
Project Context 5
Purpose and Description 6
Objectives of the Study 7
Significance of the Study 8
Scope and Limitation 8

CHAPTER II 9
Related Literature 9
Foreign Literature 9
Local Literature 13
Local Studies
Synthesis 14
Technical Background 15

CHAPTER III 16
System Design, Products, and/or Processes 19
Conceptual Design 20
Cost Benefit Analysis 20
System Architecture/System Flow 21
Block Diagrams 25
Development and Testing 31
Input and Output Reports and Analysis 32
Description of the Prototype 33
CHAPTER IV 71
Recommendation 71

5
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Appendices 74
References 75
CHAPTER I
Project and Its Background

Project Context
Rein Cakes and Pastry Shop started its business in 2001 in
Tropical Village, Brgy. San Francisco, City of General Trias, Cavite. They
started selling cakes and small types of bread. But because of the
competition with other pastry shops, they have lost some of their loyal
customers. Then they are trying their luck by doing online selling so they
wanted an official online website where their customer can access their
shop and see what cakes are available to order with a scheduling system
where the customer can provide when or what day they will pick up the
cake. The purpose of this study was for the proponents to explore the online
bakery management system and how to create a web-based online bakery
shop for Rein Cakes and Pastries Shop with a user-friendly website for both
the employees and the customers.

The system aims to manage Rein Cakes and Pastries shop customers’
orders by making an online web-based system to monitor their customers
ordered cakes and also the availability of the cakes and making a database
for their customers to access the website when ordering cakes.

The system provides the information as follows

Costumer’s information: The customer can create their account on the


website by clicking Create Account then the customer would provide a
6
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

name, email, and address in a secured database by doing so they can


access the website cake shop tab and order what cake they like.
Employee and Cake availability: The employee would see the customer the
ordered cake by accessing their order tab so they can process the customer
ordered cake by sending a notification on the customer’s account and
messages that the cake was in process also employees can monitor the
cake availability by accessing the inventory tab in the website.
The owner can monitor the website by accessing the admin tab so they can
see the registered customer and the sales of the cake also a delivery
system with tracking for the user to know when or where is their product
order coming in.

The fronted will be a Hyper Text Mark-up Language (HTML). A


standardized system for tagging text files to achieve font, color, graphics,
and hyperlink effects on World Wide Web pages, this system will have a
supported Cascading Style Sheets (CSS), a computer language for lay-
outing and structuring webpages (HTML), and JavaScript an object-oriented
computer programming language commonly used to create interactive
effects with a web browser. As for the back end, we will be using PHP
Hyper Text Preprocessor (PHP) a widely used open-source general-
purpose scripting language which many is usable by many operating
systems like Microsoft Windows and Mac OS and it is used as a secured
database.

7
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Purpose and Description

Purpose

This study aims to assist Rein Cakes and Pastries Shop in creating
a user-friendly website, reducing employee workload by monitoring the
availability of cakes, tracking orders and their deadlines, and allowing
customers to register for an account to receive notifications via SMS
regarding the pickup of their ordered cakes.

Description

The objectives of this research project are to address the


difficulties faced by Rein Cakes and Pastries Shop in retaining their loyal
customers, by providing a website that allows customers to easily access
and view available cakes, as well as a notification system to inform
customers when their ordered cakes are ready for pickup or scheduled to
be completed.

Objectives of the Study

The main objective of the study is to create a web-based bakery


shop management system that helps Rein Cakes and Pastries Shop for
their online selling of cakes and breads.

General objective

The main goal was to create a website for Rein Cakes and
Pastries Shop to showcase their variety of cakes and breads, provide

8
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

multiple payment options, and implement a customer notification system for


pick-up.

Specific Objectives

The following specific objectives are formulated to have a goal


while conducting the proposed system:

1. To develop an e-commerce bakery website that expands selling


capabilities and improves customers’ reliability and trust in the
website.
2. To offer data security by requiring login information phone number
and email of the customer with contact notification.
3. To provide a system that generates daily, monthly, and annual
sales of bread and cakes and as an inventory dashboard for the
admin
4. To provide a friendly and easy-to-use website for the customers
ordering cakes and breads
5. To offer Delivery Payment to prevent order cancellation
6. To provide a system that will be effective in terms of Functionality,
Reliability, Usability, Efficiency, Maintainability, and Portability based
on ISO/IEC 9126.

Significance of the study:

Administrator. This research aims to help Rein Cakes and Pastries Shop
to be more efficient in doing online selling help owners monitor their daily
9
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

sales and provide customers with pick-up notifications. The website will be a
useful advertisement for Rein Cakes and Pastries Shop for them to expand
their online sales,
Employees. This research aims to help the employees of Rein Cakes and
Pastries Shop easily monitor the stocks of cakes and breads and improve
their productivity and workflow.
Customers. This research helps the customers of Rein Cakes and Pastries
Shop to easily shop for cakes and breads and also to efficiently check out
their orders. To check the availability of the cake and to have an easy way
to pay for their ordered cakes and bread through multiple payments.
Future researcher. This research can be used as a reference guide for
future researchers and developers that are in the same field such as
Information Technology, Computer Science, and other similar fields. Future
researchers can learn, improve, and compare the procedures and methods
that were used in this research. and will help them in their research
development of a similar system.
Business owners. This research can be a reference to extend their
expertise to e-commerce industries it will help to boost their knowledge of
managing online business, sales, and income.

Scope and Limitation


This study will focus on developing an Official Website for Rein
Cakes and Pastries Shop and will also integrate an Inventory Management
system. The system aims to help the company modernize its business
process from marketing and the use of an online website The website of
Rein Cakes and Pastries Shop will contain a variety of their products cakes
and bread also contain a login sign-in for new and old customers. the owner
can also monitor the customer’s daily number and orders by having access
to the customer-secured database and management system and access to
the updated income of Rein Cakes and Pastries Shop. Admin will be using
the entirety of the website by monitoring the customer and employees to
manage user accounts and to manage the online downpayments system

10
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Employees can also use the website to have access to the inventory system
to monitor the stock of the products to always update the availability of
cakes and breads and to have access to customer contact notification order.
costumer can easily access the website by just inputting their email and
address with Costumer secured Database also a notification system.

CHAPTER II
Related Literature

The Following are reviews of literature related to developing e-


commerce, management systems, and online transactions. The related
literature includes foreign and local literature and studies. The following
studies that the proponents utilized as a guide and reference in developing
the system.

Related Literature

This section provides material from published articles and


journals on particular topics related to the present study

Foreign Literature
The article by Chen and Yang (2019) titled “Developing a web-
based sales management system for small and medium-sized enterprises.”
presents the development of a web-based sales management system for
small and medium-sized enterprises (SMEs). The system aims to enhance
the sales process of SMEs through its features, including customer
management, sales order processing, and sales analysis. The study also
evaluates the effectiveness of the system through a case study, which
showed that it can help reduce sales cycle time and improve sales
performance. The article concludes that web-based sales management
11
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

systems can be an efficient tool for SMEs to enhance their sales process
and competitiveness.
The article by Sun, Chen, and Zhang (2019) titled “Design and
Implementation of a web-based restaurant inventory management system.”
discusses the design and implementation of a web-based restaurant
inventory management system. The system was designed to help
restaurant managers manage their inventory more efficiently and effectively
by providing features such as inventory monitoring, ordering, and reporting.
The authors conducted a case study to evaluate the effectiveness of the
system, and the results showed that it helped restaurant managers reduce
inventory costs, improve inventory accuracy, and increase efficiency in the
inventory management process. The article concludes that a web-based
inventory management system can be a valuable tool for restaurant
managers to enhance their inventory management and increase their
competitiveness.
According to the Statista Fintech report, in 2019, the total amount of
transactions in the digital payment segment was estimated at 3,670,864
million euros, and by 2023, it is estimated to increase to 5,921,831 million
euros
A pioneering study conducted by Tagat et al. (2019) in India,
determined similar elements impacting users’ payment choices using
payment diary data in the Mumbai Metropolitan Region (MMR). The authors
pragmatically deployed the diary data method of data collection which is
prevalent in the United States, Canada, Australia, and European countries.
The experiential results indicated the dominance of cash payment for goods
and services and were significantly influenced by transaction size,
merchants’ acceptance of cashless payment methods, and perceived
usefulness of cash. Cash was found as a commonly used method followed
by debit cards, cheques, and credit cards. It also concluded that the fewer
chances of using cash with high transaction size were consistent with cross-
country diary data surveys.
Świecka et al. (2021) explored consumer behavior towards
diverse payment methods in Poland. The CAPI method was used to collect
the data of 1005 customers. It was analyzed with a machine learning model
12
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

to predict consumer payment preferences. The outcome exhibited that the


usage of cash prevailed instead of the expansion of digital payment modes
and payment preferences impacted by personality and financial literacy. The
authors also analyzed the higher percentage of cash used at local bazaars
and salons on the other hand, increasing the trend of card payments at
supermarkets, malls, and gas stations
Zhao, Haidong; Zhang, Lini; Anong, SophiaJournal of Financial
Counseling and Planning, 2020 This study examined a conceptual model on
the intention to adopt NFC-based mobile payment that incorporates
financial experiences and beliefs. NFC refers to Near Field Communication,
a new technology in mobile payments. From an online experimental survey
of 463 U.S. young adults, this research found consumers who used cards
as their payment methods as opposed to cash-only were less likely to adopt
NFC mobile payment. Previous experience in non-NFC mobile payments
had a significant positive association with the intention to adopt NFC mobile
payment. Among the beliefs, consumers with higher trust and higher
perceived usefulness of NFC mobile payment had greater intentions to
adopt it. Moreover, trust was found to have a mediating effect between non-
NFC mobile payment experience and the intention to adopt NFC mobile
payment. This study not only provides mobile payment providers with
effective marketing strategies to increase consumers' adoption of NFC
mobile payment but also provides financial educators with important
implications to develop targeted education programs.

Based on the study by Somasundaram (2020), improvement in


the safety and cybersecurity of financial transactions and simplification of
the system can increase the promotion of digital payment systems. In the
Philippine context, the government continues to face and work on these
hurdles as the country is still in its early stage of transitioning to digital
payments.

Chi-Fang Liu Chien-Ho Lin (2020) Most studies on online


shopping focus on the implications and benefits of e-commerce. This focus

13
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

is expected to increase as more people are pushed toward shopping online


in a bid to avoid crowded shopping malls for fear of contracting the dreaded
COVID-19 virus. A gap in the literature, however, is that while the topic is
rife with studies detailing how online shopping works, there is limited
research on shopping for foods online, wh is inherently with very different
characteristics from buying other kinds of commodities via the World Wide
Web. Nonetheless, food is one of the most common products for mankind,
and so it has a great impact on human’s online shopping life. Critical
analysis for an in-depth understanding of the special attributes that online
food shopping has can facilitate the construction of a precise (for
stakeholders’ needs) and high-quality (for stakeholders’ safety and
satisfaction) online food shopping ecosystem. This paper presents a
conceptual analysis aimed at explicating the significant themes within the
current literature. The review will conduct critical propositions reflected from
these studies to propose future research directions. The academic review is
significant to both researchers and online food stores as people across the
world start embracing online shopping more than ever before.
Cuicui Wang Yun, Li Xuan Luo, Huijian Fu, Ziqi Ye1 and
Guangwei Deng 2022 With the rapid development of the take-out industry,
taste, and hygiene ratings as social-based information have been frequently
used by online food-ordering platforms to facilitate consumer purchases.
The present study aims to uncover the effects of taste and hygiene ratings
on online food-ordering decisions by incorporating behavioral and neural
approaches. The behavioral results showed that a high taste rating induced
a higher ordering intention than a low taste rating and that a high hygiene
rating induced a higher ordering intention than a low hygiene rating. The
effect of hygiene rating on ordering intention was moderated by taste rating.
Hygiene rating had a greater impact on ordering intention when the taste
rating was high (vs. low). In addition, inconsistency between taste and
hygiene ratings increased the cognitive load and took more time for
decision-making. The event-related potential (ERP) data revealed that
consumers paid more attention to a high (vs. low) taste rating in the early
cognitive process, which was reflected by a larger P2. Subsequently, a
more negative N2 was elicited by conflicting ratings than consistent ratings
when the taste rating was low. In the relatively late decision-making

14
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

process, a larger P3 was evoked by consistent than conflicting ratings,


suggesting that consumers had more confidence in their decisions for
consistent ratings. These findings could help restaurants understand the
roles of taste and hygiene rating cues in affecting consumer behavior and
prompt those restaurants to adopt effective measures to increase online
sales.
In the article entitled “Web-Based Online Inventory Information
System” (2020) S. Soegoto and F. Palalungan stated that many
companies use a web-based online inventory system because this system
saves a lot of time, energy, or large costs. Web-based online inventory
system is designed with a barcode reader platform. This system can be
applied on the intInternethe function of the inventory system is to be able to
meet the anticipated customer demand. Besides, inventory is expected to
maintain customer satisfaction, the second is to separate various parts or
production components. Therefore, problems can be avoided from
fluctuations because there has been additional inventory to separate the
production operations process from suppliers. The benefit of the web-based
online inventory system is many, namely make it easier for companies to
monitor current stock positions, makes it easier for companies to make
reports or information about the product, and makes it easy for companies
to make more goods stocked. Information technology helps people to do
anything through the internet. In this case, the company needs information
technology systems to have a significant influence on the effectiveness of
the company in developing its business.

In the article entitled “The effect of service quality and website


quality of zalora.com on purchase decision as mediated by purchase
intention” (January 2019) by Chendy Dapas, Edi Puwanto, Tulus
Burhanuddin Sitorus, and John J.O.I. Ihawa stated that online marketing
is the form of direct marketing that grows most rapidly. Current technological
advances have created the digital age. The Internet has given marketers an
entirely new way to create value for customers and build customer
relationships. Furthermore, Kotler and Armstrong (2008:238) explain that
there are four major online marketing areas, including B2C (business to

15
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

consumer), B2B (business to business), C2C (consumer to consumer), and


C2B (consumer to business). It also mentions that the success of the
company is in providing quality services to its customers, achieving high
market shares, and an increased profit. Service quality is defined as the
customer’s assessment of the thorough superiority or privilege of a product
or service.

Local Literature

The article by Garcia, A. (2019) titled "Design and Development


of a Web-based Sales and Inventory Management System for a Small
Business" This study presents the design and development of a web-based
sales and inventory management system for a small business. The study
found that the system improved the business's sales and inventory
management, as the owner could track sales and inventory in real-time
The article by Pazarbasiogl (2020). Such services range from
established instruments such as debit and credit cards primarily offered by
banks, and innovations like cloud computing, digital platforms, and
distributed ledger technologies, spanning mobile payments, crypto-assets,
and peer-to-peer applications which are often referred to as fintech
The article by Fatona S.(2019) “The Era of Information and
Communication Technology (ICT) and digital innovation lead to dynamic
changes in the business environment”. Where business transactions
continue to shift from cash-based transactions to electronic-based
transactions. The e-payment system was not introduced to replace cash but
as a better alternative to cash and trade barter. Electronic payments can be
understood as a payment mechanism using electronic media that does not
involve cash. Electronic payment system (e-payment) is an important
aspect of e-commerce. This study intends to review the available literature
for e-payment systems on e-commerce to highlight the scope of the e-

16
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

payment system, and the methodology used by previous researchers to


identify research gaps and recommend future studies

Local Studies

Jan Monique H. Ballena, Derek John M. Caday, Jude


Anthon B. Iman, Mrs. Ailene C. Rolle (2021) "Online Selling of Baked
Goods: Understanding the Lived Experiences of Online Sellers in
Dasmarinas City, Cavite" This study aimed to uncover the lived experiences
of online sellers in starting and running their online business of baked goods
specifically cakes and bread in Dasmariñas City, Cavite, Philippines. A basic
interpretive method was followed in the conduct of the study. Using
purposeful sampling, the participants of the study were chosen based on
the criteria provided by the researchers. The researchers conducted one-
on-one interviews to gather data from the five participants. The data were
treated using qualitative data analysis to determine the strategies used by
these online sellers in selling baked goods specifically cakes and breads
based on their actual experiences Interview transcripts were analyzed by
following these three stages: open coding, axial coding, and selective
coding. The findings of the study revealed that sources of inspiration,
starting up an online business, and positive experiences were themes that
constituted starting up and running an online business. Whereas, starting-
up challenges and struggles encountered comprised the challenges that
online sellers experienced. Additionally, life lessons, insights gained, and
the values of businessmen emerged as themes relative to their insights into
doing online business. Lastly, marketing platforms, sustaining online

17
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

business, and medium and long-term plans contributed to their success.


Indeed, online sellers face challenges, struggles, and difficulties in starting,
running, and maintaining their businesses like physical store sellers. It is
recommended that the present study be replicated but with a wider locale
and more participants.
According to the Department of Trade and Industry (DTI),
between March 2020 and January 2021, over 500,000 entrepreneurs in
the Philippines established new business names. Retailers through the
internet or online sellers came first with 87,223, followed by retailers in sari-
sari stores with 68,241 (dti.gov.ph). As online shopping has grown and still
growing, the number of online sellers is also increasing. Now, it is easy to
establish an online business because of the use of social media and other
platforms as a marketing tool
Synthesis
Chen and Yang (2019) titled “Developing a web-based sales management
system for small and medium-sized enterprises.”/The article by Sun, Chen,
and Zhang (2019) titled “Design and Implementation of a web-based
restaurant inventory management system.”/According to the Statista
Fintech report, in (2019)/Tagat et al. (2019)/Świecka et al. (2021)/Zhao,
Haidong; Zhang, Lini; Anong, SophiaJournal of Financial Counseling and
Planning, 2020/Somasundaram (2020)/Chi-Fang Liu Chien-Ho Lin (2020)/
Cuicui Wang Yun, Li Xuan Luo , Huijian Fu , Ziqi Ye1 and Guangwei Deng
(2022)/ In the article entitled “Web Based Online Inventory Information
System” (2020) by S. Soegoto and F. Palalungan/In the article entitled “The
effect of service quality and website quality of zalora.com on purchase
decision as mediated by purchase intention” (January 2019)/The article by
Fatona S.(2019) “The Era of Information and Communication Technology
(ICT) and digital innovation lead to dynamic changes in the business
environment"/Jan Monique H. Ballena, Derek John M. Caday, Jude Anthon
B. Iman, Mrs. Ailene C. Rolle (2021) "Online Selling of Baked Goods:
Understanding the Lived Experiences of Online Sellers in Dasmarinas City,
Cavite"/the Department of Trade and Industry (DTI),

18
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Technical Background

The proponents of the Web-Based Online Bakery Management


System for Rein Cakes and Pastries Shop will utilize different types of
software to build its beneficiary customer-friendly website that can invite
customers to buy cakes easily also the website should be accessible by
browser and phone browsers the system website will have its domain and a
two ways downpayment.
To develop a system it need a variety of programming languages and tools.
Front end
The front end will use the programming language of HTML, CSS, and
JavaScript. this will be used to create web tabs and pages so that users can
interact with and the customer can easily interact with the website.
Back-end and Server tools
The back end will use Mysql to store or manage the system data, for the
server it will utilize the PHP and Xammp for the user-created account to
secure its details also only the admin can access it to manage the profile
data.
19
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Downpayment System
The downpayment system will use two payment systems which is the
Paymongo Application programming interface (API) with multiple way of
payment also the cash on pick-up payment. which the customer can pay
through the branch when ordering cake products this will also utilize the
SMS gateway system that will notify their total pay balance and schedule
ordered cake pick up.

CHAPTER III
METHODOLOGY RESULTS AND DISCUSSION
Introduction
This chapter will discuss the implementation of system
notification, downpayment balance notification, shop products tab
compilation also management system for customers, employees, and
owners for the website of Rien Cakes and Pastry Shop. The chapter will
also provide detailed research design, data collection procedures data
analysis methods used for the study.
Software Design, Products and/or Process

The software design to be used for the Web-Based Online Bakery


Management System for Rein Cakes and Pastries Shop will be a
combination of front-end and back-end technologies with a secured user
account database. The front end will use HTML, CSS, and JavaScript for
the user interface, while the back end will use PHP and MySQL for the
server-side logic and database management. The dashboard will use the
PHP language to monitor the price and sold cake products. The Delivery

20
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

cash on the pickup payment system while the notification system will use
the contact info of the customer
The system will have the following key features:
1. User Management System – This feature allows Admin to manage user
registered accounts such as customers' profile data.
2. Inventory Management System – This feature allows the employee to
manage the cake product details, stocks, and ordered cakes by customers.
3. Sales Management System – This feature allows the admin to monitor
the ordered cake product sales and also to manage customer details
payment details.
4. The Delivery Payment System – this system will be utilized to prevent the
cancellation of orders which is a problem for Riencakes and Pastries.

The development of the website system and software will follow the
waterfall methodology which proponents can ensure the feedback of each
fall step by step so the website will achieve its goals based on the needs of
the beneficiary.

The waterfall methodology will use a logical progression that


ensures each process will be distinct from each end goal. which the
proponents will follow the following steps Requirement, Analysis, Design,
Coding/Implementation, Testing, Operation deployment, and maintenance.
This will ensure that the proponents and its beneficiaries will have a good
collaboration on its website project.

REQUIREM
ENT

ANALYSIS

DESIGN
21

CODING
IMPLEMENTATIO
N
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Figure 1 Modified Water Fall Methodology

The Water methodology will include the proponent 7 waterfall stage

I. Requirements. This will include the software system, tools,


programming language, and beneficiary data as guidelines for
each system that the proponents will use for creating the website
II. Analysis. The proponents will include and generate the necessary
data that will be used for the website project also the financial and
technical resources that are audited for feasibility for the
beneficiary.
III. Design. The proponents will use the required data for the user
interface also the data that they gathered from the beneficiary to
use it for the mockup system that will be used by the customers
and collect some of their feedback to improve the architecture of
the system also the services.
IV. Coding and implementation. The proponents will use the required
software system for its website that will include each architecture
system to smaller to big programs. that will be put out after all the
required and designated software passes the implementation for
each code system.
V. Testing. The proponents will test each of the system software to
meet the requirements and specifications. The proponents will
also perform integration testing and user acceptance testing to
ensure the software is stable and bug-free
VI. Operation and Deployment. The proponents will release the
system software after the testing. The beneficiary will ensure to
use the system to asses if the specification and requirements meet
VII. Maintenance. The proponents would need to update/patch
corrective programs to improve the system software to enhance its
functionality.

22
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

System Architecture

This demonstrates the sequence of steps in the proposed system,


enabling a clear and simple comprehension of the interaction within the
system. The proponents will include the employee, beneficiary, and
customers

Figure 2 System Architecture/System Flow

23
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Conceptual Design

This section represents the applications conceptual entity-


relationship model Verification of the conceptual design is required (usually
included in the results and discussion chapter) to ensure that all needed
data has been acquired and that it supports all processes identified in the
requirement specifications.

PROCESS
INPUT CUSTOMER ORDER OUTPUT
APPROVED ORDER REAL TIME SERVICE
ADMIN
USER ACCOUNT SALES REPORT DAILY MONTLY YEARLY
PRODUCTS
ORDERED PRODUCT PENDING DOWNPAYMENT API SERVICES
CUSTOMER
ORDERED PRODUCT TRACKING ORDERED PRODUCT COMPLETE
EMPLOYEE
PRODUCTS DETAILS CUSTOMER NOTIFICATION
SERVICES
ADD ADMIN,EMPLOYEE AND
CUSTOMER

Figure 3 Conceptual design

24
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Cost Benefit Analysis

This section estimates the labor cost, hardware cost, and system
software cost of the website project. it should detail the overall cost,
benefits, and tools delivered by the system it should demonstrate the values
of each institution given by the website project and the labor of the
proponents.

System Architecture
I. Hardware Cost
Recommended Specifications Quantity Unit Cost
Requirements Price
Processor Intel Core i3- 1 12,995 12,995
8100
processor
(3.60 GHz)
Motherboard Gigabyte 1 1.750 1,750
H310M H2.0
Ram 8gb-ddr4 1 2,995 2,995
2400mhz
zeppelin
Hard Drive Adata 512GB 1 3,495 3,495
SSD
Keyboard Razer Cynosa 1 3,000 3,000
v2
Monitor ASUS 21.5 1 8,700 8,700
VA229HR 75
HZ MONITOR
Mouse ASUS ROG 1 1,950 1,950
STRIX
IMPACT II
RGB MOUSE

Total 34.885

Source: https://pcx.com.ph/. J10 COMPUTER TRADING

II. Software Development Cost

25
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Personnel No. of Personnel Salary


Programmer 1 25.000
System Analyst 1 33.000

TOTAL Salary: 58:000.00


Personnel salary in 60 Days:

Programmer 25,000 / 60 = ₱ 416.66


System Analyst 33.000 / 60 = ₱ 550.00

Source: https://ph.indeed.com/

III. Operational Cost

A. System cost

System Specification cost


Operating System Windows 10 Pro 9.000.00
Front End Visual Studio Free
Back End Xampp v.3.3.0 Free
Web Hosting Hostinger Web Hosting 2,280,00 (12 months)

Total Cost: 11,280

Table 3 System Cost

Source: https://www.hostinger.ph/, https://pcx.com.ph/

B. Stationaries and Supplies

26
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Items Quantity Price Total


Bond paper 1 Hard Copy 264.00 263.00
Ballpen 1 16.00 16.00

Total: 279

Source: https://www.nationalbookstore.com/

Table 4 Stationaries and Supplies

C, Utility Expense

Particulars Cost
Electricity 840.74
Internet 2.625
Total:3.465.74
Computer Usage 0.43 hour/5.52 for 12 hour /27.6 Day /840.74 28 days
Source: https://www.meralco.com.ph/

D. Training cost

Personnel Amount per Days Hours Total


day
Administrator 300.00 3 5 900.00
Employees 300.0 3 5 900.00
Total 1.800

Table 6 Training Cost

(60.00 / hour * 5 Hours) * 3 Days = ₱900.00

27
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

IV. Summary Cost

Cost Amount
Hardware Cost 34.885
Software Development cost 58.000.00
System cost 11.280
Stationaries and supplies 279.00
Utility expenses 3.465.74
Training cost 1.800

Total 109,709.74
Table 7 Summary Cost

Estimated Benefits:

Accuracy and efficiency of the software at approximately 85% Total


estimated Benefits
= 109,709.74*85% Total =₱91,723.27

Payback Period

Payback Period = (Total Cost/ Total Estimated Benefits) * 12


=(109,709.74/91,723.27*12

Total= 14 months or 1 year and 2 months

Return of investment

Return of investment= (total estimated Benefits / Total cost) *100


=(91,723.27/109,709.74) *100
28
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Total = 85%

Requirement Analysis

Hardware CPU Intel Core i3-8100 processor


RAM 8GB
OS Windows 10 pro
Software Browser The latest version of any
Browser

Table 8 Requirement Analysis

Table 8 shows the hardware and software requirements. The


proponents have determined the general minimum hardware requirements
for the system, Intel Core i3-8100 processor,8GB of RAM, and Windows 10
or newer operating system. As for software requirements, the system can
run any internet browser if it’s up to d

Block Diagram

A block diagram is a visual representation of a system, where


blocks
depict the main components or functions, and their connections are
illustrated by lines indicating the relationship between them. These
diagrams are widely utilized in engineering fields such as hardware.
Electronic and software design, and process flow mapping.

29
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Table 9 Customer’s Block Diagram

Create Account

Log in

Manage accounts

Dashboard

Shop

Add items to cart

online payment order/pick


up payment order

Notification of payment

Log out
30
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Table 10 Administrator’s Block Diagram

Log in

Dashboard

Products Sales

Manage pending
order

Manage Products

Manage
inventorys stocks

Manage Payments

Manage employee
accounts

Log out

31
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Table 11 Employees Block Diagram

Log in

Dashboard

Manage orders

Manage pending
order

Manage Products

Manage inventorys
stocks

Manage Pick up
Payments

Manage Notification
payment

Log out

32
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Development and Testing

The proponent language used for the development was Hyper pre-
processor(PHP) as their main programming language while MySQL was
used for the backend of the system.

Unit Testing – The proponents will utilize unit testing as a vital method to
ensure the proper functioning of the individual system units or components
and their compliance with the specified requirements.

Module Testing - the proponents will place a significant emphasis on


module testing software testing and also will evaluate the interaction
behavior of individual software modules or clusters of related modules. This
technique of modules will ensure the system operates as a cohesive and
integrated entity.

Integration Testing – The proponents acknowledge the importance of


integration testing as a software testing technique that will evaluate the
interactions between various system software components to identify any
defects resulting from their integration. This step is critical in ensuring that
the system operates smoothly and satisfies the specified requirements.

Input and Output Reports and Analysis

Reference Number:1.0
33
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Module Name-Home

Retrieving
Click Dipslay
INPUT PROCESS Web OUTPUT
Home Home
Details

Reference Number:2.0

Module Name-Store

Retrieving
Click Display
INPUT PROCESS Web OUTPUT
Store store
Details

34
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:3.0
Module Name: Contacts

Retrieving
Click Dipslay
INPUT PROCESS Web OUTPUT
Contact Contact
Details

Reference Number:4.0
Module Name: About Us

35
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Retrieving
Click Dipslay
INPUT PROCESS Web OUTPUT
About us About us
Details

Reference Number:5.0
Module Name: Orders

Retrieving
Click Dipslay
INPUT PROCESS Web OUTPUT
Orders Orders
Details

36
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:6.0
Module Name: Search

Retrieving
Click Dipslay
INPUT PROCESS Web OUTPUT
Search Search
Details

Reference Number:7.0
Module Name: Cart

37
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Retrieving
Dipslay
INPUT Click Cart PROCESS Web OUTPUT
Cart
Details

Reference Number:8.0
Module Name: Account

Click Retrieving
Dipslay
INPUT Account PROCESS Web OUTPUT
Account
Details

38
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:8.0
Module Name: See Store

Click Retrieving Dipslay


INPUT Store PROCESS Web OUTPUT
Details Store

Reference Number:9.0
Module Name: Cakes and Bread Store

39
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving Display


INPUT Cakes and PROCESS Web OUTPUT Cakes and
Breads Details Breads

Reference Number:1.1
Module Name: See New Cakes

40
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click see Display


Bread and Retrieving
Bread and
INPUT Cakes of PROCESS Web OUTPUT
Cakes of
the Day Details
the Day

Reference Number:1.2
Module Name: View Cakes and Breads

Click View Display


Retrieving
Cakes and View
INPUT PROCESS Web OUTPUT
Breads Cakes and
Details
Breads

41
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:1.3
Module Name: See Payments

Click See Retrieving Display


INPUT Payments PROCESS Web OUTPUT See
Details Payments

Reference Number:2.1
Module Name: Name

42
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Display
INPUT Name PROCESS Web OUTPUT
Name
Details

Reference Number:2.2
Module Name: See Cake and Bread Quantity

43
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click See Dipslay


Cake and Retrieving
See Cake
INPUT Bread PROCESS Web OUTPUT
and Bread
Quantity Details
Quantity

Reference Number:3.1
Module Name: Name

Click Retrieving
Dipslay
INPUT Name PROCESS Web OUTPUT
Name
Details

44
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:3.2
Module Name: Number

Click Retrieving
Dipslay
INPUT Number PROCESS Web OUTPUT
Number
Details

Reference Number:3.3
Module Name: Email

45
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Email PROCESS Web OUTPUT
Email
Details

Reference Number:3.4
Module Name: Change Cakes Flavoring

46
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Dipslay
Change Retrieving
Change
INPUT
Cakes
PROCESS Web OUTPUT
Cakes
Flavoring Details
Flavoring

Reference Number:3.5
Module Name: Message

Click Retrieving
Dipslay
INPUT Message PROCESS Web OUTPUT
Message
Details

47
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:3.6
Module Name: Submit

Click Retrieving
Dipslay
INPUT Submit PROCESS Web OUTPUT
Submit
Details

Reference Number:4.1
Module Name: Name

48
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Name PROCESS Web OUTPUT
Name
Details

Reference Number:4.2
Module Name: Number

49
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Number PROCESS Web OUTPUT
Number
Details

Reference Number:4.3
Module Name: Email

Click Retrieving
Dipslay
INPUT Email PROCESS Web OUTPUT
Email
Details

50
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:4.4
Module Name: View Cakes and Breads Cart

Click View Dipslay


Cakes and Retrieving View
INPUT Breads PROCESS Web OUTPUT Cakes and
Cart Details Breads
Cart

Reference Number:4.5
Module Name: Quantity Update

51
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving Dipslay


INPUT Quantity PROCESS Web OUTPUT Quantity
Update Details Update

Reference Number:4.6
Module Name: Proceed to Checkout

52
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Dipslay
Proceed Retrieving
Proceed
INPUT to PROCESS Web OUTPUT
to
Checkout Details
Checkout

Reference Number:4.7
Module Name: Remove Quantity

Click Retrieving Dipslay


INPUT Remove PROCESS Web OUTPUT Remove
Quantity Details Quantity

53
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:4.7
Module Name: Continue Shopping

Click Retrieving Dipslay


INPUT Continue PROCESS Web OUTPUT Continue
Shopping Details Shopping

Reference Number:5.1
Module Name: User

54
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT
User
PROCESS Web OUTPUT
User
Details

Reference Number:6.1
Module Name: Admin

55
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Admin PROCESS Web OUTPUT
Admin
Details

Reference Number:5.3.1
Module Name: Email

Click Retrieving
Dipslay
INPUT Email PROCESS Web OUTPUT
Email
Details

56
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:5.3.2
Module Name: Password

Click Retrieving
Dipslay
INPUT Password PROCESS Web OUTPUT
Password
Details

Reference Number:5.3.3
Module Name: Login Now

57
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving Dipslay


INPUT Login PROCESS Web OUTPUT Login
Now Details Now

Reference Number:5.3.4
Module Name: Register Now

58
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving Dipslay


INPUT Register PROCESS Web OUTPUT Register
Now Details Now

Reference Number:5.3.5.1
Module Name: Home User Page

Click Retrieving Dipslay


INPUT Home PROCESS Web OUTPUT Home
User Page Details User Page

59
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:5.3.5.2
Module Name: Store Pending Page

Click Dipslay
Store Retrieving
Store
INPUT Pending PROCESS Web OUTPUT
Pending
Page Details
Page

Reference Number:5.3.5.3
Module Name: Contact User Page

60
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving Dipslay


INPUT Contact PROCESS Web OUTPUT Contact
User Page Details User Page

Reference Number:5.3.5.4
Module Name: User Store Order Page

61
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click User Dipslay


Store Retrieving User
INPUT Order PROCESS Web OUTPUT Store
Page Details Order
Page

Reference Number:5.3.5.5
Module Name: Search User Page

Click Retrieving Dipslay


INPUT Search PROCESS Web OUTPUT Search
User Page Details User Page

62
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:5.3.5.6
Module Name: Store Cart User Page

Click Retrieving Dipslay


INPUT Store Cart PROCESS Web OUTPUT Store Cart
User Page Details User Page

Reference Number:5.3.5.7
Module Name: Account User Page

63
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving Dipslay


INPUT Account PROCESS Web OUTPUT Account
User Page Details User Page

Reference Number:5.3.5.8
Module Name: Profile

64
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Profile PROCESS Web OUTPUT
Profile
Details

Reference Number:5.3.5.9
Module Name: Logout

Click Retrieving
Dipslay
INPUT Logout PROCESS Web OUTPUT
Logout
Details

65
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:5.3.5.1.1
Module Name: Update info

Click Retrieving Dipslay


INPUT Update PROCESS Web OUTPUT Update
info Details info

Reference Number:5.3.5.1.2
Module Name: Name

66
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Name PROCESS Web OUTPUT
Name
Details

Reference Number:5.3.5.1.3
Module Name: Update Address

67
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving Dipslay


INPUT Update PROCESS Web OUTPUT Update
Address Details Address

Reference Number:5.3.5.1.4
Module Name: Name

Click Retrieving
Dipslay
INPUT Name PROCESS Web OUTPUT
Name
Details

68
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:5.3.5.1.5
Module Name: Email

Click Retrieving
Dipslay
INPUT Email PROCESS Web OUTPUT
Email
Details

Reference Number:5.3.5.1.6
Module Name: Number

69
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Number PROCESS Web OUTPUT
Number
Details

Reference Number:5.3.5.1.7
Module Name: Password

70
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Password PROCESS Web OUTPUT
Password
Details

Reference Number:5.3.5.1.8
Module Name: Confirm Password

Click Retrieving Dipslay


INPUT Confirm PROCESS Web OUTPUT Confirm
Password Details Password

71
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:5.3.5.1.9
Module Name: Register Now

Click Retrieving Dipslay


INPUT Register PROCESS Web OUTPUT Register
Now Details Now

Reference Number:6.2.1
Module Name: Username

72
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Username PROCESS Web OUTPUT
Username
Details

Reference Number: 6.2.2


Module Name: Password

73
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Password PROCESS Web OUTPUT
Password
Details

Reference Number:6.2.3
Module Name: Login Now

Click Retrieving Dipslay


INPUT Login PROCESS Web OUTPUT Login
Now Details Now

74
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number:6.2.4
Module Name: Home

Click Retrieving
Dipslay
INPUT Home PROCESS Web OUTPUT
Home
Details

Reference Number: 6.2.4


Module Name: Products

75
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Products PROCESS Web OUTPUT
Products
Details

Reference Number:6.2.5
Module Name: Inventory

76
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Inventory PROCESS Web OUTPUT
Inventory
Details

Reference Number: 6.2.6


Module Name: Orders

Click Retrieving
Dipslay
INPUT Orders PROCESS Web OUTPUT
Orders
Details

77
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number: 6.2.7


Module Name: Admins

Click Retrieving
Dipslay
INPUT Admins PROCESS Web OUTPUT
Admins
Details

Reference Number: 6.2.8


Module Name: Users

78
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Users PROCESS Web OUTPUT
Users
Details

Reference Number: 6.2.9


Module Name: Messages

79
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Messages PROCESS Web OUTPUT
Messages
Details

Reference Number: 6.2.1.1


Module Name: Change Cake Flavor

Click Dipslay
Change Retrieving
Change
INPUT Cake PROCESS Web OUTPUT
Cake
Flavor Details
Flavor

80
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number: 6.2.1.2


Module Name: Account

Click Retrieving
Dipslay
INPUT Account PROCESS Web OUTPUT
Account
Details

Reference Number: 6.2.1.3


Module Name: Update Profile

81
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving Dipslay


INPUT Update PROCESS Web OUTPUT Update
Profile Details Profile

Reference Number: 6.2.1.4


Module Name: Pending

82
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Pending PROCESS Web OUTPUT
Pending
Details

Reference Number: 6.2.1.5


Module Name: Complete Order

Click Retrieving Dipslay


INPUT Complete PROCESS Web OUTPUT Complete
Order Details Order

83
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number: 6.2.1.5.1


Module Name: Delivery Order Status

Click Dipslay
Delivery Retrieving
Delivery
INPUT Order PROCESS Web OUTPUT
Order
Status Details
Status

Reference Number: 6.2.1.5.2


Module Name: Delivery Complete

84
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving Dipslay


INPUT Delivery PROCESS Web OUTPUT Delivery
Complete Details Complete

Reference Number: 6.2.1.6


Module Name: Orders

85
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Orders PROCESS Web OUTPUT
Orders
Details

Reference Number: 6.2.1.8


Module Name: Products

Click Retrieving
Dipslay
INPUT Products PROCESS Web OUTPUT
Products
Details

86
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number: 6.2.1.9


Module Name: Inventories

Click Retrieving
Dipslay
INPUT Inventories PROCESS Web OUTPUT
Inventories
Details

87
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number: 6.2.2.1


Module Name: Users

Click Retrieving
Dipslay
INPUT Users PROCESS Web OUTPUT
Users
Details

Reference Number: 6.2.2.2


Module Name: Admins

88
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Admins PROCESS Web OUTPUT
Admins
Details

Reference Number: 6.2.2.3


Module Name: Messages

89
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving
Dipslay
INPUT Messages PROCESS Web OUTPUT
Messages
Details

Reference Number: 6.2.2.4


Module Name: Product Name

90
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving Dipslay


INPUT Product PROCESS Web OUTPUT Product
Name Details Name

Reference Number: 6.2.2.5


Module Name: Product Price

Click Retrieving Dipslay


INPUT Product PROCESS Web OUTPUT Product
Price Details Price

91
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Number: 6.2.2.6


Module Name: Select Cakes and Breads Category

Click Dipslay
Select Retrieving Select
INPUT Cakes and PROCESS Web OUTPUT Cakes and
Breads Details Breads
Category Category

Reference Number: 6.2.2.7


Module Name: Choose File

92
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Click Retrieving Dipslay


INPUT Choose PROCESS Web OUTPUT Choose
File Details File

93
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

CHAPTER IV

RECOMMENDATIONS

This Chapter Provides a summary and conclusion of the study


conducted by the researchers of Capstone Projects titled” Web Based
Online Bakery Management System Project for Rein Cakes and Pastries
Shop” Based on the data gathered from the data survey. The researchers
arrived at their conclusion by analyzing and interpreting the collected
information which forms the foundation for the recommendation they
propose.

Summary

The Rein Cakes and Pastries Shop is a family-oriented bake shop


where you can simply request your wildest and delicious cake and they will
make it for you by wishing for it. The Rein Cakes and Pastries Shop had no
website they only had a Facebook groupage where they advertise their
cakes that’s why we researchers want to help their business bloom by
introducing an e-commerce bread and cake website.

Conclusion
The researchers can attain the following conclusion based on the
results of the study and the criteria given in the survey.

1. How will you handle customer data and ensure the security and privacy
of their information?
The proposed system aims to ensure the security and privacy of
customer data by implementing secure storage and restricting access to
authorized personnel only. To further enhance data security, we will be
vigilant in identifying and addressing potential security risks and strictly
adhere to privacy regulations. Our top priority is to instill customer
94
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

confidence by maintaining the utmost protection of their personal


information.
2. How will the restaurant utilize the proposed system to gain more profit?
The proposed system for Rein Cakes and Pastries Shop is
expected to yield various customers to increase their popularity by people
also having a website that would make it easier for people to see what
cakes they have which also advertise their cakes and bread selection.
Which will earn them more profit and customer.
3. How will the proposed system handle customer complaints or issues with
their experience

The privacy policy of the proposed system contains various details,


including contact information such as a phone number and email address.
Users can use these channels to report any issues or concerns they may
have about their experience on the website or any other suspicious
activities. This approach demonstrates the system's commitment to
ensuring transparency and addressing user concerns promptly.

4. How will the respondents assess the proposed system in terms of the
following criteria
1 1.00-1.80 Strongly Disagree Not Acceptable
2 1.81-2.60 Disagree Uncertain
3 2.61-3.40 Neutral Fair
4 3.41-4.20 Agree Acceptable
5 4.21-5.00 Strongly Agree Highly Acceptable

5. Is there a significant difference between the respondents’ assessment of


the proposed system in terms of the following criteria:
1 1.00-1.80 Strongly Disagree Not Acceptable
2 1.81-2.60 Disagree Uncertain
3 2.61-3.40 Neutral Fair

95
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

4 3.41-4.20 Agree Acceptable


5 4.21-5.00 Strongly Agree Highly Acceptable

The researchers discovered that there is no notable discrepancy in their


assessment of the system's functionality, security, reliability, and user-
friendliness. However, there is a significant difference in their evaluation of
the system's robustness.

APPENDICES

Survey Questionnaire

Name: _________________________ Age: ___________________

For system evaluation, please visit the website, and click the link:
https://reincakesandpastries.shop/
Your response will play a great part in the study as it will help us to measure the
quality of the system and make improvements to deliver a good quality system.
Rest assured that your response will be calculated anonymously. Use the scale
below to rate your assessment.

Point Scale Description Interpretation


5 4.21-5.00 Strongly Agree Highly Acceptable
4 3.41-4.20 Agree Acceptable
3 2.61-3.40 Neutral Fair
2 1.81-2.60 Disagree Uncertain
1 1.00-1.80 Strongly Disagree Not Acceptable

96
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

A. Functionality
Strongly Strongly
Agree Neutral Disagree
Variables Agree Disagree
(A) (N) (D)
(SA) (SD)
1. The system
provides relevant
functions and
information that can
attract customers to
buy online.
2. The system allows
customers to view
products and place
orders instantly.
3. The system has all
the functions to cover
the specified tasks
and objectives.

B. Performance
Strongly Strongly
Agree Neutral Disagree
Variables Agree Disagree
(A) (N) (D)
(SA) (SD)
1. The system quickly
responds to certain
functions in a short
period.
2. It appropriately
performs its function
when used under
specified conditions.
3. The performance of
the overall function of
the system is
excellent.

C. Maintainability
Variables Strongly Agree Neutral Disagree Strongly
Agree (A) (N) (D) Disagree
97
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

(SA) (SD)
1. The system can
quickly adapt to
changes in the
environment in which
it operates for
example update of
technology.
2. The issue and
enhancement of the
system can be easily
modified.

D. Usability
Strongly Strongly
Agree Neutral Disagree
Variables Agree Disagree
(A) (N) (D)
(SA) (SD)
1. The user interface
of the system is
pleasant.
2. The structure of
the system has
attributes that can
make it easy to
understand and
operate.
3. The system is
instantly accessible
across mobile
devices and
browsers.

98
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Recommendations
Based on the findings of the study, the following were recommended for
future enhancement of the developed Rein Cakes and Pastries Shop
Website
1. Improved user interface design to improve aesthetics and make it more
appealing to the eye.
2. Add more functions and features that have the potential to benefit a wider
audience and ultimately, maximize the effectiveness of the platform.
3. Add credit card payment options, it may be beneficial to include
alternative payment methods such as PayPal, Paymongo, and many more.
4. The researchers advise implementing a mobile version or application for
this approach in future studies.

References:

1. Chen and Yang (2019) titled “Developing a web-based sales


management system for small and medium-sized enterprises.”/The article
by Sun,

https://www.learntechlib.org/p/207141/

2. The article by Sun, Chen, and Zhang (2019) titled “Design and
Implementation of a web-based restaurant inventory management system.

https://www.researchgate.net/publication/
371989579_Design_and_Implementation_of_Inventory_Management_Syst
em_for_University

3. the Statista Fintech report, in (2019)/Tagat et al. (2019)

99
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

https://www.statista.com/topics/2404/fintech/

4.Świecka et al. (2021)/Zhao, Haidong; Zhang, Lini; Anong, SophiaJournal


of Financial Counseling and Planning, 2020/Somasundaram (2020)

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3958530

5.Chi-Fang Liu Chien-Ho Lin (2020)

https://www.frontiersin.org/articles/10.3389/fpsyg.2020.583768/full

6.Cuicui Wang Yun, Li Xuan Luo , Huijian Fu , Ziqi Ye1 and Guangwei
Deng (2022)

https://www.frontiersin.org/articles/10.3389/fnins.2022.844027/full

7. In the article entitled “Web Based Online Inventory Information System”


(2020) by S. Soegoto and F. Palalungan

https://www.researchgate.net/publication/
343512322_Web_Based_Online_Inventory_Information_System

8. The article by Fatona S.(2019) “The Era of Information and


Communication Technology (ICT) and digital innovation lead to dynamic
changes in the business environment"

https://files.eric.ed.gov/fulltext/EJ1161529/.

9. Jan Monique H. Ballena, Derek John M. Caday, Jude Anthon B. Iman,


Mrs. Ailene C. Rolle (2021) "Online Selling of Baked Goods: Understanding
the Lived Experiences of Online Sellers in Dasmarinas City, Cavite"/the
Department of Trade and Industry (DTI),

100
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

https://www.researchpublish.com/upload/book/Online%20Selling%20of
%20Baked-19022022-1.pdf

COLLEGE CAVITE
Ara Vista Village, Brgy. Biclatan Gen. Trias, Cavite

To whom this may concern;

This is to certify that the Thesis/Capstone entitled Web-Based Online Bakery


Management System Project for Rein Cakes and Pastries Shop of the students listed below
for the Bachelor of Science in Computer Engineering course has been checked and edited by the
undersigned Proofreader.

Given this 29th day of September 2023 at the College Department, AMA College Cavite.

Proponents:
1. ARMADO DARWIN V.
2. AGUIRRE JAN LUIS A.
3. DE VILLA JOHN VINCENT B.

Issued by: Cristina G. Galos


101
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

________________________
Name of Proofreader

Name: Darwin V. Armado

Address: BLK 64 LOT 29 DONALUZ ST.,BEL ALDEA

BRGY.SAN FRANCISCO,GENERAL TRIAS,CAVITE

Contact Numbers:09564790277

CAREER OBJECTIVE

To Achieve my Course Networking Administration and Learn Experience By Working on your


Company

PERSONAL INFORMATION

Date of Birth: June 10, 2002

Sex: Male

Civil Status: Single

Citizenship: Filipino

102
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

EDUCATIONAL ATTAINMENT

Bachelor’s Degree

AMA Computer College Cavite ,

Address: AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General Trias,
Cavite

Thesis Title: Web Based Online Bakery Shop Management System Project for Rein Cakes and
Pastries Shop

Technical Strand

Secondary School:

AMA Computer College Cavite, 2019-2020

Address AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan,
General Trias, Cavite

HONORS AND ACHIEVEMENT

Achievement, Date: NONE

Awarding Body:NONE

CO-CURRICULAR ACTIVITIES

103
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Event, Year:NONE

Sponsor Organization:NONE

Description:NONE

WORK EXPERIENCE

AMA Computer College Cavite ,

Position Held: Registrar

Detailed Job Descriptions: Inserting Student Registration

SEMINARS / TRAININGS ATTENDED

Seminar Title: You To The Modern System And Cloud Technology

AMA Computer College Cavite ,

Detailed Description of the Seminar / Training:

For Future References

REFERENCES

Name

Position, Company:None

Email address:Gipsyarmado@Gmail.com

Contact number:09564790277

104
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

105
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Name: John Vincent De Villa


106
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Address: Block 45 Lot 3 Tahanang Yaman Homes, Buenavista 2,


General Trias City, Cavite
Contact Numbers: 09770431551

CAREER OBJECTIVE

To be hired in a position that will apply my knowledge and skill to a productive line of work.

PERSONAL INFORMATION

Date of Birth: September 22, 2001


Sex: Male
Civil Status: Single
Citizenship: Filipino

EDUCATIONAL ATTAINMENT

Bachelor’s Degree
AMA Computer College Cavite
Address: AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General Trias,
Cavite
Thesis Title: Web Based Online Bakery Shop Management System Project for Rein Cakes and
Pastries Shop

Technical Strand
Secondary School:
AMA Computer College Cavite, 2020
Address AMA University Town Crisanto M. Delos Reyes Avenue, Brgy.
Biclatan, General Trias, Cavite

107
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

HONORS AND ACHIEVEMENT

Achievement, Date: NONE


Awarding Body:NONE

CO-CURRICULAR ACTIVITIES

Event, Year:NONE
Sponsor Organization:NONE
Description:NONE

WORK EXPERIENCE

AMA Computer College Cavite,


Position Held: Registrar
Detailed Job Descriptions: Inserting Student Registration

SEMINARS / TRAININGS ATTENDED

Seminar Title: Smart Social Networking


AMA Computer College Cavite, 2018
The seminar thought us on how to protect our data on the internet.

Seminar Title: You to The Modern System and Cloud Technology


AMA Computer College Cavite, 2022
The seminar thought us how cloud computing works, as well as on how a system
administrator does their work in the field of computing.

REFERENCES

Name
Position, Company: None
Email address: johnvincentdevilla@yahoo.com
Contact number:09564790277

108
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Reference Code

Admin Dashboard Login:

<?php

109
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

include '../components/connect.php';

session_start();

if(isset($_POST['submit'])){

$name = $_POST['name'];

$name = filter_var($name, FILTER_SANITIZE_STRING);

$pass = sha1($_POST['pass']);

$pass = filter_var($pass, FILTER_SANITIZE_STRING);

$select_admin = $pdo->prepare("SELECT * FROM `admin` WHERE name = ? AND password = ?");

$select_admin->execute([$name, $pass]);

if($select_admin->rowCount() > 0){

$fetch_admin_id = $select_admin->fetch(PDO::FETCH_ASSOC);

$_SESSION['admin_id'] = $fetch_admin_id['id'];

header('location:index.php');

}else{

$message[] = 'incorrect username or password!';

?>

110
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Removing Admin Accounts into Admin Dashboard:

<?php

include '../components/connect.php';

session_start();

$admin_id = $_SESSION['admin_id'];

if(!isset($admin_id)){

header('location:admin_login.php');

if(isset($_GET['delete'])){

$delete_id = $_GET['delete'];

$delete_admin = $pdo->prepare("DELETE FROM `admin` WHERE id = ?");

$delete_admin->execute([$delete_id]);

header('location:admin_accounts.php');

?>

Adding New Admin Accounts into Admin Dashboard:

111
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

<section class="accounts">

<h1 class="heading">admins account</h1>

<div class="box-container">

<div class="box">

<p>register new admin</p>

<a href="register_admin.php" class="option-btn">register</a>

</div>

<?php

$select_account = $pdo->prepare("SELECT * FROM `admin`");

$select_account->execute();

if($select_account->rowCount() > 0){

while($fetch_accounts = $select_account->fetch(PDO::FETCH_ASSOC)){

?>

<div class="box">

<p> admin id : <span><?= $fetch_accounts['id']; ?></span> </p>

<p> username : <span><?= $fetch_accounts['name']; ?></span> </p>

<div class="flex-btn">

<a href="admin_accounts.php?delete=<?= $fetch_accounts['id']; ?>" class="delete-btn"


onclick="return confirm('delete this account?');">delete</a>

<?php

if($fetch_accounts['id'] == $admin_id){

echo '<a href="update_profile.php" class="option-btn">update</a>';

112
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

?>

</div>

</div>

<?php

}else{

echo '<p class="empty">no accounts available</p>';

?>

</div>

</section>

Retreval of Messages from Database:

<section class="messages">

<h1 class="heading">messages</h1>

<div class="box-container">

<?php

$select_messages = $pdo->prepare("SELECT * FROM `messages`");

113
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

$select_messages->execute();

if($select_messages->rowCount() > 0){

while($fetch_messages = $select_messages->fetch(PDO::FETCH_ASSOC)){

?>

<div class="box">

<p> name : <span><?= $fetch_messages['name']; ?></span> </p>

<p> number : <span><?= $fetch_messages['number']; ?></span> </p>

<p> email : <span><?= $fetch_messages['email']; ?></span> </p>

<p> message : <span><?= $fetch_messages['message']; ?></span> </p>

<a href="messages.php?delete=<?= $fetch_messages['id']; ?>" class="delete-btn"


onclick="return confirm('delete this message?');">delete</a>

</div>

<?php

}else{

echo '<p class="empty">you have no messages</p>';

?>

</div>

</section>

Delete Messages Function:

if(isset($_GET['delete'])){

$delete_id = $_GET['delete'];

114
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

$delete_message = $pdo->prepare("DELETE FROM `messages` WHERE id = ?");

$delete_message->execute([$delete_id]);

header('location:messages.php');

Retreval of Current and Former Customer Orders in Orders Page:

<section class="placed-orders">

<h1 class="heading">placed orders</h1>

<div class="box-container">

<?php

$select_orders = $pdo->prepare("SELECT * FROM `orders`");

$select_orders->execute();

if($select_orders->rowCount() > 0){

while($fetch_orders = $select_orders->fetch(PDO::FETCH_ASSOC)){

?>

<div class="box">

<p> user id : <span><?= $fetch_orders['user_id']; ?></span> </p>

<p> placed on : <span><?= $fetch_orders['placed_on']; ?></span> </p>

<p> name : <span><?= $fetch_orders['name']; ?></span> </p>

<p> email : <span><?= $fetch_orders['email']; ?></span> </p>

<p> number : <span><?= $fetch_orders['number']; ?></span> </p>

<p> address : <span><?= $fetch_orders['address']; ?></span> </p>

115
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

<p> total products : <span><?= $fetch_orders['total_products']; ?></span> </p>

<p> total price : <span>₱<?= $fetch_orders['total_price']; ?>/-</span> </p>

<p> payment method : <span><?= $fetch_orders['method']; ?></span> </p>

<p> Payment Status:</p>

<p> Delivery Status:</p>

<form action="" method="POST">

<input type="hidden" name="order_id" value="<?= $fetch_orders['id']; ?>">

<select name="payment_status" class="drop-down">

<option value="" selected disabled><?= $fetch_orders['payment_status']; ?></option>

<option value="pending">pending</option>

<option value="completed">completed</option>

</form>

<form action="" method="POST">

<input type="hidden" name="order_id" value="<?= $fetch_orders['id']; ?>">

<select name="delivery_status" class="drop-down">

<option value="" selected disabled><?= $fetch_orders['delivery_status']; ?></option>

<option value="Preparing Order">Preparing Order</option>

<option value="Packing Order">Packing Order</option>

<option value="Order is on the way">On The Way</option>

<option value="Order Delivered">Delivered</option>

</select>

<div class="flex-btn">

116
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

<input type="submit" value="Update Payment Status" class="btn"


name="update_payment">

<input type="submit" value="Update Delivery Status" class="btn"


name="update_delivery">

<a href="placed_orders.php?delete=<?= $fetch_orders['id']; ?>" class="delete-btn"


onclick="return confirm('delete this order?');">delete</a>

</div>

</form>

</div>

<?php

}else{

echo '<p class="empty">no orders placed yet!</p>';

?>

Updating Payment Status in Orders Page:

if(isset($_POST['update_payment'])){

$order_id = $_POST['order_id'];

$payment_status = $_POST['payment_status'];

$update_status = $pdo->prepare("UPDATE `orders` SET payment_status = ? WHERE id = ?");

$update_status->execute([$payment_status, $order_id]);

$message[] = 'Payment Status Updated';

117
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Updating Delivery Status in Orders Page:

if(isset($_POST['update_delivery'])){

$order_id = $_POST['order_id'];

$delivery_status = $_POST['delivery_status'];

$update_status = $pdo->prepare("UPDATE `orders` SET delivery_status = ? WHERE id = ?");

$update_status->execute([$delivery_status, $order_id]);

$message[] = 'Order Status Updated!';

Removing an Order in Orders Page:

if(isset($_GET['delete'])){

$delete_id = $_GET['delete'];

$delete_order = $pdo->prepare("DELETE FROM `orders` WHERE id = ?");

$delete_order->execute([$delete_id]);

header('location:placed_orders.php');

Retrival of Products in Products Page:

<section class="update-product">

118
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

<h1 class="heading">update product</h1>

<?php

$update_id = $_GET['update'];

$show_products = $pdo->prepare("SELECT * FROM `products` WHERE id = ?");

$show_products->execute([$update_id]);

if($show_products->rowCount() > 0){

while($fetch_products = $show_products->fetch(PDO::FETCH_ASSOC)){

?>

<form action="" method="POST" enctype="multipart/form-data">

<input type="hidden" name="pid" value="<?= $fetch_products['id']; ?>">

<input type="hidden" name="old_image" value="<?= $fetch_products['image']; ?>">

<img src="uploaded_img/<?= $fetch_products['image']; ?>" alt="">

<span>update name</span>

<input type="text" required placeholder="enter product name" name="name"


maxlength="100" class="box" value="<?= $fetch_products['name']; ?>">

<span>update price</span>

<input type="number" min="0" max="9999999999" required placeholder="enter product


price" name="price" onkeypress="if(this.value.length == 10) return false;" class="box" value="<?=
$fetch_products['price']; ?>">

<span>update category</span>

<select name="category" class="box" required>

<option selected value="<?= $fetch_products['category']; ?>"><?=


$fetch_products['category']; ?></option>

<option value="Breads">Breads</option>

<option value="Cakes">Cakes</option>

</select>

119
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

<span>update image</span>

<input type="file" name="image" class="box" accept="image/jpg, image/jpeg, image/png,


image/webp">

<div class="flex-btn">

<input type="submit" value="update" class="btn" name="update">

<a href="products.php" class="option-btn">go back</a>

</div>

</form>

<?php

}else{

echo '<p class="empty">no products added yet!</p>';

?>

</section>

Updating a Product in Products Page:

if(isset($_POST['update'])){

$pid = $_POST['pid'];

$pid = filter_var($pid, FILTER_SANITIZE_STRING);

$name = $_POST['name'];

$name = filter_var($name, FILTER_SANITIZE_STRING);

$price = $_POST['price'];

120
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

$price = filter_var($price, FILTER_SANITIZE_STRING);

$category = $_POST['category'];

$category = filter_var($category, FILTER_SANITIZE_STRING);

$update_product = $pdo->prepare("UPDATE `products` SET name = ?, category = ?, price = ?


WHERE id = ?");

$update_product->execute([$name, $category, $price, $pid]);

$message[] = 'product updated!';

$old_image = $_POST['old_image'];

$image = $_FILES['image']['name'];

$image = filter_var($image, FILTER_SANITIZE_STRING);

$image_size = $_FILES['image']['size'];

$image_tmp_name = $_FILES['image']['tmp_name'];

$image_folder = 'uploaded_img/'.$image;

if(!empty($image)){

if($image_size > 2000000){

$message[] = 'images size is too large!';

}else{

$update_image = $pdo->prepare("UPDATE `products` SET image = ? WHERE id = ?");

$update_image->execute([$image, $pid]);

move_uploaded_file($image_tmp_name, $image_folder);

unlink('uploaded_img/'.$old_image);

$message[] = 'image updated!';

121
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

?>

Updating Information on Current Administrator Account:

if(isset($_POST['update'])){

$pid = $_POST['pid'];

$pid = filter_var($pid, FILTER_SANITIZE_STRING);

$name = $_POST['name'];

$name = filter_var($name, FILTER_SANITIZE_STRING);

$price = $_POST['price'];

$price = filter_var($price, FILTER_SANITIZE_STRING);

$category = $_POST['category'];

$category = filter_var($category, FILTER_SANITIZE_STRING);

$update_product = $pdo->prepare("UPDATE `products` SET name = ?, category = ?, price = ?


WHERE id = ?");

$update_product->execute([$name, $category, $price, $pid]);

$message[] = 'product updated!';

122
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

$old_image = $_POST['old_image'];

$image = $_FILES['image']['name'];

$image = filter_var($image, FILTER_SANITIZE_STRING);

$image_size = $_FILES['image']['size'];

$image_tmp_name = $_FILES['image']['tmp_name'];

$image_folder = 'uploaded_img/'.$image;

if(!empty($image)){

if($image_size > 2000000){

$message[] = 'images size is too large!';

}else{

$update_image = $pdo->prepare("UPDATE `products` SET image = ? WHERE id = ?");

$update_image->execute([$image, $pid]);

move_uploaded_file($image_tmp_name, $image_folder);

unlink('uploaded_img/'.$old_image);

$message[] = 'image updated!';

?>

Retrival of Users Accounts in Database:

<section class="accounts">

123
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

<h1 class="heading">users account</h1>

<div class="box-container">

<?php

$select_account = $pdo->prepare("SELECT * FROM `users`");

$select_account->execute();

if($select_account->rowCount() > 0){

while($fetch_accounts = $select_account->fetch(PDO::FETCH_ASSOC)){

?>

<div class="box">

<p> user id : <span><?= $fetch_accounts['id']; ?></span> </p>

<p> username : <span><?= $fetch_accounts['name']; ?></span> </p>

<a href="users_accounts.php?delete=<?= $fetch_accounts['id']; ?>" class="delete-btn"


onclick="return confirm('delete this account?');">delete</a>

</div>

<?php

}else{

echo '<p class="empty">no accounts available</p>';

?>

</div>

124
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

</section>

Deletion of a User Account:

if(isset($_GET['delete'])){

$delete_id = $_GET['delete'];

$delete_users = $pdo->prepare("DELETE FROM `users` WHERE id = ?");

$delete_users->execute([$delete_id]);

$delete_order = $pdo->prepare("DELETE FROM `orders` WHERE user_id = ?");

$delete_order->execute([$delete_id]);

$delete_cart = $pdo->prepare("DELETE FROM `cart` WHERE user_id = ?");

$delete_cart->execute([$delete_id]);

header('location:users_accounts.php');

Adding an Item into the Customer's Cart:

<?php

if(isset($_POST['add_to_cart'])){

$verify_check = $pdo->prepare("SELECT * FROM users WHERE is_verified = 1");

$verify_check->execute($is_verified);

if($user_id == ''){

header('location: ../login.php');

}else if($verify_check = 0){

125
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

$message[] = 'Please verify your account first before placing orders.';

else{

$pid = $_POST['pid'];

$pid = filter_var($pid, FILTER_SANITIZE_STRING);

$name = $_POST['name'];

$name = filter_var($name, FILTER_SANITIZE_STRING);

$price = $_POST['price'];

$price = filter_var($price, FILTER_SANITIZE_STRING);

$image = $_POST['image'];

$image = filter_var($image, FILTER_SANITIZE_STRING);

$qty = $_POST['qty'];

$qty = filter_var($qty, FILTER_SANITIZE_STRING);

$check_cart_numbers = $pdo->prepare("SELECT * FROM `cart` WHERE name = ? AND user_id


= ?");

$check_cart_numbers->execute([$name, $user_id]);

if($check_cart_numbers->rowCount() > 0){

$message[] = 'already added to cart!';

}else{

$insert_cart = $pdo->prepare("INSERT INTO `cart`(user_id, pid, name, price, quantity, image)


VALUES(?,?,?,?,?,?)");

$insert_cart->execute([$user_id, $pid, $name, $price, $qty, $image]);

$message[] = 'Item/s Added to your Cart!';

126
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

?>

Sending of the Verification Email to the Customer's Email Address:

<?php

use PHPMailer\PHPMailer\PHPMailer;

use PHPMailer\PHPMailer\SMTP;

use PHPMailer\PHPMailer\Exception;

require 'PHPMailer/src/Exception.php';

require 'PHPMailer/src/PHPMailer.php';

require 'PHPMailer/src/SMTP.php';

function sendVerificationEmail($to, $verification_code) {

$mail = new PHPMailer();

$mail->isSMTP();

$mail->Host = 'smtp.hostinger.com';

$mail->SMTPAuth = true;

127
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

$mail->Username = 'verification@reincakesandpastries.shop'; // Your SMTP username

$mail->Password = '7Ju6969VdPnRVRct5PCy~'; // Your SMTP password

$mail->SMTPSecure = 'ssl';

$mail->Port = 465;

$mail->setFrom('verification@reincakesandpastries.shop', 'Rein Cakes and Pasties Shop', true);

$mail->addAddress($to);

$mail->isHTML(true);

$mail->Subject = 'Email Verification';

$mail->Body = 'Click the following link to verify your email: <br>

<a href="http://reincakesandpastries.shop/verify.php?code='.
$verification_code.'">Verify</a><br>

<br>

Please ignore and delete this email if you are not meant to receive this email.';

if ($mail->send()) {

return true;

} else {

return false;

?>

128
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Database Connection:

<?php

$host = "localhost";

$dbname = "u222638551_food_db";

$username = "root";

$password = "";

try {

$pdo = new PDO("mysql:host=$host;dbname=$dbname", $username, $password);

// Set PDO to throw exceptions on errors

$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

} catch (PDOException $e) {

die("Error: " . $e->getMessage());

Deleting an Item in the Customer's Cart:

if(isset($_POST['delete'])){

$cart_id = $_POST['cart_id'];

$delete_cart_item = $pdo->prepare("DELETE FROM `cart` WHERE id = ?");

$delete_cart_item->execute([$cart_id]);

$message[] = 'cart item deleted!';

129
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

Deleting All Items in the Customer's Cart:

if(isset($_POST['delete_all'])){

$delete_cart_item = $pdo->prepare("DELETE FROM `cart` WHERE user_id = ?");

$delete_cart_item->execute([$user_id]);

// header('location:cart.php');

$message[] = 'deleted all from cart!';

Updating the Quantity of a Specific Item in the Customer's Cart:

if(isset($_POST['update_qty'])){

$cart_id = $_POST['cart_id'];

$qty = $_POST['qty'];

$qty = filter_var($qty, FILTER_SANITIZE_STRING);

$update_qty = $pdo->prepare("UPDATE `cart` SET quantity = ? WHERE id = ?");

$update_qty->execute([$qty, $cart_id]);

$message[] = 'cart quantity updated';

Retrival of the Current Items inside the Customer's Cart in the Database and the computation of
the Total Price:

<section class="products">

<h1 class="title">your cart</h1>

130
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

<div class="box-container">

<?php

$grand_total = 0;

$select_cart = $pdo->prepare("SELECT * FROM `cart` WHERE user_id = ?");

$select_cart->execute([$user_id]);

if($select_cart->rowCount() > 0){

while($fetch_cart = $select_cart->fetch(PDO::FETCH_ASSOC)){

?>

<form action="" method="post" class="box">

<input type="hidden" name="cart_id" value="<?= $fetch_cart['id']; ?>">

<a href="quick_view.php?pid=<?= $fetch_cart['pid']; ?>" class="fas fa-eye"></a>

<button type="submit" class="fas fa-times" name="delete" onclick="return confirm('delete


this item?');"></button>

<img src="uploaded_img/<?= $fetch_cart['image']; ?>" alt="">

<div class="name"><?= $fetch_cart['name']; ?></div>

<div class="flex">

<div class="price"><span>₱</span><?= $fetch_cart['price']; ?></div>

<input type="number" name="qty" class="qty" min="1" max="99" value="<?=


$fetch_cart['quantity']; ?>" maxlength="2">

<button type="submit" class="fas fa-edit" name="update_qty"></button>

</div>

<div class="sub-total"> sub total : <span>₱<?= $sub_total = ($fetch_cart['price'] *


$fetch_cart['quantity']); ?>/-</span> </div>

</form>

<?php

131
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

$grand_total += $sub_total;

}else{

echo '<p class="empty">your cart is empty</p>';

?>

</div>

<div class="cart-total">

<p>cart total : <span>₱<?= $grand_total; ?></span></p>

<a href="checkout.php" class="btn <?= ($grand_total > 1)?'':'disabled'; ?>">proceed to


checkout</a>

</div>

<div class="more-btn">

<form action="" method="post">

<button type="submit" class="delete-btn <?= ($grand_total > 1)?'':'disabled'; ?>"


name="delete_all" onclick="return confirm('delete all from cart?');">delete all</button>

</form>

<a href="menu.php" class="btn">continue shopping</a>

</div>

</section>

Checking if the user has an address on Checkout and the Checkout Process itself:

132
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

if(isset($_POST['submit'])){

$name = $_POST['name'];

$name = filter_var($name, FILTER_SANITIZE_STRING);

$number = $_POST['number'];

$number = filter_var($number, FILTER_SANITIZE_STRING);

$email = $_POST['email'];

$email = filter_var($email, FILTER_SANITIZE_STRING);

$method = $_POST['method'];

$method = filter_var($method, FILTER_SANITIZE_STRING);

$address = $_POST['address'];

$address = filter_var($address, FILTER_SANITIZE_STRING);

$total_products = $_POST['total_products'];

$total_price = $_POST['total_price'];

$check_cart = $pdo->prepare("SELECT * FROM `cart` WHERE user_id = ?");

$check_cart->execute([$user_id]);

if($check_cart->rowCount() > 0){

if($address == ''){

$message[] = 'please add your address!';

}else{

$insert_order = $pdo->prepare("INSERT INTO `orders`(user_id, name, number, email,


method, address, total_products, total_price) VALUES(?,?,?,?,?,?,?,?)");

133
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

$insert_order->execute([$user_id, $name, $number, $email, $method, $address,


$total_products, $total_price]);

$delete_cart = $pdo->prepare("DELETE FROM `cart` WHERE user_id = ?");

$delete_cart->execute([$user_id]);

$message[] = 'order placed successfully!';

}else{

$message[] = 'your cart is empty';

?>

Retreval of Items inside the Customer's Cart in the Checkout Page:

<section class="checkout">

<h1 class="title">order summary</h1>

<form action="" method="post">

134
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

<div class="cart-items">

<h3>Cart Items</h3>

<h3>Any Location within General Trias Service Charge -₱80</h3>

<?php

$grand_total = 0;

$cart_items[] = '';

$select_cart = $pdo->prepare("SELECT * FROM `cart` WHERE user_id = ?");

$select_cart->execute([$user_id]);

if($select_cart->rowCount() > 0){

while($fetch_cart = $select_cart->fetch(PDO::FETCH_ASSOC)){

$cart_items[] = $fetch_cart['name'].' ('.$fetch_cart['price'].' x '. $fetch_cart['quantity'].') -


';

$total_products = implode($cart_items);

$total_price += ($fetch_cart['price'] * $fetch_cart['quantity'] + 80);

//$final_price = $grand_total + 80;

?>

<p><span class="name"><?= $fetch_cart['name']; ?></span><span class="price">₱<?=


$fetch_cart['price']; ?> x <?= $fetch_cart['quantity']; ?></span></p>

<?php

}else{

echo '<p class="empty">Your cart is currently empty!</p>';

?>

<p class="grand-total"><span class="name">Total:</span><span class="price">₱<?=


$total_price; ?></span></p>

<a href="cart.php" class="btn">View Cart</a>

135
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

</div>

<input type="hidden" name="total_products" value="<?= $total_products; ?>">

<input type="hidden" name="total_price" value="<?= $total_price; ?>" value="">

<input type="hidden" name="name" value="<?= $fetch_profile['name'] ?>">

<input type="hidden" name="number" value="<?= $fetch_profile['number'] ?>">

<input type="hidden" name="email" value="<?= $fetch_profile['email'] ?>">

<input type="hidden" name="address" value="<?= $fetch_profile['address'] ?>">

<div class="user-info">

<h3>Your Information</h3>

<p><i class="fas fa-user"></i><span><?= $fetch_profile['name'] ?></span></p>

<p><i class="fas fa-phone"></i><span><?= $fetch_profile['number'] ?></span></p>

<p><i class="fas fa-envelope"></i><span><?= $fetch_profile['email'] ?></span></p>

<a href="update_profile.php" class="btn">Update Info</a>

<h3>Delivery Address</h3>

<p><i class="fas fa-map-marker-alt"></i><span><?php if($fetch_profile['address'] == ''){echo


'please enter your address';}else{echo $fetch_profile['address'];} ?></span></p>

<a href="update_address.php" class="btn">Update Address</a>

<select name="method" class="box" required>

<option value="" disabled selected>Payment Method</option>

<option value="cash on pick up">Cash on Delivery/Pickup</option>

<input type="submit" value="Place Order" class="btn <?php if($fetch_profile['address'] == '')


{echo 'disabled';} ?>" style="width:100%; background:var(--red); color:var(--white);"
name="submit">

</div>

136
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

</form>

</section>

Customer Login:

if(isset($_POST['submit'])){

$email = $_POST['email'];

$email = filter_var($email, FILTER_SANITIZE_STRING);

$pass = sha1($_POST['pass']);

$pass = filter_var($pass, FILTER_SANITIZE_STRING);

$select_user = $pdo->prepare("SELECT * FROM `users` WHERE email = ? AND password = ?");

$select_user->execute([$email, $pass]);

$row = $select_user->fetch(PDO::FETCH_ASSOC);

if($select_user->rowCount() > 0){

$_SESSION['user_id'] = $row['id'];

header('location:index.php');

}else{

$message[] = 'incorrect username or password!';

137
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

?>

User Registration:

if(isset($_POST['submit'])){

$name = $_POST['name'];

$name = filter_var($name, FILTER_SANITIZE_STRING);

$email = $_POST['email'];

$email = filter_var($email, FILTER_SANITIZE_STRING);

$number = $_POST['number'];

$number = filter_var($number, FILTER_SANITIZE_STRING);

$pass = sha1($_POST['pass']);

$pass = filter_var($pass, FILTER_SANITIZE_STRING);

$cpass = sha1($_POST['cpass']);

$cpass = filter_var($cpass, FILTER_SANITIZE_STRING);

$select_user = $pdo->prepare("SELECT * FROM `users` WHERE email = ? OR number = ?");

$select_user->execute([$email, $number]);

$row = $select_user->fetch(PDO::FETCH_ASSOC);

if($select_user->rowCount() > 0){

$message[] = 'email or number already exists!';

}else{

if($pass != $cpass){

$message[] = 'confirm password not matched!';

138
COLLEGE CAVITE
AMA University Town Crisanto M. Delos Reyes Avenue, Brgy. Biclatan, General
Trias, Cavite TEL. 0960 333 6076

}else{

$verify_code = md5(uniqid());

$insert_user = $pdo->prepare("INSERT INTO `users`(name, email, number, password,


verify_code) VALUES(?,?,?,?,?)");

$insert_user->execute([$name, $email, $number, $cpass, $verify_code]);

require_once './components/send_email_verify.php';

sendVerificationEmail($email, $verify_code);

header('Location: index.php');

exit();

139

You might also like