A list of functions grouped by the page they are supposed to be on. Mean't as a guide for the implementation of functions.php
Home page-home.php
Displayal of some products, I suggest we do this in a static way.
Login & Register User page-login.php
Form with two fields, no validation.
Loginname
Password
Possible "forgot password" placeholder button. (Shouldn't implement)
Form for registering a new User
Social Security Number
Mail
First Name
Last Name
Street Address
Post Address
City
Phone
Password (with suggestion button for a secure password)
Single Product page-product.php
Name
Description
Product ID
Price
Currently in stock
Image
Weight
Category (preferely in a breadcrumbs kind of way) Products / Categoryname / Productname
Add to cart button
Products page-products.php
A list of products. This page also checks if it should load all products or from a specific category (If the variable `$_GET['category'] exists it should load from the category that variable has as value).
Every product should have the following:
Image
Name
Price
Product ID (might not be visible but needs to be there for the link atleast)
Add to cart button
Settings page-settings.php
Not sure what we should display in the settings page. Maybe just some text and links to the specific settings pages.
Example of Inet's settings page.
User page-settings-user.php
Form that is prefilled with the users information, sans password. (With magic php function that only sends the changed information)
PersonalNr (not in the form, but should be displayed in a non-editable fashion)
Name
Last Name
Street Address
Post Address
City
Phone Number
New Password
Repeat New Password
Old Password
Orders page-settings-orders.php
A list of all the users orders. I suggest this to be in a list kind of way using tables or something similar (Easy to sort).
Order ID
Date
Total value of order including VAT
Order page-settings-order.php
Page for displaying non-editable information about a specific order. Make use of the Orderclass.
Order ID
Date
Shipping Address
Street Address
Post Address
City
Billing Address
Street Address
Post Address
City
List of products (Using the ListedProducts class)
Name
Weight
Price for one item
Amount
Price for total amount
Total Weight
Shipping Cost
Total value of products
Total value of order (Sum of value of products and shipping cost)
Total value of order including VAT
Four last digits of the charged Credit Card
Shopping Cart page-cart.php
List of products
Name
Weight
Price for one item
Amount (editable)
Delete button
Price for total amount
Total Weight
Shipping Cost
Total value of products
Total value of order (Sum of value of products and shipping cost)
Total value of order including VAT
Checkout (file isn't created yet, possibly page-cart-checkout.php)
User should be forced to login or create an account when trying to access this page.
Page for payment and delivery options. Prefilled with information from user
Full Name
Shipping Address
Street Address
Post Address
City
Billing Address
Street Address
Post Address
City
Credit Card
Card Number
Full Name as it appears on card
Expires
Year
Month
CVC
Button for going back
Button for "Review before placing order"
Review page (file isn't created yet, possibly page-cart-review.php)
All the information from previous pages (uneditable), except for security information (Only show last 4 numbers on creditcard)
Button for going back
Button for "Place Order"
404 404.php
"Page not found"
Footer footer.php
Nothing, pretty much
Header header.php
Function for displaying title in a nice way.
Just Another WebshopPagename / Just Another Webshop
Admin page-admin.php
Page with links to Orders, Products, Users.
Orders page-admin-orders.php
A list of all the users orders. I suggest this to be in a list kind of way using tables or something similar (Easy to sort).
Order ID
Date
Personal Number of User
Total value of order including VAT
Order page-admin-order.php
Order ID
Date
Shipping Address
Street Address
Post Address
City
Billing Address
Street Address
Post Address
City
List of products (Using the ListedProducts class)
Name
Weight
Price for one item
Amount
Price for total amount
Total Weight
Shipping Cost
Total value of products
Total value of order (Sum of value of products and shipping cost)
Total value of order including VAT
Four last digits of the charged Credit Card
Products page-admin-products.php
A list of products. (Sortable)
Name
Price
Category
Edit button
Product page-admin-product.php
Editable information about a product. Prefilled with information about the product.
Name
Description
Product ID
Price
Currently in stock
Image
Weight
New Product page-admin-product.php
Same as product, except not prefilled.
Name
Product ID
Price
Currently in stock
Image
Weight
Taxanomies page-admin-taxanomies.php
A list of taxanomies. (Preferably with indenation to show hierarchy).
Name
ID
Taxanomy page-admin-taxanomy.php
Parent
Name
ID (Is this through database or user input?)
New Taxanomy page-admin-taxanomy.php
Parent
Name
ID (Is this through database or user input?)
Users page-admin-users.php
A list of users. (Sortable)
Personalnumber
Full Name
Edit button
User page-admin-user.php
Prefilled form
Social Security Number (Non-editable)
Mail
First Name
Last Name
Street Address
Post Address
City
Phone
Placeholder button for "reset password"
Add User page-admin-user.php
Form for adding new user
Social Security Number
Mail
First Name
Last Name
Street Address
Post Address
City
Phone
Password (with suggestion button for a secure password)
Functions per Template Page
A list of functions grouped by the page they are supposed to be on. Mean't as a guide for the implementation of functions.php
Home page-home.php
Displayal of some products, I suggest we do this in a static way.
Login & Register User page-login.php
Form with two fields, no validation.
Form for registering a new User
Single Product page-product.php
Products / Categoryname / Productname
Products page-products.php
A list of products. This page also checks if it should load all products or from a specific category (If the variable `$_GET['category'] exists it should load from the category that variable has as value).
Every product should have the following:
Settings page-settings.php
Not sure what we should display in the settings page. Maybe just some text and links to the specific settings pages.
Example of Inet's settings page.
User page-settings-user.php
Form that is prefilled with the users information, sans password. (With magic php function that only sends the changed information)
Orders page-settings-orders.php
A list of all the users orders. I suggest this to be in a list kind of way using tables or something similar (Easy to sort).
Order page-settings-order.php
Page for displaying non-editable information about a specific order. Make use of the
Order
class.ListedProducts
class)Shopping Cart page-cart.php
Checkout (file isn't created yet, possibly page-cart-checkout.php)
User should be forced to login or create an account when trying to access this page. Page for payment and delivery options. Prefilled with information from user
Credit Card
Review page (file isn't created yet, possibly page-cart-review.php)
All the information from previous pages (uneditable), except for security information (Only show last 4 numbers on creditcard)
404 404.php
"Page not found"
Footer footer.php
Nothing, pretty much
Header header.php
Function for displaying title in a nice way.
Just Another Webshop
Pagename / Just Another Webshop
Admin page-admin.php
Page with links to
Orders
,Products
,Users
.Orders page-admin-orders.php
A list of all the users orders. I suggest this to be in a list kind of way using tables or something similar (Easy to sort).
Order page-admin-order.php
ListedProducts
class)Products page-admin-products.php
A list of products. (Sortable)
Product page-admin-product.php
Editable information about a product. Prefilled with information about the product.
New Product page-admin-product.php
Same as product, except not prefilled.
Taxanomies page-admin-taxanomies.php
A list of taxanomies. (Preferably with indenation to show hierarchy).
Taxanomy page-admin-taxanomy.php
New Taxanomy page-admin-taxanomy.php
Users page-admin-users.php
A list of users. (Sortable)
User page-admin-user.php
Prefilled form
Add User page-admin-user.php
Form for adding new user