TechStore Admin Panel Overview
This guide covers all administrative functions for managing your TechStore platform, including inventory management, order processing, analytics, and user administration.Accessing the Admin Panel
Admin Login Requirements
Only users with the ROLE_ADMIN role can access the admin panel.
Access Admin Panel
After successful login:
- From the main storefront, click the “PANEL ADMINISTRADOR” floating button (bottom left)
- Or navigate directly to
admin-pedidos.html
Dashboard & Sales Analytics
The default admin view provides comprehensive sales metrics and order management.Key Metrics Overview
Total Sales
Cumulative revenue from all orders in the selected time period
Order Count
Total number of orders placed
Average Ticket
Average order value (Total Sales ÷ Number of Orders)
Critical Stock
Number of products with low inventory levels
Analytics Charts
Click “Ver Gráficos” to expand the analytics panel:Sales by Category Chart
Sales by Category Chart
A pie chart visualization showing revenue distribution across product categories.Use this to:
- Identify best-selling categories
- Plan inventory purchases
- Make marketing decisions
Order Status Chart
Order Status Chart
A bar/doughnut chart displaying order distribution by status.Shows counts for:
- PENDIENTE (Pending)
- PROCESANDO (Processing)
- ENVIADO (Shipped)
- ENTREGADO (Delivered)
Order Management
Viewing All Orders
The Pedidos section displays all customer orders in a sortable table. Table Columns:- ID: Unique order identifier
- Fecha: Order date and time
- Cliente: Customer name and email
- Total: Order amount in USD
- Estado: Current status with color-coded badge
- Acciones: Action buttons (View Details, Update Status)
Filtering Orders by Date
View Filtered Results
Orders automatically filter to the selected date range.
Metrics update to reflect only filtered orders.
Viewing Order Details
Updating Order Status
Select Status
Choose from:
- PENDIENTE: Order received, awaiting processing
- PROCESANDO: Order being prepared
- ENVIADO: Order shipped to customer
- ENTREGADO: Order delivered successfully
Generating Sales Reports
PDF Report Export
Export filtered order data as a formatted PDF report.
PDF Report Contents:
- Report header with generation date
- Summary metrics (total sales, order count, average ticket)
- Detailed order table with all filtered orders
- Footer with page numbers
Product Management
Manage your entire product catalog from the Inventario section.Viewing Products
The inventory table displays:- Product image (thumbnail)
- Product name
- Price (USD)
- Stock quantity
- Action buttons (Edit, Delete)
Searching and Filtering Products
Search by Name
Search by Name
- Type in the “Buscar por nombre” search box
- Results filter in real-time as you type
- Clear the search to show all products
Filter by Category
Filter by Category
- Use the category dropdown to select a specific category
- Only products in that category display
- Click “Limpiar” to reset filters
Creating a New Product
Fill Basic Information
Required fields:
- Nombre: Product name
- Precio: Price in USD (decimal format)
- Stock: Available quantity
- Categoría: Select from dropdown
- Descripción: Detailed product description
Add Product Images
Main Image (Portada):
- Enter the URL of the primary product image
- This image displays in the catalog grid
- Click “Añadir otra foto a la galería” to add additional images
- Enter URLs for each gallery image
- These appear in the product detail carousel
Image URLs should be publicly accessible. Consider using a CDN or image hosting service for best performance.
Editing an Existing Product
Modify Information
Update any fields:
- Product name, description
- Price or stock quantity
- Category
- Main image URL
- Gallery images (add, remove, or modify URLs)
Managing Product Image Galleries
Adding Gallery Images
Adding Gallery Images
- In the product form, locate the “Galería de Imágenes” section
- Click “Añadir otra foto a la galería”
- A new URL input field appears
- Enter the image URL
- Repeat to add multiple images
- Save the product
Removing Gallery Images
Removing Gallery Images
- Open the product edit form
- Find the gallery image input you want to remove
- Clear the URL from that input field
- Save the product
Reordering Gallery Images
Reordering Gallery Images
Gallery images display in the order they appear in the form (top to bottom).To change order:
- Note the current URLs
- Rearrange the URLs in your desired order
- Save the product
Deleting a Product
Products are soft-deleted by default, meaning they’re hidden from customers but remain in the database. This preserves order history integrity.
Category Management
Organize products into logical categories for easier browsing.Viewing Categories
The Categorías section displays all product categories:- ID: Category identifier
- Nombre: Category name
- Acciones: Edit and Delete buttons
Creating a New Category
Editing a Category
Changing a category name updates it for all associated products automatically.
Deleting a Category
Before deleting a category, ensure no products are assigned to it, or reassign those products to a different category.
User Management
Administer customer accounts and permissions.Viewing Users
The Usuarios section displays all registered users:- ID: User identifier
- Nombre: Full name
- Email: Email address (login credential)
- Rol: User role (ROLE_ADMIN or ROLE_USER)
- Acciones: Edit and Delete buttons
Searching Users
Editing User Information
Update Information
Modify:
- Nombre Completo: User’s full name
- Email: Email address
- Rol: ADMIN (value: 1) or USER (value: 2)
Changing a user’s role to ADMIN grants them full access to the admin panel. Use this permission carefully.
User Roles Explained
ROLE_USER
Standard customer access:
- Browse and purchase products
- View order history
- Manage own profile
ROLE_ADMIN
Administrative access:
- All user permissions
- Access admin panel
- Manage products and categories
- Process orders
- View analytics
- Manage users
Deleting a User
Deleting a user is permanent and cannot be undone. The user’s order history may be affected.
Best Practices
Inventory Management
Monitor Stock Levels
Regularly check the “Stock Crítico” metric and restock low-inventory items promptly.
Update Product Information
Keep product descriptions, prices, and images current to maintain customer trust.
Use Quality Images
Upload high-resolution images with multiple angles to showcase products effectively.
Organize with Categories
Create clear, logical categories to help customers find products easily.
Order Processing
Process Orders Promptly
Process Orders Promptly
- Check the admin dashboard daily for new orders
- Move orders from PENDIENTE to PROCESANDO within 24 hours
- Update to ENVIADO when items ship
- Mark as ENTREGADO upon confirmation of delivery
Communicate Order Changes
Communicate Order Changes
When updating order statuses, consider:
- Informing customers of shipping delays
- Providing tracking information when available
- Following up on delivered orders for satisfaction
Data Analysis
Regular Reporting
Regular Reporting
- Generate monthly PDF reports for accounting
- Review sales by category to identify trends
- Analyze average ticket size to optimize pricing
- Monitor order status distribution to identify bottlenecks
Use Filters Effectively
Use Filters Effectively
- Filter orders by date range for period analysis
- Compare metrics across different time periods
- Identify seasonal trends and plan inventory accordingly
Admin Panel Navigation Tips
Use Top Navigation
Quickly switch between sections using the navbar:
- Pedidos: Dashboard and order management
- Inventario: Product catalog
- Categorías: Category organization
- Usuarios: User administration
Leverage Search and Filters
Use search boxes and filters in each section to quickly find specific items.
Troubleshooting
Can't access admin panel
Can't access admin panel
Solution:
- Verify you’re logged in with an admin account (ROLE_ADMIN)
- Check that your account is active and verified
- Clear browser cache and cookies
- Try logging out and back in
Charts not displaying
Charts not displaying
Solution:
- Ensure there’s order data available
- Try clicking “Ver Gráficos” to expand the panel
- Check browser console for JavaScript errors
- Refresh the page
Product images not showing
Product images not showing
Solution:
- Verify image URLs are publicly accessible
- Check that URLs use HTTPS protocol
- Ensure images exist at the specified URLs
- Test URLs directly in a browser
PDF report fails to generate
PDF report fails to generate
Solution:
- Reduce the date range filter if too many orders
- Check browser’s pop-up blocker settings
- Ensure sufficient disk space for download
- Try a different browser
Can't update order status
Can't update order status
Solution:
- Verify you have admin permissions
- Check internet connection
- Ensure the order exists and is valid
- Refresh the page and try again
User search not working
User search not working
Solution:
- Clear the search field and try again
- Check spelling of search terms
- Verify users exist in the system
- Refresh the page
Security Reminders
Important Security Practices:
- Protect Admin Credentials: Never share your admin login information
- Regular Password Updates: Change your admin password periodically
- Role Management: Only grant ADMIN role to trusted personnel
- Data Privacy: Handle customer information according to privacy regulations
- Audit Regularly: Monitor admin actions and user changes
- Secure Access: Log out when finished and don’t leave sessions open on shared computers
Need Help?
If you encounter issues not covered in this guide:- Technical Support: Contact your system administrator
- Feature Requests: Submit suggestions for platform improvements
- Bug Reports: Document and report any unexpected behavior
- Training: Request additional training for admin staff