Assignment 2
Assignment 2
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
Grading grid
P5 P6 P7 M4 M5 D2 D3
Summative Feedback: Resubmission Feedback:
VLSS – Virtual Luxurious Service Shop is the online shop in from of e-commerce with the main purpose are Buying –
Exchanging – Provide decorations, decorative tools and decorative services. All these products are listed on the primary
page of website, it’s is easily for customer to observe and searching for what customer want in this commerce.
This shopping website has been designed and developed to display categories of decorative service available in this
commerce. Detailed information about the product and service name, total of number and price of each product and
detail note about it can be observed by click on this products. WebSite will be built for some common Platform by utilizing
some website development technologies including HTML5, CSS, JavaScript, and PHP. The website will well-operating on
all leading web-browsers such as Google Chrome, Firefox, Microsoft Edge, etc. And suitable on almost reponsive screen
sizes like Laptop, TV, Tablet.
Processing in website
Processing customer's registration.
Processing customer's login.
Change customer account information
Adding, updating, deleting products in cart
Processing admin login.
Alternative text: For photos, graphics, and logos, written explanations known as alt-text should be supplied. As
a result, those who use a screen reader will be able to grasp the visual material on your website.
Organized pages: Headers and lists should be included on web pages to make it easier for customers to navigate
the site.
Vision impairments: Color should not be used to convey information. To ensure that persons with vision
impairments can read the text on my site, i should stick to the agreed color contrast standard. They may also
simply use the browser’s text zoom function to make the text large enough to read .
Text/content: My website's wording should be straightforward, and any message or content should be simple to
comprehend (Agrawal, 2019).
Cognitive impairment: Sites that are created simply and clearly aid users with memory, reading comprehension,
problem solving, and concentration issues. These characteristics are beneficial to everybody who visits my
website.
Grid Responsive designs: Responsive design is that the contrast of programming and device which is difficult to
feature after a specific website is intended. it's mainly part of a redesign. that's why it's a compact, not a
corporation standard. Responsive design has been regularly changed over the years.
Readable and web-friendly fonts: Using the proper fonts exemplifies shop brand personality and immediately
grabs your audience’s attention. However, it’s not almost well-to-do. The typefaces you employ in web design also
must be functional and readable. Arial, Helvetica, Times New Roman, and Courier New are all samples of web-
friendly fonts.
Mobile Web: In the world of smartphones, make sure that i create a mobile-friendly website. Designing a
responsive website that loads perfectly on any mobile is that the best thanks to win the user response.
Impressive home page: The home page of your website encompasses a specific value proposition. It should be
impressive and attractive. the house page with high-value proposition implies that your website explains their
value to the viewers (Agrawal, 2019).
1. Homepage Interface The homepage of website should have been created based on utilizing
flags suitable with their commercial logo, the title of each product that
can be added name of famous brands, Navigation bar shuold have some
quick redirected navigation such as service, contact us,... .
There should be the message box for customers can use it to directly
contact with sellers and the footer with full social contact.
Reponsive ability for meet one web of all devices.
Interface should follow Website Accessibility Standard
2. Item Display The product/item name and the price of the decorative services must be
added with the illustrated images as well as all these must appear on a
displaying section of each product. Text/content need to be meaningful
3. Admin ability Admin can add, edit and delete products and flexible form to handle with
orders list requested from customers
4. Customer ability Customer can have button to order, small box searching products on
navigation bar, button or tool to add products to cart and delete it on
interface.
5. Navigation Display Sticky on top ability, drop down menu with animated effect. Color Switch
when hover.
6. Text Display The typefaces employed in web design also must be functional and readable
font such as Arial, Helvetica, Times New Roman, and Courier New are all
samples of web-friendly fonts.
2. Mechanism Diagram
2.1. Flow Diagram
Figure 5: Database
This is the main database structure based on user requirements above. This database can store quite full information for
this website operating properly.
Figure 6: Wireframe
Footer of website: Information for the shop owner such as address, contact information, about the company, as
well as shortcuts to links to social media of shop owners.
Explaination for Admin site Wireframe: Products list is the form that will store all products in Website, Navigation bar
on the top is the quick switch to each particular Categories for support admin in editting products.
Menu includes some redirect link. Add Product function is located in bottom for easy adding or update.
3.6. Mockup wireframe:
Mockup between Homepage between another Pages
2. Techniques
a. Front-End Techniques
b. Back-End Techniques
The server-side Scripting language I use is PHP
And the most suitable with PHP is MySQL database
Some Algorithm to handle the logical problems
II. Website Implementations
1.1. Interface homepage of this website
a) Index.php(Homepage)
In this Index.php file, I design the homepage with the familiar web’s structure html mix php with the arrange of three primary
part include: Header, Main, Footer. Each source code of each part has been splitted into 3 php file to easier fixed and they has
been called by Require Syntax of PHP.
b) Header.php
Explaination:
This file just be built by mainly Html, css and a little PHP. It has been designed to display the navigation bar of webpages, logo
on top and the main menu of hompage which has been hidden and it can be display via Javascript handling. Search in
navigation bar is implemented via php and then it will be sent the search characters from users into main.php to handle and
display appropriate results.
c) Main.php
Explaination:
These Source code above just are brief samples of main.php, this file display the main body of homepage. This file is quite long
because it must have handled the categories filter, slider and all products displayed for customers site. With categories filter, I
just has used foreach loop in php to list fully the categories in database on categories menu. The slider of homepage has been
built from bootstrap which has been available designed in bootstrap. To display all products with name, price and image, I has
used foreach loop php to convey information of product into Html box which has been designed to display the brief information
of each products. When more products is added from admin, it will be displayed immediately on homepages. Additionally,
products also be displayed based on search characters from customers which is similar with product name and categories filter
menu which based on category id of these products. If there are no products match with search characters on Url, it will return
the h1 “Nothing match”.
The filter for all products which belong to each categories has been located on header beside slider. Customers can click
on each category line based on their desire to display the suitable products.
After clicking on “Candy Cake” category, this site will display these compatible products
Other categories and these products of them will be operated similarly to “Candy cake” instance above.
1.2. Product Details Decription Site:
Customer can see the detail information of each product by clicking on the image of each product displayed in homepage
body interdace. The information will display with detail statistics such as reviews, decription, price, category.
Source Code
Explaination:
This source code of Details has used quite much bootstrap to built interface. All detail information of product will be display
based on the product id which is sent on to Url after customer click on product in homepage. After System with php
language get the id sent from homepage Url, query syntax will be implemented to retrieve all information of this product in
mysql database.
1.3. Main Menu of Website:
To continute manipulate with this website, Customers need to click on menu icon on top of left site in homepage inferface
After click on this button, a menu will display and be pulled from the right to the left. This event also pull the main
interface of homepage to the left site. This menu includes some primary selections of website such as My Shopping Cart,
My Account, My Favorites, Link to Wallet, Dark and Light modes. However, there are two selections: My Favorites and
Link to Wallet which are still Still under maintenance and updating.
Source code of main menu:
Javascript Code CSS to create animated effect for menu icon when clicked.
Dark and Light mode:
There are two mode of this website to suitable with each Customer there are Dark Mode And Light Mode, which will change
the theme of this websiteDark Mode: When Dark mode is turned on, interface theme will immediately change to dark colours,
Light Mode: When Light mode is turned on, Interface theme will back to default(with Light colours)
1.4. Account Site:
Sign in Interface
Sign up Interface
This site will encompass fully information of customer including: UserName, Address, Phone, Shopping log where
storing products customer has bought. User also can edit their profile in here and submit it to system of website. User
can sign out when they no longer want use this account or want to finnish this buying session.
On the contrast, if Users sign in of sign up failed (such as wrong user name/ password or sign up with the user name
has been exised), Website will return the notification for Users:
or
When sign in process still be failed, customer will cannot get into User Page. However, They can view this website
hompage as guest but in guest mode, they cannot perform any task involing to buying or trading products or services in
this web.
1.5. Cart site
The Cart function only can be operated as soon as customers get done with Account Sign in. In case customers have not
yet sign in but them still want to use Cart. System will send the notification appearing on the top of website like below:
Hence, for continuing using website’s service, customers need to complete account process. As soon as done that
process, customer can immediately continue with using Cart services. Below are source code notice
Explaination: System will examine that whether the login information(particularly Customer ID) has been existed in
temporary memory of host or not. If customers has not logged in, system will declare session to notify the notification
in homepage. Notification box has been built by bootstrap 4.
To view Cart, customers can click on “My Cart Button” which located in menu site:
This button will redirect customer directly to Cart Form. To add Products into cart, customer can click on “Add to Cart”
Source code
Additonally, Customers can easily add more products into cart by click on button “add to cart” introduced above:
There are the essential condition that require customers must fullfill information including Address and phone
number to ensure that these order will be deliveried properly.
Source code:
First, program will check Whether Address and Phone has been filled. If yes, Session will be started and Progarm will
retrieve all informatin of this Order. Based on Session Id(ID of customer’s account) and key Id(Id of products), program
will execute “Insert query” Syntax via php language to insert these information into mysql database with the compatible
ID of customer and Id of products.
1.6. Website Admin Management site:
This site is only for Administrators of Shop can utilize. There is only account which have the greatest power in this website can
sign in directly to Admin site. If User are not admin and they do not have admin account, this user cannot get into admin site,
even they try any different account.
To Sign in to admin site, user can also click on “My account” button and here is the other link to redirect to Admin site(Sign in
as admin now)
This link will be located below Sign in button and Create one link. And when user are redirected to Sign in As Admin site, User
can sign in with account admin.
As soon as successfully sign in as admin, this is the interface will display for admins of shop can handle their own shop.
Update form will also appear at bottom of website. It will include fullfilly information of product and admin can adjust or edit
it very easy and save much time.
Source Code
Basically, making a website also has been viewed as complicated thing. However, Satisfying the Client by ensure User
Experiments/user Interface operating properly and smoothly as well as assure system are more complicated and need to
be test multiple times. Here some main purpose of this testing time:
No. What is being Tested How Test data used Expected results
Test Signin/Signup by interacting with the available account in database: Username : Sephoang; Password: 000000
7. Test Signup with wrong Sign up with user name contain Accepted by Error False
common username structure special characters such as ‘@’, System
‘#’, “%”
8. Test Signup with wrong Sign up with the length of Accepted by Error False
common password structure password less than 8 System
9. Test Signup with proper Sign up with username Signup Success Pass
username & password “danchoi” & password “123456” successfully
10. Update profile with wrong Update phone number contains Error Error Pass
phone structure letter or speacial character
Example: “#$%#123456”
11. Update profile with wrong Input virtual address or fake Accepted by Error False
Address structure address “@#! HA noi” System
12. Update profile with proper Update with phone Update Success Pass
phone “03251642987” & Address “15 Successfully
Hanoi”
13. View all Products & categories Check all products and All Products All Product Pass
on Homepage categories on Hompage and Categories and
are Viewable in Categories are
Homepage Viewable in
Homepage
14. Test link Items Clicking on a products on All Information All Information Pass
homepage of this product of this product
be fetched in viewable in
details page details page
15. Test checking assurance of Add products to cart before Error Error Pass
system Signin or Signup
16. Test checking assurance of Purchase an order when Error Error Pass
system 2 information about address &
phone still empty
17. Test checking assurance of Searching info with a string not Return “ Return “ Pass
system 3 like any product name Nothing Match ” Nothing
Match ” or “No
result”
18. Test checking assurance of Try Clicking on Cart before Return Return Pass
system 4 Signin or Signup “Message” “Notice
message”
19. Test checking assurance of Try Sign in admin site with Error Error Pass
system 5 normal account
20. Test Functional ability Open and close Message Box Open and close Able to open Pass
smoothly and close
21. Test Functional ability 2 Open and Close Menu Side Open menu Able to Open Pass
smoothly, & close menu
homepage Homepage
interface is interface
pulled from left move
to right with smoothly in
smooth effect the direction
and contrast of menu
when close
menu all
become normal
22. Test Functional ability 3 Switch mode between Dark Switching Able to Pass
mode and Light mode smoothly with Switching
animated effect
23. Test Functional ability 4 Update or edit profile when Accepted by Able to handle Pass
Signed in system profile
24. Test Functional ability 5 All products which has been Some products Listing full False
bought will be display in user- are not been producs
Page listed
25. Test Functional ability 6 Log out Able to Log out Able to log out Pass
26. Test Functional ability 7 Edit or Delete available products Easily Edit and Able to Edit Pass
with admin power Delete products and Delete
27. Test Functional ability 8 Add products with admin power Easily Add Able to Add Pass
products products
28. Test Functional ability 9 Confirm or Cancel Orders from Easily Confirm Able to False
Customers with admin power or Cancel. confirm or
However, Cancel
sometime products and
Orders are not All Orders are
listed fully list
29. Test Functional ability 10 Filter by categories Products are Able to filter Pass
filtered by
category
30. Test Functional ability 11 Adjust quantity of products in Able to plus or Able to adjust Pass
Cart minus quantity
31. Test Functional ability 12 Add more products into Cart Accepter by Able to add all Pass
system products into
Cart
32. Test Functional ability 12 Add more products to Calculate Automatically Exactly Pass
price Calculate total calculate price
of price
33. Test admin system Add products with lack of Accepted by Error False
product’s information by admin system
power(paticularly lack of detail)
Overall:
After testing process, through 33 test times, the program received 6 test times which has been not passed the checking
condition. It has showed that the program still be incomplete, there are many problems needed to be fixed. Almost false test
times involved to Validation Input ability of System. Although there are explicit Errors which can see when perform quick test
and there are many hidden errors, I has focused on fixing validation input ability before.
Solution:
To enhance the validation input ability, the good way I found that is using JS Validator to improve validation. I could use form
validation which has provided by W3s to create validation for each field which get data from Users.
By this condition built by JS, the profram can filter the password which must more than 6 characters. Thereby, I could use JS to Validate other
fields.
D. COMPARE AND CONTRAST THE MULTIPAGE WEBSITE CREATED TO THE DESIGN DOCUMENT(M4)
I. Compare And Contrast
1. HomePage Interface:
Overview:
Generally, the real page is designed quite identical to the wireframe, they layout of header, body and footer are designed fully
and arrange appropriately. Border of each frame box also be made softly and look more modern.
Assess Compare & Contrast:
Comparing to design document, Real Homepage also is deisigned for containing almostly functions as given document, functions
include: search form for products, categories filter section, flexible navigation bar design, animated effect with menu side and
box chat interface. All functions are designed quite aesthetic and suitable with requirements. Page loading also quite quick.
Additional, all site of web also use friendly font. Each product are displayed fully info including : price, image, title and the eye-
catching button to add product into cart and these all in a section based on user criteria in design document. The position of
Elements also quite meet the criteria of Design Standard.
However, There are still some contrasts of homepage to given design document, such as grid responsive of homepage is quite
bad. It just suit for ipad and computor console but not really suit for mobile. Interface of box chat frequently gets error at form
search in message bar. Border’s color of homepage in light mode make layout quite hard to see because its colour tone is as same
as background tone. Fortunately, homepage has dark mode, it can make layout more easier to see than default. Homepage still
not yet reached the SEO-friendly as the principles suggested.
2. Details Site
Basically, Real Details site are designed quite similar to the wireframe in design document, there are not so much different
between these two. In Real Details Site, the layout details of each section is design more flexible. It look more suitable with a
shopping website. It contain fully : reviews section, decriptions with each new line, Icon, colour are mixed appropriately.
Background color and other color when compare with user documents in Part C is viewed as meeting all user needs of detail
site. Grid responsive of this site is pretty good, It can suit either for computer/ipad or for even mobiles with 375 x 1080 pixel.
Animated effect of the big image in this site is quite eye-catching which assesser based on web design standard.
However, This site also has some contrast with design document. It meet almost user needs, but the favourite button still in
maintainance process and it not yet can be used. Review path also like Favourite Button, these two also in maintainance process.
The location of category label and its value are stil skewed, they are not in same line and this partly make site are loss aesthetic.
3. Cart form
However, The options of website still be in maintanance process, it can not be used, form text of give code is bigger than other
text form, it not follow standard in design document and make this site look uneven.
4. User Page
However, there are quite multiple weakness of this site when compare and contrast with design document. The screen’s ratio
spliting of this site quite bad. The Section which contains User-information quite small compare to wirefram ratio. It make User-
Page quite hard to see and lessen friendly feature of website. The layout of this site also is not really fine for an user profile site.
Basically, admin manament site is designed quite identical to the wireframe, they layout of navigation bar, body and footer
are designed fully and arrange appropriately. Border of each frame box also be made softly and look more modern.
However, There are still some contrasts of admin site to given design document, such as this colour and layout is not really
suitable for admin site, it look like a simple customer site than the admin site which need careful and professional in working
process. Update form has been designed quite coarse with seem to be no CSS. This site has bad font, some text phrase are
quite hard to read. This site also is badly compatible for mobile screen although the grid reponsive of this site is quite good.
E. EVALUATE THE QUALITY ASSURANCE (QA) PROCESS AND REVIEW HOW IT WAS IMPLEMENTED DURING YOUR
DESIGN AND DEVELOPMENT STAGES(M5)
QA – Quality Assurance is refered to a sequence of activities to assure that this website is providing the best possible
experiment or service to customers. QA testing practice applied to test websites or web functions for potential bugs and
focuses on enhancing the processes to provide better quality to the customer. A web-based system which just completed
designing needs to be examined entirely from end-to-end before it goes live for end users.
QA Process List:
Criteria:
To enhance and fix the validation data in each form, this is good way to apply more Javascript syntax and function to check the
structure of Username, password. There is a screenshot code to check the length of password
Thereby, it’s necessary to apply JS validator on all form in web to ensure quality assurance process and enhance user
experiment as well as performance of web’s system.
1.2. Test Link
Criteria:
Test the outgoing links from all the pages to the specific domain under test.
Test all internal links.
Test links jumping on the same pages.
Test links used to send email to admin or other users from web pages.
Test to check if there are any orphan pages.
To Test the mysqli database connection, I need to declare a variable that contains your DB connection, which I can
examine at any point.
$conn = new mysqli('localhost', 'root', '', 'notashop'); or $conn = mysqli_connect('localhost', 'root', '', 'notashop');
After Declare Db connect variable, I can test querying via the $conn variable to figure out the connection quality.
if($conn->connect_error)
die($conn->connect_error);
To check for data integrity and errors while handle with Database the forms or do any DB related functionality. Check if
all the database queries are executing correctly, data is retrieved and also updated correctly. There are screenshot of
code to test DB Connection:
b. Handling with Database Test
Check input and data retrieve from Sign in/ Sign up form after validation process. To check whether these data has
been got into program to store in database, I need to use die() function to stop and print at the variable query before
continuting next step.
When print the variable assigned to query and it absolutely is normal and has no bugs or errors, I will delete die()
function to next process has been executed.
Error: When testing the process of inserting all informations of an order into Database via PHP, my system has got bug.
After I had Tested input an order with some products and then, these information has not been inserted into database.
This bug seem to be an error at the duration of implementing code to swiching information got in cart to data that
Database could retrieve. After debugging in some code phrase, it has been realized that the bug happenning in the code
below:
I must have used die() function to figure out the reason and this bugs happen due to “$ToID” variable which store
OrderID for determine what Order need to be inserted their details order.
Notification is a crucial part of a website, therefore; it needs to be tested carefully from designing code to try running on
website.
To ensure system will notify when user do wrong handle, there is example source code to display notification notify user that
they wrong at sign in:
Figure 38: System notify that user has been wrong at sign
in
Test process showed that system has been implemented properly, there are no bug and error =>
Criteria:
Smooth
Not affect to other section
No stalling when effect executed
Flexible animation
Criteria:
Checking process:
Page Evaluate QA
Spelling/Grammar Assurance
Images in proper size to be displayed
clearly
Bad font size
Aesthetic theme
Detail Content is meaningful, enought
informations of product.
Images is be placed properly with proper
sizes.
3. Accesible Test
Test Redirection
On Computer Screen, To Test and Evaluate QA, there are some common browsers to test
3) Microsoft Edge
Error Images
Accessible Test Redirecting the same content group is possible. Redirecting to the 8/10
other page is possible
Compatiblity Test Overall, when it comes to compatibility testing, By testing compatibility 7/10
on various browsers, operating systems, and devices, we discovered that
each of them displays webpages in slightly different ways, but in general,
all information is fully displayed. No website has been broken, no
webpage has become unstructured, and no information has been lost.
Ensure that users receive correct information.
References
Agrawal, A., 2019. [Online]
Available at: https://customerthink.com/top-website-design-and-development-guidelines-for-2019/