Overview
The complaints system (Denuncias) allows customers to report issues with products, promotions, or vendor service. Vendors and administrators can respond to complaints, track resolution status, and maintain communication history.Denuncia Structure
Complaint Fields
| Field | Type | Description |
|---|---|---|
id_denuncia | int | Unique complaint identifier |
motivo | text | Complaint reason/description |
fecha | varchar(25) | Submission date |
register_idregistro | int | Customer ID (complainant) |
galeria_id_galeria | int | Product ID (if product complaint) |
promocion_id_promo | int | Promotion ID (if promo complaint) |
locale_id_local | int | Store/vendor ID |
status | int | Resolution status (0=pending, 1=resolved) |
resp | int | Response indicator (0=no response, user_id=responded) |
nombre | varchar | Responder name |
Model Relationships
Filing Complaints
Customer Complaint Flow
Access Complaint Form
Navigate via product/promotion detail page:
- Product:
/ventas/denunciar/{product}/{customer}/{store} - Promotion:
/ventas/denunciar_promo/{product}/{customer}/{store}
Describe Issue
Customer enters complaint details in the
motivo field:- Product quality issues
- Delivery problems
- Service complaints
- Incorrect items
- Other concerns
Submit Complaint
Form submits to:
- Product:
/denuncias/denunciar - Promotion:
/denuncias/denunciar_promo
- Current date (
fecha) - Customer ID (
register_idregistro) - Store ID (
locale_id_local) - Initial status (0 = pending)
- Response status (0 = no response)
Vendor Complaint Management
Viewing Complaints
Endpoint:/denuncias/index
- Vendor View
- Administrator View
Vendors see only complaints for their store:Features:
- 10 complaints per page
- Ordered by date (newest first)
- Shows pending complaints only
Responding to Complaints
Select Complaint
From the complaints list, click to view detailsRoute:
/denuncias/responder_denuncia/{id}Review Details
System displays:
- Customer information
- Product/promotion details
- Complaint text (
motivo) - Store information
- Submission date
Compose Response
Fill in the response form with:
- Resolution explanation
- Actions taken
- Refund/exchange information
- Apology or clarification
Response Record Creation
Customer Complaint Tracking
Viewing My Complaints
Endpoint:/ventas/misreclamos
Customers can track all their complaints and responses:
Features:
- Shows complaints with responses (
resp != 0) - Pagination (8 items per page)
- Ordered by date
- Displays:
- Product/promotion images and details
- Store information
- Complaint status
- Response indicator
- Vendor contact information
Responding to Vendor Reply
View Response
Customer clicks on complaint with response indicatorRoute:
/denuncias/responder_reclamo/{id}Read Vendor Response
System displays:
- Original complaint
- Vendor’s response
- Resolution details
- Store contact information
Complaint Status Workflow
Status Values
Status = 0
PendingComplaint has not been marked as resolved. May be waiting for response or customer review.
Status = 1
ResolvedComplaint has been addressed and marked complete by the system.
Response Values
Resp = 0
No ResponseOriginal complaint from customer awaiting vendor response.
Resp = User ID
Response SentContains the user ID of the person who responded (vendor or admin).
Complaint Categories
Product Complaints
Complaints linked to specific products (galeria_id_galeria):
Common Issues:
- Defective items
- Wrong product received
- Damaged during shipping
- Not as described
- Quality concerns
- Product thumbnail
- Product name
- Product URL
- Purchase details
Promotional Complaints
Complaints about promotions (promocion_id_promo):
Common Issues:
- Promotion not honored
- Misleading advertising
- Expired promotion accepted
- Wrong pricing
- Terms not clear
Deleting Complaints
Delete Endpoint:/denuncias/delete/{id}
Process:
- Administrator or vendor selects complaint
- Clicks delete action
- System removes record from database
- Redirects to complaint list with confirmation
- Spam complaints
- Duplicate submissions
- Test data cleanup
- Resolved historical data
Message System Integration
Viewing Messages
Endpoint:/ventas/mismensajes
Customers can view all communications with vendors:
Includes:
- Product inquiries (from
pagestable) - Complaint responses
- Status updates
- Vendor communications
Message Status Update
Endpoint:/denuncias/detallemensajepromo/{date}/{url}/{page_id}
When customer views a message:
- System marks complaint as read (
status = 1) - Redirects to product/promo detail page
- Updates viewed timestamp
Access Control
Public Access
The following actions are accessible to customers without admin login:Protected Access
Vendor/Admin Only:index- View complaint listresponder_denuncia- Respond to complaintsregistro_denuncia- Submit responsedelete- Remove complaints
ACL Integration
Vendors can only see and respond to complaints for their assigned store. Access is filtered by
locale_id_local matching the user’s session.Reporting & Analytics
Complaint Metrics
Track key metrics for quality improvement: Common Queries:- Total complaints by store
- Average response time
- Resolution rate
- Complaint categories
- Repeat complainants
Best Practices
Timely Responses
Timely Responses
- Respond to complaints within 24-48 hours
- Acknowledge receipt immediately
- Provide clear resolution timeline
- Follow up after resolution
Professional Communication
Professional Communication
- Use polite, professional language
- Address customer concerns directly
- Offer specific solutions
- Include contact information for follow-up
Record Keeping
Record Keeping
- Don’t delete complaints unless necessary
- Use status and response fields properly
- Document resolution actions
- Track patterns for improvement
Vendor Training
Vendor Training
- Train vendors on complaint handling
- Provide response templates
- Set response time expectations
- Review complaint trends regularly
Email Notifications
The codebase includes commented email functionality (
$this->_sendEmail($this->data)). This can be enabled to automatically notify customers when vendors respond.- Configure email settings in CakePHP
- Uncomment email sending in response handlers
- Customize email templates
- Include complaint details and response
Related Features
Sales Tracking
View purchase history related to complaints
User Management
Manage vendor access to complaints
Inventory Management
Track products with frequent complaints