Overview
The product catalog is the main browsing interface for customers to discover and add automotive parts to their cart. The catalog displays products in a grid layout with search functionality and real-time stock availability.The catalog is accessible at
/catalogo and serves as the central hub for product discovery.Key Features
Product Search
Full-text search functionality allows customers to quickly find specific parts
Category Filtering
Products organized by automotive categories for easy browsing
Stock Visibility
Real-time inventory counts displayed for each product
Quick Add to Cart
One-click add to cart functionality from the catalog view
Product Categories
The catalog organizes automotive parts into the following categories:- Filtros (Filters) - Oil filters, air filters, fuel filters
- Frenos (Brakes) - Brake pads, brake discs, brake fluid
- Eléctrico (Electrical) - Batteries, alternators, starters
- Lubricantes (Lubricants) - Engine oils, transmission fluids
- Suspensión (Suspension) - Shock absorbers, springs, bushings
- Encendido (Ignition) - Spark plugs, ignition coils
Catalog Implementation
Route Definition
The catalog is registered inroutes/web.php:9-11:
Catalog View Structure
The main catalog view is located atresources/views/catalogos/catalogo.blade.php and extends the base layout:
Search Functionality
The catalog includes a search bar for filtering products (resources/views/catalogos/catalogo.blade.php:28-31):
Product Card Layout
Each product is displayed in a card format with complete information:Products display real-time stock levels. Out-of-stock items show a disabled “Sin Stock” button instead of the add-to-cart button.
Stock Status Display
Available Products
Products with inventory show a green status indicator:Out of Stock Products
Products without inventory display a disabled state (resources/views/catalogos/catalogo.blade.php:72-86):
Example Products
The catalog displays a variety of automotive parts with different price points and stock levels:| Product | Category | Price | Stock |
|---|---|---|---|
| Filtro de Aceite | Filtros | $15 | 45 available |
| Pastillas de Freno | Frenos | $89 | 23 available |
| Bujías NGK | Encendido | $32 | Out of stock |
| Batería 12V | Eléctrico | $1,299 | 12 available |
| Amortiguador Delantero | Suspensión | $2,450 | 8 available |
| Aceite Sintético 5W-30 | Lubricantes | $45 | 56 available |
User Journey
- Customer navigates to
/catalogo - Browse products by scrolling or use the search bar to find specific parts
- View product details including category, price, and stock availability
- Click “Agregar al Carrito” to add items to the shopping cart
- Cart counter in header updates to reflect added items
- Continue shopping or proceed to
/carritoto review the cart
Navigation Integration
The catalog header provides quick access to:- MACUIN Logo - Returns to catalog home
- Mis Pedidos - View order history
- Cart Icon - Shows item count and links to
/carrito - User Icon - Access login/account management