Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Antony-Figueroa/my-evershop-app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Product Catalog extension enhances the standard product display with specialized information for supplement products. It provides a structured way to display ingredients, benefits, dosage, warnings, and storage information.Features
- Supplement-specific data fields
- Structured information display
- GraphQL schema extensions
- Brand-styled components
Use Cases
- Health supplements
- Vitamins and minerals
- Sports nutrition
- Dietary supplements
Supplement Information Component
The main component displays comprehensive product information in a structured format atextensions/productCatalog/src/pages/frontStore/productView/SupplementInfo.tsx:
SupplementInfo.tsx
Data Structure
The supplement information is stored in the product’s extension data:GraphQL Schema Extension
The extension adds aProductExtension type to the GraphQL schema at extensions/productCatalog/src/graphql/types/ProductExtension/ProductExtension.graphql:
ProductExtension.graphql
ProductExtension.resolvers.js:
ProductExtension.resolvers.js
Information Sections
The component displays up to 7 sections of supplement information:Ingredientes (Ingredients)
Ingredientes (Ingredients)
Lists the active and inactive ingredients in the supplement. This helps customers:
- Identify allergens
- Verify ingredient quality
- Check for specific compounds
- Compare with other products
Beneficios (Benefits)
Beneficios (Benefits)
Displays health benefits as a bulleted list. Common benefits include:
- “Mejora la energía y resistencia”
- “Apoya la salud muscular”
- “Fortalece el sistema inmunológico”
- “Promueve la recuperación post-entrenamiento”
Presentación (Presentation)
Presentación (Presentation)
Describes the product format:
- “60 cápsulas vegetales”
- “500g de polvo”
- “30 sobres individuales”
- “120 tabletas”
Dosis Recomendada (Recommended Dosage)
Dosis Recomendada (Recommended Dosage)
Provides clear dosage instructions:
- “Tomar 2 cápsulas al día con alimentos”
- “Mezclar 1 cucharada con 250ml de agua”
- “Consumir 1 sobre antes del ejercicio”
Advertencias (Warnings)
Advertencias (Warnings)
Important safety information:
- “No exceder la dosis recomendada”
- “Consultar con un médico si está embarazada”
- “Mantener fuera del alcance de los niños”
- “No sustituye una dieta equilibrada”
Almacenamiento (Storage)
Almacenamiento (Storage)
Storage instructions to maintain product quality:
- “Conservar en lugar fresco y seco”
- “Mantener alejado de la luz solar directa”
- “Cerrar bien después de cada uso”
Descripción (Description)
Descripción (Description)
Additional product description with HTML support for rich formatting.
Component Features
Conditional Rendering
The component intelligently handles missing data:- Returns
nullif no supplement data or description exists - Shows only sections with available data
- Gracefully degrades when optional fields are missing
GraphQL Data Fetching
Uses thequery export to fetch product data:
Layout Configuration
Registered in the product page with:Styling
The component uses Ana’s Suplements brand colors:| Element | Color | Usage |
|---|---|---|
| Container Background | #F8FAF9 | Main card background |
| Border | #E8F5E9 | Card and divider borders |
| Headings | #2D5A3D | Section titles |
| Body Text | #4A5568 | Content text |
| White Background | #FFFFFF | Description area |
Extension Structure
Configuration
Enabled inconfig/default.json:
Best Practices
Localization: All labels are in Spanish. Update the component for other languages if needed.
Next Steps
Product Reviews
Add customer reviews to products
GraphQL API
Learn about extending GraphQL schemas