MEDICOM PHARMACY – Online Pharmaceutical Product Store
E-Commerce Web Application
MEDICOM Pharmacy is a web-based e-commerce system developed for purchasing pharmaceutical products online. The application is built using HTML, CSS, JavaScript (AJAX), PHP, and MySQL, with session management and PayHere payment gateway integration to ensure secure and reliable transactions.
System Overview
This system follows a role-based architecture and supports the following user roles:
- Admin – Manages products, users, orders, and reports
- Customer – Purchases products, tracks orders, and manages profile details
- Visitor – Browses products without making purchases
Only authenticated customers are allowed to place orders. Visitors must register or log in to proceed with checkout.
Technologies Used
- Frontend: HTML5, CSS3, JavaScript
- Backend: PHP
- Database: MySQL
- Asynchronous Communication: AJAX
- Payment Gateway: PayHere
- Session Management: PHP Sessions
User Privileges and System Architecture
The application implements session-based authentication and access control to ensure that each user can only access features permitted for their role. Sensitive operations such as payments, order management, and administration are protected from unauthorized access.
Customer-Side Features
User Authentication
- Login with secure credentials
- User registration (Sign Up)
- Forgot Password functionality
- Only logged-in users can purchase products
Home Page
- User-friendly welcoming interface
- Displays featured categories, latest arrivals, best-selling products, discounts, promotions, and customer comments
- Basic product search by name or category
Store Page
- Displays all available products
- Advanced search by product name, category, sub-category, price range, and quantity
Single Product View
- Detailed product information including description, category, brand, availability, ratings, reviews, and images
- Quantity selection and cart management
- Direct “Buy Now” option
Shopping Cart
- Update product quantities or remove items
- Real-time cart updates using AJAX
- Proceed to checkout
Checkout Page (Cart & Buy Now)
- Order summary including product details, quantities, delivery fee, and total cost
- Shipping address retrieved from user profile
- Secure payment using PayHere
Invoice Page
- Automatic invoice generation after successful payment
- Download and print invoice options
Track Orders
- View order history
- Displays order details, paid amount, and order status (Processing, Shipped, Delivered)
Medication Help
- “Ask a Pharmacist” feature
- Customers can submit medication-related questions via email
User Profile
- View and update personal information (name, email, address)
- Updated address is used for both shipping and billing
Admin-Side Features
Admin Login
- Secure login for administrators
Dashboard and Analytics
- Overview of system activity
- Sales analysis using charts and visual analytics
User Management
- View registered customers
- Block or unblock user accounts
Product Management
- Add, update, and manage product visibility
Category and Sub-Category Management
- Manage product categories and sub-categories
Order Management
- Update order status (Packaging, Dispatching, Shipping)
- Notify customers about order progress
Reports
- Generate and view reports related to users and products
Payment and Security
- Secure online payments via PayHere Payment Gateway
- Session-based authentication and authorization
- Restricted access to customer-only and admin-only functionalities
Application Screenshots
Conclusion
The MEDICOM Pharmacy E-Commerce Web Application delivers a secure, scalable, and user-friendly platform for online pharmaceutical shopping. By leveraging PHP, MySQL, AJAX, and the PayHere payment gateway, the system effectively meets both customer and administrative requirements while ensuring data security and a smooth purchasing experience.
Developed as a full-featured academic and practical e-commerce web application.
