We need a custom stadium passport feature for målminutter.dk, a Danish football stadium review platform built on Shopify. Each stadium is a product, and we use the Vendor field to indicate leagues (Superliga, 1. Division, etc.).
Requirements
Core Functionality:
- Login-only access
- Feature only available to logged-in customers
- Track visited stadiums
- Customers can mark stadiums as “visited”
- Progress tracking
- Show “X af Y besøgt” for each league
- Visual indicators
- Clear visited/not visited status on each stadium
- Scalable
- Automatically supports new leagues added via Vendor field
Technical Specifications:
- Data Storage: Customer metafield passport.visited_stadiums (List of product references)
- Frontend: Existing Liquid section displays data correctly
- Backend: Need API endpoint to update customer metafields from frontend
- Security: Ensure only logged-in customers can update their own data
Current Status:
- Display logic works perfectly (Liquid template complete)
- Customer metafield created and configured
- Interactive buttons fail (Shopify security restrictions)
What We Need: Either a custom app or backend service that provides:
- API endpoint to safely update customer metafields
- JavaScript integration for the existing frontend
- Proper authentication and security
Existing Code: We have a complete Liquid section with styling and frontend logic - just need the backend functionality to make the “Marker som besøgt” buttons work.