In a team of 2, we conceptualized and created a grocery website for a PHP project. Fresh Foundry works on a single dynamic database and uses complete server side validation. I worked on the coding part of the website.
On Fresh Foundry you can sign-in as a user or admin and it gives you different features according to the assigned privileges. This was created using seperate user and admin tables in the database and use sessions and cookies to validate the logged in session.
Each category has a list of items added alongwith their price. You can add one or more items to your cart and once done, you can place your order by going to your cart.
For each session, the site tests for any open orders or unsubmitted carts and if there are none it creates a new table allowing logged-in user to create a new list of items to buy. To avoid redundancy, the logic conveniently destroys existing table upon placing the order with the items on the current cart. This creates a single order with all items visible now in the orders page and to the admin in orders section.
For if the current logged-in user is an admin, they get additional privileges to go in the back-end of the fresh produce website to a dashboard area where admins can view orders, add new items and update stocks.
Admin can perform complete CRUD operation (Create, Read, Update, Delete) on all items in the stock according to the availability and add new items to the list as per their category. The orders section allows admins to view orders placed by all users. They can view and them mark them completed once the order is completed, doing so removes the order from the database and avoids redundancy.
Feel like your website needs a new look or do you have an amazing idea for your upcoming website?
Let me help you with a CREATIVE, FLEXIBLE and AFFORDABLE website design.