Accessing the Product Gallery
The product catalog is available on the main gallery page (GaleriaProductos). When you first visit the page, products are loaded from the server with a brief loading animation to ensure all product information is ready.
Products are fetched from a remote API. If you see a loading indicator, please wait a moment while the catalog loads.
Product Display
Products are displayed in a grid layout, with each product card showing:- Product Image: A visual representation of the item
- Product Name: The title of the product
- Price: Displayed in dollars (e.g., $45.99)
- Stock Availability: Shows the current stock level
- Action Buttons:
- “Agregar” (Add) - Adds the item to your shopping cart
- “Ver detalles” (View Details) - Opens the detailed product page
Product Card Layout
Each product in the gallery follows this structure:Search Functionality
The product gallery includes a powerful search feature that helps you quickly find specific items.How to Search
- Locate the search input at the top of the product gallery
- Type your search term in the “Buscar productos…” field
- Results filter automatically as you type
- The search is case-insensitive and matches product names
Search Implementation
The search filters products based on their name:Pagination
To make browsing easier, products are divided into pages with 5 items per page.Navigating Pages
The pagination controls appear at the bottom of the product list:- Previous Button: Go to the previous page (disabled on page 1)
- Page Numbers: Click any page number to jump directly to that page
- Next Button: Advance to the next page (disabled on the last page)
- Active Page: The current page is highlighted
When you change pages, the view automatically scrolls to the top of the gallery for easier navigation.
Pagination Details
Adding Products to Cart
Directly from the product gallery, you can add items to your cart:- Find the product you want
- Click the “Agregar” button on the product card
- A toast notification confirms the item was added
- If the item is already in your cart, the quantity increases by 1
Viewing Product Details
For more information about a specific product:- Click the “Ver detalles” link on any product card
- You’ll be taken to the dedicated product details page
- See the full description, category, and larger images
Loading States
The gallery handles several states to provide a smooth experience:- Loading: Displays a loading animation while products are being fetched
- Error: Shows an error message if products cannot be loaded
- Empty Results: If your search returns no matches, the gallery will be empty
Best Practices
Use Search First
If you know what you’re looking for, use the search feature to quickly narrow down results before browsing.
Check Stock Levels
Always verify the stock availability shown on each product card before adding items to your cart.
View Details
Click “Ver detalles” to see the complete product information, including category and full description.
Browse by Page
Use pagination controls to systematically browse all available products without overwhelming your screen.
Related Features
- Shopping Cart - Manage items you’ve added
- Product Details - View detailed product information
- Contact - Reach out with questions about products