ONLINE DIGITAL PRODUCT WEBSITE Yash Ambre
ONLINE DIGITAL PRODUCT WEBSITE Yash Ambre
ONLINE DIGITAL PRODUCT WEBSITE Yash Ambre
A Project Report
2023-2024
1
DNYAN PRASARAK SHIKSHAN SANSTHA'S
CERTIFICATE
..................................
.................................. MS MEGHA DHORE
( )
...................................
................................... EXAMINER
( )
2
ABSTRACT
3
LIST OF FIGURES
o Admin Module
o Manage Moderators
o Manage Products
o Manage Users
o Manage Orders
o Moderator Module
o User Module
E-R Diagrams & DFD
3.5 Login
3.6 User Details
3.7 Products Details
3.8 Products Orders
3.9 COMPLETE DIAGRAM
3.10 LOGIN DFD
3.11 REGISTRATION DFD
3.12 ADMIN DFD
3.13 MODERATOR DFD
LIST OF TABLES
4
ACKNOWLEDGEMENT
I take this occasion to thank God, almighty for blessing us with
his grace and taking our endeavor to a successful culmination.
I extend my sincere and heartfelt thanks to our esteemed
guide, Mrs. Megha D, for providing me with the right guidance
and advice at the crucial junctures and for showing me the
right way. I extend my sincere thanks to our respected Head
of the division Mrs. MEGHA DHOTRE, for allowing us to use
the facilities available. I would like to thank the other faculty
members also, at this occasion. Last but not the least, I would
like to thank my friends and family for the support and
encouragement they have given me during the course of our
work.
5
TABLE OF CONTENTS
ABSTRACT
LIST OF FIGURE
LIST OF TABLES
ACKNOWLEDEGEMENT
• INTRODUCTION
PAGE
o PROJECT OBJECTIVE
8
o PROJECT OVERVIEW
8
o PROJECT SCOPE
9
o STUDY OF SYSTEMS
9
§ MODULES
9
• ADMIN
10
• MODERATOR
11
• USER
13
• SYSTEM ANALYSIS
18
o EXISTING SYSTEM
18
6
o PROPOSED SYSTEM
18
o SYSTEM REQUIREMENT SPECIFICATION
19
§ GENERAL DESCRIPTION
19
§ SYSTEM OBJECTIVES
19
§ SYSTEM REQUIREMENT
19
• NON FUNCTIONAL REQUIREMENT
19
• FUNCTIONAL REQUIREMENT
20
7
• SYSTEM DESIGN
23
o INPUT AND OUTPUT DESIGN
24
§ INPUT DESIGN
24
§ OUTPUT DESIGN
24
o DATABASE
25
o SYSTEM TOOLS
25
§ FRONT END
26
§ BACK END
27
o TABLES
28
o E-R DIAGRAMS
30
o DATA FLOW DIAGRAMS (DFD)
32
o SCREEN SHOTS
36
o SAMPLE CODES
43
• CONCLUSION
131
• REFERENCES
132
8
INTRODUCTION
This project is a web based shopping system for an existing shop. The
project objective is to deliver the online shopping application into
android platform.
9
The Server process the customers and the items are shipped to the
address submitted by them. The application was designed into two
modules first is for the customers who wish to buy the articles.
Second is for the storekeepers who maintains and updates the
information pertaining to the articles and those of the customers.
The end user of this product is a departmental store where the
application is hosted on the web and the administrator maintains the
database. The application which is deployed at the customer
database, the details of the items are brought forward from the
database for the customer view based on the selection through the
menu and the database of all the products are updated at the end of
each transaction. Data entry into the application can be done
through various screens designed for various levels of users. Once
the authorized personnel feed the relevant data into the system,
several reports could be generated as per the security.
1.4.1 MODULES:
10
2 Administrator
3 Moderators
4 Users
1.4.1.1 ADMINISTRATOR
• Manage Moderators
• Manage Products
• Manage Users
• Manage Orders
MANAGE
PRODUCT
MANAGE
MODERATOR
11
MANAGE MODERATOR
SEARCH
MODERATOR
REMOVE
MODERATOR
1 Add Moderator
2 Block moderator
12
1 Remove Moderator
2 Search moderator
SEARCH
PRODUCTS
DELETE MANAGE
PRODUCTS PRODUCTS ADD PRODUCTS
VIEW PRODUCTS
3 Add Products
13
can add new products into the existing system with all its details
including an image.
4 Delete Products
5 Search products
Admin will have a list view of all the existing products. He can also
search for a particular product by name.
MANAGE USER
BLOCK/UNBLOCK
USER
VIEW PRODUCTS
14
6 View Users
The admin will have a list view of all the users registered in the
system. Admin can view all the details of each user in the list except
password.
7 Add Users
MANAGE ORDERS
9 View Order
10 Delete order
Admin can delete order from the orders list when the product is
taken for delivery.
15
1.4.1.2 MODERATORS
MANAGE MANAGE
MODERATOR
PRODUCTS ORDERS
MANAGE USERS
1 Manage products
2 Manage users
3 Manage orders
1.4.1.3 USERS
16
VIEW PRODUCT
PURCHASE SEARCH
USER
PRODUCT PRODUCT
EDIT PROFILE
11 Registration
12 Login
A user must login with his user name and password to the system
after registration.
13 View Products
User can view the list of products based on their names after
successful login. A detailed description of a particular product with
17
product name, products details, product image, price can be viewed
by users.
14 Search Product
15 Add to cart
The user can add the desired product into his cart by clicking add to
cart option on the product.
He can view his cart by clicking on the cart button. All products
added by cart can be viewed in the cart. User can remove an item
from the cart by clicking remove.
16 Submit Cart
After confirming the items in the cart the user can submit the cart by
providing a delivery address.On successful submitting the cart will
become empty.
17 History
18 Edit Profile
18
SYSTEM ANALYSIS
The current system for shopping is to visit the shop manually and
from the available product choose the item customer want and
buying the item by payment of the price of the item .
1. It is less user-friendly
2. User must go to shop and select products.
3. It is difficult to identify the required product.
4. Description of the product limited.
5. It is a time consuming process
6. Not in reach of distantusers.
In the proposed system customer need not go to the shop for buying
the products. He can order the product he wish to buy through the
application in his Smartphone. The shop owner will be admin of the
system. Shop owner can appoint moderators who will help owner in
managing the customers and product orders. The system also
recommends a home delivery system for the purchased products.
19
2.3 SYSTEM REQUIREMENT SPECIFICATION
Product Description:
Problem Statement:
i. EFFICIENCY REQUIREMENT
20
The system should provide a reliable environment to both customers
and owner. All orders should be reaching at the admin without any
errors.
Implementation of the system using css and html in front end with
jsp as back end and it will be used for database connectivity. And the
database part is developed by mysql. Responsive web designing is
used for making the website compatible for any type of screen.
v. DELIVERY REQUIREMENT
USER
19 USER LOGIN
Description of feature
This feature used by the user to login into system. A user must login
with his user name and password to the system after registration. If
they are invalid, the user not allowed to enter the system.
Functional requirement
21
20 REGISTER NEW USER
Description of feature
Functional requirement
Description of feature
The user can add the desired product into his cart by clicking add to
cart option on the product. He can view his cart by clicking on the
cart button. All products added by cart can be viewed in the cart.
User can remove an item from the cart by clicking remove. After
confirming the items in the cart the user can submit the cart by
providing a delivery address. On successful submitting the cart will
become empty.
Functional requirement
ADMIN
21 MANAGE USER
Description of feature
The administrator can add user, delete user, view user and block
user.
22
22 MANAGE MODERATOR
Description of feature
» MANAGE PRODUCTS
Description of feature
The administrator can add product, delete product and view product.
23 MANAGE ORDERS
Description of feature
Functional requirements
MODERATOR
Description of features
Functional requirement
23
SYSTEM DESIGN
System design is the solution for the creation of a new system. This
phase focuses on the detailed implementation of the feasible
system. It emphasis on translating design. Specifications to
performance specification. System design has two phases of
development
25 Logical design
26 Physical design
Input design is the link that ties the information system into the
world of its
24
to a computer based format in the input design. Input data are
collected and organized into groups of similar data. Once identified,
the appropriate input media are selected for processing. All the input
data are validated and if any data violates any conditions, the user is
warned by a message. If the data satisfies all the conditions, it is
transferred to the appropriate tables in the database. In this project
the student details are to be entered at the time of registration. A
page is designed for this purpose which is user friendly and easy to
use. The design is done such that users get appropriate messages
when exceptions occur.
3.2 DATABASE
DATABASE DESIGN
2. Primary key - the field that is unique for all the record
occurrences.
3. Foregin Key - the field used to set relation between tables.
25
3.3 SYSTEM TOOLS
The various system tools that have been used in developing both the
front end and the back end of the project are being discussed in this
chapter.
3.3.1.FRONT END
1. LARAVEL
CSS is a style sheet language used for describing the look and
formatting of a document written in a markup language.
26
3. Java Script
MySQL
27
3.4 TABLES
2 LOGIN
3 USER DETAILS
28
4 PRODUCT DETAILS
5 PRODUCT ORDERS
29
3.5 E-R DIAGRAMS
6 LOGIN
Login
7 USER DETAILS
User Details
8 PRODUCT DETAILS
Product Details
30
9 PRODUCT ORDERS
Product Orders
Deilvery
Order ID Product ID User ID
Address
10 COMPLETE DIAGRAM
Product
user id Product id user id Products id
Name
Login deilvery
order id Photo Description
Name address
Email Id Price
Mobile NO
31
3.6 DATA FLOW DIAGRAM
EXTERNAL ENTITY
PROCESS
DATAFLOW
The data flow shows the flow of information from a source to its
destination. Data flow is represented by a line, with arrowheads
showing the direction of flow. Information always flows to or from a
process and may be written, verbal or electronic. Each data flow may
be referenced by the processes or data stores at its head and tail, or
by a description of its contents.
DATA STORE
32
A data store is a holding place for information within the system: It is
represented by an open ended narrow rectangle. Data stores may be
long-term files such as sales ledgers, or may be short-term
accumulations: for example batches of documents that are waiting
to be processed. Each data store should be given a reference
followed by an arbitrary number.
11 LOGIN DFD
LOGIN DB
IF YES
MAIN PAGE
33
12 REGISTRATION DFD
REGISTRA
ATION DB
CHECK
USER ENTER DETAILS VALIDITY
SUCCESSFUL
LOGIN PAGE
34
13 ADMIN DFD ADD/
REMOVE
USER
DETAIL
DB
MANAGE
MODERATOR
BLOCK/
SEARCH
ADD/
REMOVE
MANAGE BLOCK
USER /VIEW
ADMIN
ADD/ PRODUCT
DELETE DETAIL
DB
MANAGE
PRODUCT
SEARCH
VIEW
MANAGE
ORDER
PRODUCT
DELETE ORDER
DB
35
14 MODERATOR DFD USER
ADD/
REMOVE DETAIL
DB
MANAGE
USER
BLOCK
/VIEW
ADD/ PRODUCT
DELETE
DETAIL
DB
MANAGE
MODERATOR
PRODUCT
SEARCH
VIEW
MANAGE
ORDER
DELETE PRODUCT
ORDER
DB
36
3.7 SCREEN SHOTS
16 ADMIN PANEL
37
17 PRODUCTS PAGE ADMIN SIDE
18 SELLER REGISTRATION
38
19 SELLER SIDE DASHBOARD
39
21 CUSTOMER REGISTRATION PAGE
40
23 INSIDE PRODUCT PAGE
41
25 MY CART (CART PAGE)
42
27 PAYMENT PAGE
43
3.8 SAMPLE CODE
<!doctype html>
<html lang="en">
<head>
<meta name="csrf-token"
content="S3vzAqscgglAiQxW6LOuldeIyxGud19HPR7X3DeZ">
<meta name="app-url"
content="//accunityservices.com/wordpress/accohub/">
<meta name="file-base-url"
content="//accunityservices.com/wordpress/accohub/public/">
<meta charset="utf-8">
<link rel="icon"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/img/placeholder.jpg">
<title> | </title>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Poppins:300,400,500
,600,700">
44
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/vendors.css">
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/aiz-core.css">
<style>
body {
font-size: 12px;
</style>
<script>
AIZ.local = {
45
</div>
</div>
<script
src="https://accunityservices.com/wordpress/accohub/public/assets
/js/vendors.js"></script>
<script
src="https://accunityservices.com/wordpress/accohub/public/assets
/js/aiz-core.js"></script>
<script type="text/javascript">
function autoFill(){
$('#email').val('admin@example.com');
$('#password').val('123456');
</script>
<script type="text/javascript">
</script>
</body>
</html>
30 ADMIN DASHBOARD
<html lang="en">
46
<head>
<meta name="csrf-token"
content="JIJCgxsYYVtzi7nmKrQ9kzrSCk7tFv4tv7inydno">
<meta name="app-url"
content="//accunityservices.com/wordpress/accohub/">
<meta name="file-base-url"
content="//accunityservices.com/wordpress/accohub/public/">
<meta charset="utf-8">
<link rel="icon"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/img/placeholder.jpg">
<title> | </title>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Poppins:300,400,500
,600,700">
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/vendors.css">
47
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/aiz-core.css">
<style>
body {
font-size: 12px;
</style>
<script>
AIZ.local = {
browse: 'Browse',
48
resume_upload: 'Resume upload',
uploading: 'Uploading',
processing: 'Processing',
complete: 'Complete',
file: 'File',
files: 'Files',
</script>
</head>
<body class>
<div class="aiz-main-wrapper">
<div class="aiz-sidebar-wrap">
<div class="aiz-side-nav-logo-wrap">
<a href="https://accunityservices.com/wordpress/accohub/admin"
class="d-block text-left">
<img class="mw-100"
src="https://accunityservices.com/wordpress/accohub/public/uploa
49
ds/all/E5tPTg2P460lm5RH2BPOT5IAGyDZmX8iaCxfBUQk.png"
class="brand-icon" alt>
</a>
</div>
<div class="aiz-side-nav-wrap">
</div>
</ul>
<li class="aiz-side-nav-item">
<a href="https://accunityservices.com/wordpress/accohub/admin"
class="aiz-side-nav-link">
<span class="aiz-side-nav-text">Dashboard</span>
</a>
</li>
50
<li class="aiz-side-nav-item">
<span class="aiz-side-nav-text">Products</span>
<span class="aiz-side-nav-arrow"></span>
</a>
<li class="aiz-side-nav-item">
<a class="aiz-side-nav-link"
href="https://accunityservices.com/wordpress/accohub/admin/prod
ucts/create">
</a>
</li>
<li class="aiz-side-nav-item">
<a
href="https://accunityservices.com/wordpress/accohub/admin/prod
ucts/all" class="aiz-side-nav-link">
</a>
</li>
51
<li class="aiz-side-nav-item">
<a
href="https://accunityservices.com/wordpress/accohub/admin/prod
ucts/admin" class="aiz-side-nav-link ">
</a>
</li>
<li class="aiz-side-nav-item">
<a
href="https://accunityservices.com/wordpress/accohub/admin/prod
ucts/seller" class="aiz-side-nav-link ">
</a>
</li>
<li class="aiz-side-nav-item">
<a
href="https://accunityservices.com/wordpress/accohub/admin/digit
alproducts" class="aiz-side-nav-link ">
</a>
</li>
<li class="aiz-side-nav-item">
52
<a
href="https://accunityservices.com/wordpress/accohub/admin/prod
uct-bulk-upload/index" class="aiz-side-nav-link">
</a>
</li>
<li class="aiz-side-nav-item">
<a
href="https://accunityservices.com/wordpress/accohub/admin/prod
uct-bulk-export" class="aiz-side-nav-link">
</a>
script type="text/javascript">
AIZ.plugins.chart('#pie-1',{
type: 'doughnut',
data: {
labels: [
],
datasets: [
53
{
data: [
4,
0,
],
backgroundColor: [
"#fd3995",
"#34bfa3",
"#5d78ff",
'#fdcb6e',
'#d35400',
'#8e44ad',
'#006442',
'#4D8FAC',
'#CA6924',
'#C91F37'
},
54
options: {
cutoutPercentage: 70,
legend: {
labels: {
fontFamily: 'Poppins',
boxWidth: 10,
usePointStyle: true
},
onClick: function () {
return '';
},
position: 'bottom'
});
{_token:'JIJCgxsYYVtzi7nmKrQ9kzrSCk7tFv4tv7inydno', locale:locale},
function(data){
location.reload();
});
});
55
});
function menuSearch(){
filter = $("#menu-search").val().toUpperCase();
items = $("#main-menu").find("a");
items = items.filter(function(i,item){
if($(item).find(".aiz-side-nav-
text")[0].innerText.toUpperCase().indexOf(filter) > -1 &&
$(item).attr('href') !== '#'){
return item;
});
$("#main-menu").addClass('d-none');
$("#search-menu").html('')
56
$("#search-menu").append(`<li
class="aiz-side-nav-item"><a href="${link}" class="aiz-side-nav-
link"><i class="las la-ellipsis-h aiz-side-nav-
icon"></i><span>${text}</span></a></li`);
}else{
$("#search-menu").html(`<li class="aiz-
side-nav-item"><span class="text-center text-muted d-
block">Nothing found</span></li>`);
}else{
$("#main-menu").removeClass('d-none');
$("#search-menu").html('')
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
57
<meta name="csrf-token"
content="u451i2LrjUBvUc4b1uErIVAw3BQWUtkbmiVlPnGJ">
<meta name="app-url"
content="//accunityservices.com/wordpress/accohub/">
<meta name="file-base-url"
content="//accunityservices.com/wordpress/accohub/public/">
<title> | </title>
<meta charset="utf-8">
<meta itemprop="image"
content="https://accunityservices.com/wordpress/accohub/public/a
ssets/img/placeholder.jpg">
58
<meta name="twitter:description" content>
<meta name="twitter:image"
content="https://accunityservices.com/wordpress/accohub/public/a
ssets/img/placeholder.jpg">
<meta property="og:url"
content="https://accunityservices.com/wordpress/accohub" />
<meta property="og:image"
content="https://accunityservices.com/wordpress/accohub/public/a
ssets/img/placeholder.jpg" />
<link rel="icon"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/img/placeholder.jpg">
<link
href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,
400,400i,600,600i,700,700i,800,800i&display=swap"
rel="stylesheet">
59
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/vendors.css">
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/aiz-core.css">
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/custom-style.css">
<script>
AIZ.local = {
browse: 'Browse',
60
upload_paused: 'Upload paused',
uploading: 'Uploading',
processing: 'Processing',
complete: 'Complete',
file: 'File',
files: 'Files',
</script>
<style>
body{
font-weight: 400;
:root{
--primary: #e62e04;
--hov-primary: #e62e04;
--soft-primary: rgba(230,46,4,0.15);
61
}
#map{
width: 100%;
height: 250px;
#edit_map{
width: 100%;
height: 250px;
</style>
</head>
<body>
<a
href="https://accunityservices.com/wordpress/accohub/users/login"
class="text-reset d-inline-block opacity-60 py-2">Login</a>
62
</li>
<li class="list-inline-item">
<a
href="https://accunityservices.com/wordpress/accohub/users/regist
ration" class="text-reset d-inline-block opacity-60 py-
2">Registration</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<img
src="https://accunityservices.com/wordpress/accohub/public/uploa
63
ds/all/E5tPTg2P460lm5RH2BPOT5IAGyDZmX8iaCxfBUQk.png" alt
class="mw-100 h-30px h-md-40px" height="40">
</a>
<span class="navbar-toggler-icon"></span>
</div>
</div>
</div>
</div>
</a>
</div>
64
<form
action="https://accunityservices.com/wordpress/accohub/search"
method="GET" class="stop-propagation">
</div>
<div class="input-group">
</button>
</div>
</div>
</div>
</form>
65
<div class="search-preloader absolute-top-center">
<div class="dot-loader"><div></div><div></div><div></div></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="nav-search-box">
</a>
</div>
</div>
66
<a
href="https://accunityservices.com/wordpress/accohub/compare"
class="d-flex align-items-center text-reset">
</span>
</a> </div>
</div>
<a
href="https://accunityservices.com/wordpress/accohub/wishlists"
class="d-flex align-items-center text-reset">
</span>
67
</a>
</div>
</div>
</span>
</a>
</div>
</div>
68
<h1 class="h4 fw-600">
Create an account.
</h1>
</div>
<div class>
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
69
<input type="password" class="form-control" placeholder="Confirm
Password" name="password_confirmation">
</div>
<div class="mb-3">
<label class="aiz-checkbox">
<span class="aiz-square-check"></span>
</label>
</div>
<div class="mb-5">
</div>
</form>
</div>
<li class="list-inline-item">
70
<a href="https://accunityservices.com/wordpress/accohub/social-
login/redirect/facebook" class="facebook">
</a>
</li>
<li class="list-inline-item">
<a href="https://accunityservices.com/wordpress/accohub/social-
login/redirect/google" class="google">
</a>
</li>
<li class="list-inline-item">
<a href="https://accunityservices.com/wordpress/accohub/social-
login/redirect/apple" class="apple">
</a>
</li>
</ul>
</div>
<div class="text-center">
71
<a
href="https://accunityservices.com/wordpress/accohub/users/login"
>Log In</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div class="container">
</a>
</div>
72
<a class="text-reset border-left text-center p-4 d-block"
href="https://accunityservices.com/wordpress/accohub/return-
policy">
</a>
</div>
</a>
</div>
</a>
</div>
73
</section>
<div class="container">
<div class="row">
<div class="mt-4">
<a href="https://accunityservices.com/wordpress/accohub"
class="d-block">
<img class="lazyload"
src="https://accunityservices.com/wordpress/accohub/public/assets
/img/placeholder-rect.jpg" data-
src="https://accunityservices.com/wordpress/accohub/public/assets
/img/logo.png" alt height="44">
</a>
<div class="my-3">
</div>
74
</div>
Subscribe
</button>
</form>
</div>
</div>
</div>
Contact Info
</h4>
<ul class="list-unstyled">
<li class="mb-2">
</li>
<li class="mb-2">
75
<span class="d-block opacity-30">Phone:</span>
</li>
<li class="mb-2">
</span>
</li>
</ul>
</div>
</div>
</h4>
<ul class="list-unstyled">
</ul>
</div>
</div>
76
<div class="col-md-4 col-lg-2">
My Account
</h4>
<ul class="list-unstyled">
<li class="mb-2">
Login
</a>
</li>
<li class="mb-2">
Order History
</a>
</li>
<li class="mb-2">
77
<a class="opacity-50 hov-opacity-100 text-reset"
href="https://accunityservices.com/wordpress/accohub/wishlists">
My Wishlist
</a>
</li>
<li class="mb-2">
Track Order
</a>
</li>
</ul>
</div>
Be A Seller
</h4>
<a
href="https://accunityservices.com/wordpress/accohub/shops/creat
e" class="btn btn-primary btn-sm shadow-md">
Apply Now
78
</a>
</div>
</div>
</section>
<div class="container">
<div class="col-lg-4">
</div>
</div>
<div class="col-lg-4">
</div>
<div class="col-lg-4">
</ul>
</div>
</footer>
<script>
79
$(document).ready(function() {
$('.category-nav-element').each(function(i, el) {
$(el).on('mouseover', function(){
if(!$(el).find('.sub-cat-menu').hasClass('loaded')){
$.post('https://accunityservices.com/wordpress/accohub/category/n
av-element-list', {_token: AIZ.data.csrf, id:$(el).data('id')},
function(data){
$(el).find('.sub-cat-
menu').addClass('loaded').html(data);
});
});
});
if ($('#lang-change').length > 0) {
$(this).on('click', function(e){
e.preventDefault();
80
$.post('https://accunityservices.com/wordpress/accohub/language',{
_token: AIZ.data.csrf, locale:locale}, function(data){
location.reload();
});
});
});
if ($('#currency-change').length > 0) {
$(this).on('click', function(e){
e.preventDefault();
$.post('https://accunityservices.com/wordpress/accohub/currency',{
_token: AIZ.data.csrf, currency_code:currency_code}, function(data){
location.reload();
});
81
});
});
});
$('#search').on('keyup', function(){
search();
});
$('#search').on('focus', function(){
search();
});
function search(){
$('body').addClass("typed-search-box-shown");
$('.typed-search-box').removeClass('d-none');
$('.search-preloader').removeClass('d-none');
82
$.post('https://accunityservices.com/wordpress/accohub/ajax-
search', { _token: AIZ.data.csrf, search:searchKey}, function(data){
if(data == '0'){
// $('.typed-search-box').addClass('d-none');
$('#search-content').html(null);
$('.typed-search-box .search-nothing').removeClass('d-
none').html('Sorry, nothing found for
<strong>"'+searchKey+'"</strong>');
$('.search-preloader').addClass('d-none');
else{
$('.typed-search-box .search-nothing').addClass('d-
none').html(null);
$('#search-content').html(data);
$('.search-preloader').addClass('d-none');
});
else {
$('.typed-search-box').addClass('d-none');
$('body').removeClass("typed-search-box-shown");
83
}
function updateNavCart(view,count){
$('.cart-count').html(count);
$('#cart_items').html(view);
function removeFromCart(key){
$.post('https://accunityservices.com/wordpress/accohub/cart/remo
veFromCart', {
_token : AIZ.data.csrf,
id : key
}, function(data){
updateNavCart(data.nav_cart_view,data.cart_count);
$('#cart-summary').html(data.cart_view);
$('#cart_items_sidenav').html(parseInt($('#cart_items_sidenav').htm
l())-1);
});
84
}
function addToCompare(id){
$.post('https://accunityservices.com/wordpress/accohub/compare/a
ddToCompare', {_token: AIZ.data.csrf, id:id}, function(data){
$('#compare').html(data);
$('#compare_items_sidenav').html(parseInt($('#compare_items_side
nav').html())+1);
});
function addToWishList(id){
function showAddToCartModal(id){
if(!$('#modal-size').hasClass('modal-lg')){
$('#modal-size').addClass('modal-lg');
85
$('#addToCart-modal-body').html(null);
$('#addToCart').modal();
$('.c-preloader').show();
$.post('https://accunityservices.com/wordpress/accohub/cart/show-
cart-modal', {_token: AIZ.data.csrf, id:id}, function(data){
$('.c-preloader').hide();
$('#addToCart-modal-body').html(data);
AIZ.plugins.slickCarousel();
AIZ.plugins.zoom();
AIZ.extra.plusMinus();
getVariantPrice();
});
getVariantPrice();
});
function getVariantPrice(){
86
$.ajax({
type:"POST",
url:
'https://accunityservices.com/wordpress/accohub/product/variant_
price',
data: $('#option-choice-form').serializeArray(),
success: function(data){
$('.product-gallery-thumb .carousel-box').each(function
(i) {
$('.product-gallery-thumb').slick('slickGoTo', i);
})
$('#option-choice-form
#chosen_price_div').removeClass('d-none');
$('#option-choice-form #chosen_price_div
#chosen_price').html(data.price);
$('#available-quantity').html(data.quantity);
$('.input-number').prop('max', data.max_limit);
87
$('.buy-now').addClass('d-none');
$('.add-to-cart').addClass('d-none');
$('.out-of-stock').removeClass('d-none');
else{
$('.buy-now').removeClass('d-none');
$('.add-to-cart').removeClass('d-none');
$('.out-of-stock').addClass('d-none');
AIZ.extra.plusMinus();
});
function checkAddToCartValidity(){
names[$(this).attr('name')] = true;
88
});
var count = 0;
count++;
});
if($('#option-choice-form input:radio:checked').length ==
count){
return true;
return false;
function addToCart(){
if(checkAddToCartValidity()) {
$('#addToCart').modal();
$('.c-preloader').show();
$.ajax({
type:"POST",
89
url:
'https://accunityservices.com/wordpress/accohub/cart/addtocart',
data: $('#option-choice-form').serializeArray(),
success: function(data){
$('#addToCart-modal-body').html(null);
$('.c-preloader').hide();
$('#modal-size').removeClass('modal-lg');
$('#addToCart-modal-body').html(data.modal_view);
AIZ.extra.plusMinus();
AIZ.plugins.slickCarousel();
updateNavCart(data.nav_cart_view,data.cart_count);
});
else{
function buyNow(){
90
if(checkAddToCartValidity()) {
$('#addToCart-modal-body').html(null);
$('#addToCart').modal();
$('.c-preloader').show();
$.ajax({
type:"POST",
url:
'https://accunityservices.com/wordpress/accohub/cart/addtocart',
data: $('#option-choice-form').serializeArray(),
success: function(data){
if(data.status == 1){
$('#addToCart-modal-body').html(data.modal_view);
updateNavCart(data.nav_cart_view,data.cart_count);
window.location.replace("https://accunityservices.com/wordpress/a
ccohub/cart");
else{
$('#addToCart-modal-body').html(null);
91
$('.c-preloader').hide();
$('#modal-size').removeClass('modal-lg');
$('#addToCart-modal-body').html(data.modal_view);
});
else{
</script>
<script type="text/javascript">
countryData = window.intlTelInputGlobals.getCountryData(),
input = document.querySelector("#phone-code");
92
for (var i = 0; i < countryData.length; i++) {
if(country.iso2 == 'bd'){
country.dialCode = '88';
separateDialCode: true,
utilsScript:
"https://accunityservices.com/wordpress/accohub/public/assets/js/i
ntlTelutils.js?1590403638580",
onlyCountries: ["IN"],
customPlaceholder: function(selectedCountryPlaceholder,
selectedCountryData) {
if(selectedCountryData.iso2 == 'bd'){
return "01xxxxxxxxx";
return selectedCountryPlaceholder;
});
93
var country = iti.getSelectedCountryData();
$('input[name=country_code]').val(country.dialCode);
input.addEventListener("countrychange", function(e) {
$('input[name=country_code]').val(country.dialCode);
});
function toggleEmailPhone(el){
if(isPhoneShown){
$('.phone-form-group').addClass('d-none');
$('.email-form-group').removeClass('d-none');
isPhoneShown = false;
else{
$('.phone-form-group').removeClass('d-none');
$('.email-form-group').addClass('d-none');
94
isPhoneShown = true;
</script>
</body>
</html>
32 PRODUCTS PAGE
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="csrf-token"
content="u451i2LrjUBvUc4b1uErIVAw3BQWUtkbmiVlPnGJ">
<meta name="app-url"
content="//accunityservices.com/wordpress/accohub/">
<meta name="file-base-url"
content="//accunityservices.com/wordpress/accohub/public/">
<meta charset="utf-8">
95
<meta name="description" content/>
<meta itemprop="image"
content="https://accunityservices.com/wordpress/accohub/public/u
ploads/all/Gdo58K9E2xfnDwwJPgAAbFTipUKflkofUsMyBQx3.jpg">
<meta name="twitter:image"
content="https://accunityservices.com/wordpress/accohub/public/u
ploads/all/Gdo58K9E2xfnDwwJPgAAbFTipUKflkofUsMyBQx3.jpg">
96
<meta property="og:url"
content="https://accunityservices.com/wordpress/accohub/product
/nike-white-sneaker"/>
<meta property="og:image"
content="https://accunityservices.com/wordpress/accohub/public/u
ploads/all/Gdo58K9E2xfnDwwJPgAAbFTipUKflkofUsMyBQx3.jpg"/>
<link rel="icon"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/img/placeholder.jpg">
<link
href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,
400,400i,600,600i,700,700i,800,800i&display=swap"
rel="stylesheet">
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/vendors.css">
97
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/aiz-core.css">
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/custom-style.css">
<script>
AIZ.local = {
browse: 'Browse',
98
retry_upload: 'Retry upload',
uploading: 'Uploading',
processing: 'Processing',
complete: 'Complete',
file: 'File',
files: 'Files',
</script>
<style>
body {
font-weight: 400;
}:root {
--primary: #e62e04;
--hov-primary: #e62e04;
#map {
width: 100%;
99
height: 250px;
} #edit_map {
width: 100%;
height: 250px;
}.pac-container {
z-index: 100000;
</style>
</head>
<body>
<script>
$(document).ready(function() {
$('.category-nav-element').each(function(i, el) {
$(el).on('mouseover', function() {
if (!$(el).find('.sub-cat-menu').hasClass('loaded')) {
$.post('https://accunityservices.com/wordpress/accohub/category/n
av-element-list', {
_token: AIZ.data.csrf,
id: $(el).data('id')
}, function(data) {
100
$(el).find('.sub-cat-
menu').addClass('loaded').html(data);
});
});
});
if ($('#lang-change').length > 0) {
$(this).on('click', function(e) {
e.preventDefault();
$.post('https://accunityservices.com/wordpress/accohub/language',
{
_token: AIZ.data.csrf,
locale: locale
}, function(data) {
location.reload();
});
});
101
});
if ($('#currency-change').length > 0) {
$(this).on('click', function(e) {
e.preventDefault();
$.post('https://accunityservices.com/wordpress/accohub/currency',
{
_token: AIZ.data.csrf,
currency_code: currency_code
}, function(data) {
location.reload();
});
});
});
});
102
$('#search').on('keyup', function() {
search();
});
$('#search').on('focus', function() {
search();
});
function search() {
if (searchKey.length > 0) {
$('body').addClass("typed-search-box-shown");
$('.typed-search-box').removeClass('d-none');
$('.search-preloader').removeClass('d-none');
$.post('https://accunityservices.com/wordpress/accohub/ajax-
search', {
_token: AIZ.data.csrf,
search: searchKey
}, function(data) {
103
if (data == '0') {
// $('.typed-search-box').addClass('d-none');
$('#search-content').html(null);
$('.typed-search-box .search-nothing').removeClass('d-
none').html('Sorry, nothing found for <strong>"' + searchKey +
'"</strong>');
$('.search-preloader').addClass('d-none');
else {
$('.typed-search-box .search-nothing').addClass('d-
none').html(null);
$('#search-content').html(data);
$('.search-preloader').addClass('d-none');
});
else {
</script>
<script type="text/javascript">
104
$(document).ready(function() {
getVariantPrice();
});
function CopyToClipboard(e) {
$("body").append($temp);
$temp.val(url).select();
try {
document.execCommand("copy");
} catch (err) {
$temp.remove();
// if (document.selection) {
//
range.moveToElementText(document.getElementById(containerid));
105
// range.select().createTextRange();
// document.execCommand("Copy");
// } else if (window.getSelection) {
// document.getElementById(containerid).style.display =
"block";
// range.selectNode(document.getElementById(containerid));
// window.getSelection().addRange(range);
// document.execCommand("Copy");
// document.getElementById(containerid).style.display =
"none";
// }
// AIZ.plugins.notify('success', 'Copied');
function show_chat_modal() {
$('#login_modal').modal('show');
$(window).on('hashchange', function() {
if (window.location.hash) {
106
if (page == Number.NaN || page <= 0) {
return false;
} else {
getQuestions(page);
});
$(document).ready(function() {
getQuestions($(this).attr('href').split('page=')[1]);
e.preventDefault();
});
});
function getQuestions(page) {
$.ajax({
dataType: 'json',
}).done(function(data) {
$('.pagination-area').html(data);
107
location.hash = page;
}).fail(function() {
});
// Pagination end
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="csrf-token"
content="9YQN5izfpXT1PApKOBVXFUl8we054CjFBdMMg3I6">
<meta name="app-url"
content="//accunityservices.com/wordpress/accohub/">
<meta name="file-base-url"
content="//accunityservices.com/wordpress/accohub/public/">
<title> | </title>
<meta charset="utf-8">
108
<meta name="viewport" content="width=device-width, initial-
scale=1.0">
<meta itemprop="image"
content="https://accunityservices.com/wordpress/accohub/public/a
ssets/img/placeholder.jpg">
<meta name="twitter:image"
content="https://accunityservices.com/wordpress/accohub/public/a
ssets/img/placeholder.jpg">
109
<meta property="og:url"
content="https://accunityservices.com/wordpress/accohub" />
<meta property="og:image"
content="https://accunityservices.com/wordpress/accohub/public/a
ssets/img/placeholder.jpg" />
<link rel="icon"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/img/placeholder.jpg">
<link
href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,
400,400i,600,600i,700,700i,800,800i&display=swap"
rel="stylesheet">
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/vendors.css">
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/aiz-core.css">
<link rel="stylesheet"
href="https://accunityservices.com/wordpress/accohub/public/asset
s/css/custom-style.css">
110
<script>
AIZ.local = {
browse: 'Browse',
uploading: 'Uploading',
processing: 'Processing',
complete: 'Complete',
111
file: 'File',
files: 'Files',
</script>
<style>
body{
font-weight: 400;
:root{
--primary: #e62e04;
--hov-primary: #e62e04;
--soft-primary: rgba(230,46,4,0.15);
#map{
width: 100%;
height: 250px;
#edit_map{
width: 100%;
112
height: 250px;
</style>
</head>
<body>
<div class="container">
<div class="row">
113
<img
src="https://accunityservices.com/wordpress/accohub/public/assets
/img/placeholder.jpg" data-
src="https://accunityservices.com/wordpress/accohub/public/assets
/img/flags/en.png" class="mr-2 lazyload" alt="English" height="11">
<span class="opacity-60">English</span>
</a>
<li>
<img
src="https://accunityservices.com/wordpress/accohub/public/assets
/img/placeholder.jpg" data-
src="https://accunityservices.com/wordpress/accohub/public/assets
/img/flags/en.png" class="mr-1 lazyload" alt="English" height="11">
<span class="language">English</span>
</a>
</li>
<li>
<img
src="https://accunityservices.com/wordpress/accohub/public/assets
/img/placeholder.jpg" data-
src="https://accunityservices.com/wordpress/accohub/public/assets
/img/flags/bd.png" class="mr-1 lazyload" alt="Bangla" height="11">
<span class="language">Bangla</span>
114
</a>
</li>
<li>
<img
src="https://accunityservices.com/wordpress/accohub/public/assets
/img/placeholder.jpg" data-
src="https://accunityservices.com/wordpress/accohub/public/assets
/img/flags/sa.png" class="mr-1 lazyload" alt="Arabic" height="11">
<span class="language">Arabic</span>
</a>
</li>
</ul>
</li>
<span class>
115
<i class="las la-bell fs-18"></i>
</span>
</span>
</a>
<h6 class="mb-0">Notifications</h6>
</div>
<li class="list-group-item">
<a
href="https://accunityservices.com/wordpress/accohub/purchase_hi
story/details/eyJpdiI6IkhYTXhYaHRkU2U3d1NxbnY0dFo1OFE9PSIsInZ
hbHVlIjoiQzU1U2dOTzc2TzJ6VGpCUHFOa0tWZz09IiwibWFjIjoiMWU3
NzYzMTcwNjk4MDI5NDlmOWU3M2E0NzdhYjEzYWJiZjQwOWQ2ZmE
yYWJmZmViMjJhODIwNjgxMDNkMmMwMiIsInRhZyI6IiJ9"
class="text-reset">
<span class="ml-2">
116
</span>
</a>
</li>
<li class="list-group-item">
<a
href="https://accunityservices.com/wordpress/accohub/purchase_hi
story/details/eyJpdiI6ImliT0U4d0lWdWdIVFErT0YxVnRJbUE9PSIsInZh
bHVlIjoiTHVVbUZlNS83MWw0WkU1TS85Wjkxdz09IiwibWFjIjoiODY3
YWE1ZjhmY2Q3NTI0OWZhZDFlOTBkMTA0NTNhYWM3ODlmMmRjN
mZiYjFlZDU3MTkzOGJkY2EwZDUzYWE0NCIsInRhZyI6IiJ9" class="text-
reset">
<span class="ml-2">
</span>
</a>
</li>
<li class="list-group-item">
<a
href="https://accunityservices.com/wordpress/accohub/purchase_hi
story/details/eyJpdiI6InVPK2RFZUZrV2ZSQVA0T09oVmZvNWc9PSIsIn
ZhbHVlIjoiNnNwaWU5dUhJRVdKQi9MSmlvQkhqQT09IiwibWFjIjoiYzA
5ZmFlZTE3MzlhNGUxOGI5NjU5MmExOTg5YmY4ZWQ5YzE1MGQwYj
dhNzRjNzA1NGNjNTcxOWEzMmVkZDBlMCIsInRhZyI6IiJ9"
class="text-reset">
<span class="ml-2">
117
</span>
</a>
</li>
</ul>
</div>
<a href="https://accunityservices.com/wordpress/accohub/all-
notifications" class="text-reset d-block py-2">
</a>
</div>
</div>
</li>
<a
href="https://accunityservices.com/wordpress/accohub/dashboard"
class="text-reset d-inline-block opacity-60 py-2">My Panel</a>
</li>
<li class="list-inline-item">
<a href="https://accunityservices.com/wordpress/accohub/logout"
class="text-reset d-inline-block opacity-60 py-2">Logout</a>
</li>
118
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<img
src="https://accunityservices.com/wordpress/accohub/public/uploa
ds/all/E5tPTg2P460lm5RH2BPOT5IAGyDZmX8iaCxfBUQk.png" alt
class="mw-100 h-30px h-md-40px" height="40">
</a>
119
<div class="dropdown-toggle navbar-light bg-light h-40px w-50px pl-
2 rounded border c-pointer">
<span class="navbar-toggler-icon"></span>
</div>
</div>
</div>
</div>
</a>
</div>
<form
action="https://accunityservices.com/wordpress/accohub/search"
method="GET" class="stop-propagation">
120
</div>
<div class="input-group">
</button>
</div>
</div>
</div>
</form>
<div class="dot-loader"><div></div><div></div><div></div></div>
</div>
</div>
121
</div>
</div>
</div>
</div>
<div class="nav-search-box">
</a>
</div>
</div>
<a
href="https://accunityservices.com/wordpress/accohub/compare"
class="d-flex align-items-center text-reset">
122
</span>
</a> </div>
</div>
<a
href="https://accunityservices.com/wordpress/accohub/wishlists"
class="d-flex align-items-center text-reset">
</span>
</a>
</div>
</div>
123
<i class="la la-shopping-cart la-2x opacity-80"></i>
</span>
</a>
function addToCart(){
if(checkAddToCartValidity()) {
$('#addToCart').modal();
$('.c-preloader').show();
$.ajax({
type:"POST",
url:
'https://accunityservices.com/wordpress/accohub/cart/addtocart',
124
data: $('#option-choice-form').serializeArray(),
success: function(data){
$('#addToCart-modal-body').html(null);
$('.c-preloader').hide();
$('#modal-size').removeClass('modal-lg');
$('#addToCart-modal-body').html(data.modal_view);
AIZ.extra.plusMinus();
AIZ.plugins.slickCarousel();
updateNavCart(data.nav_cart_view,data.cart_count);
});
else{
function buyNow(){
125
if(checkAddToCartValidity()) {
$('#addToCart-modal-body').html(null);
$('#addToCart').modal();
$('.c-preloader').show();
$.ajax({
type:"POST",
url:
'https://accunityservices.com/wordpress/accohub/cart/addtocart',
data: $('#option-choice-form').serializeArray(),
success: function(data){
if(data.status == 1){
$('#addToCart-modal-body').html(data.modal_view);
updateNavCart(data.nav_cart_view,data.cart_count);
window.location.replace("https://accunityservices.com/wordpress/a
ccohub/cart");
else{
$('#addToCart-modal-body').html(null);
$('.c-preloader').hide();
126
$('#modal-size').removeClass('modal-lg');
$('#addToCart-modal-body').html(data.modal_view);
});
else{
</script>
<script type="text/javascript">
function show_order_details(order_id)
$('#order-details-modal-body').html(null);
if(!$('#modal-size').hasClass('modal-lg')){
$('#modal-size').addClass('modal-lg');
127
}
$.post('https://accunityservices.com/wordpress/accohub/admin/ord
ers/details', { _token : AIZ.data.csrf, order_id : order_id},
function(data){
$('#order-details-modal-body').html(data);
$('#order_details').modal();
$('.c-preloader').hide();
AIZ.plugins.bootstrapSelect('refresh');
});
</script>
</body>
</html>
128
CONCLUSION
The system has been developed with much care and free of errors
and at the same time it is efficient and less time consuming. The
purpose of this project was to develop a web application and an
android application for purchasing items from a shop.
129
REFERENCES
6 Online at www.w3schools.org
7 Murach’s-PHP/MYSQL
130