ReliefAndCare Setup Guide

Follow these 3 simple steps to activate your vendor system
1
Run Auto-Installer
1 minute
1 Open your web browser (Chrome, Firefox, Edge, etc.)
2 Copy and paste this URL into the address bar:
http://localhost:8888/website_folder_organizer/glrcf-master/install_vendor_system.php
3 Press Enter - You'll see a page that says:
[Installation Screen with checkmarks]
✅ Created directory: uploads/products/photos
✅ Table created/verified: vendor_products
✅ Installation Successful!
4 That's it! The installer automatically:
  • Created 4 database tables
  • Created upload folders
  • Set permissions
Success Indicator: You should see green checkmarks (✅) and "Installation Successful!" message.
2
Make Yourself Superadmin
30 seconds
1 Open phpMyAdmin in a new browser tab:
http://localhost:8888/phpmyadmin
You should see the phpMyAdmin interface with a list of databases on the left side
2 Click on your database name in the left sidebar
Your database is probably named something like:
  • glrcf
  • website_db
  • charity
  • Or whatever you created earlier
3 Click the "SQL" tab at the top of the page
Look for tabs: Structure | SQL | Search | Query | Export | Import
Click on: SQL
4 Copy this SQL code and paste it into the big text box:
-- First, find your user ID SELECT id, username, email, role FROM users; -- This will show you all users. Look for YOUR username. -- Note the 'id' number (probably 1 or 2) -- Then run this (replace 1 with YOUR id): UPDATE users SET role = 'superadmin' WHERE id = 1;
5 Click the "Go" button (bottom right corner)
Success Indicator: You should see "1 row affected" or similar message in green.
Important: Replace the number 1 with YOUR actual user ID from the first query!
3
Test Your Vendor System
5 minutes
1 Go to the Profile page:
http://localhost:8888/website_folder_organizer/glrcf-master/profile.php
✅ The page should STAY OPEN (no more blinking/closing!)
2 On the profile page:
  • Look at the LEFT SIDEBAR
  • Find the button that says "Control Panel"
  • Click on it
Sidebar buttons:
My Profile
Settings
Orders
Wishlist
→ Control Panel ← CLICK THIS
3 In the Control Panel:
  • You'll see several colorful buttons
  • Find the GREEN button that says "Upload New Product"
  • Click on it
Buttons you'll see:
[+ Upload New Product] ← GREEN BUTTON, CLICK THIS
[📦 My Products]
[⏰ Pending Approval] ← Yellow button (superadmin only)
[📈 Analytics]
4 On the Upload page, fill in these fields:
Product Title: Type anything, like "Test Product 2024"
Description: Type "This is my test product for the vendor system"
Category: Click dropdown, select "Electronics"
Price: Type "99.99"
Condition: Click dropdown, select "New"
Quantity: Type "10"
5 Upload at least ONE photo:
  • Scroll down to "Product Photos" section
  • You'll see a large dashed box that says "Drag & drop photos here"
  • Either:
    • Option A: Drag a photo from your computer and drop it in the box
    • Option B: Click anywhere in the box → file browser opens → select a photo
  • You'll see a thumbnail preview appear below
At least 1 photo is REQUIRED. The form won't submit without it!
6 Add some keywords (optional but recommended):
  • Scroll to "SEO & Search Optimization" section
  • Find the "Keywords/Tags" field
  • Type "electronics" and press Enter
  • Type "test" and press Enter
  • Type "product" and press Enter
  • You'll see blue tag chips appear
7 Submit the form:
  • Scroll to the bottom
  • Find the GREEN button that says "Publish Product"
  • Click it
  • Wait 2-3 seconds
✅ You should see: "Product uploaded successfully! Pending admin approval."
8 Approve your own product (as superadmin):
  • After upload success, you'll be redirected to your profile
  • Click "Control Panel" in sidebar again
  • Click the YELLOW button "Pending Approval"
  • You'll see your product with an APPROVE button
  • Click "Approve"
  • Confirm the dialog
✅ Product status changes to "APPROVED" - It's now live!
9 View your product on the main Sales page:
http://localhost:8888/website_folder_organizer/glrcf-master/sales.php
  • Your product should appear in the listings!
  • It will be at the BEGINNING (vendor products show first)
  • Click on it to see the product detail modal

Quick Action Links

STEP 1: Run Installer STEP 2: Open phpMyAdmin STEP 3: Go to Profile

Troubleshooting

❓ "Page not found" error on install_vendor_system.php
  • Check that you're using the correct base URL
  • Make sure MAMP is running (Apache & MySQL should be green)
  • Try: http://localhost:8888/website_folder_organizer/glrcf-master/
❓ "Database connection failed"
  • Check MAMP - MySQL should be running (green light)
  • Verify database exists in phpMyAdmin
  • Check website_cpanel/db_connection.php has correct credentials
❓ Can't find "Control Panel" button
  • Did you complete Step 2 (make yourself superadmin)?
  • Did you logout and login again after changing role?
  • Check database: SELECT role FROM users WHERE id=1;
❓ Profile page still closes
  • Clear browser cache: Ctrl+Shift+Delete → Check "Cached images and files" → Clear
  • Hard refresh: Ctrl+F5 (or Cmd+Shift+R on Mac)
  • Try different browser (Chrome, Firefox)

After Setup Complete

You'll be able to:

Need more help? Open SETUP_GUIDE.md for detailed documentation

ReliefAndCare Vendor System v2.0.0 - Production Ready 🚀