Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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.).
Core Functionality:
Technical Specifications:
Current Status:
What We Need: Either a custom app or backend service that provides:
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.
Hi,
Hope this will work
- Create a custom Shopify app with customer/metafield access
- Build a secure API endpoint to update visited stadiums
- Add frontend JavaScript to call that endpoint
JavaScript example
document.querySelectorAll('.mark-visited').forEach(button => {
button.addEventListener('click', async () => {
const stadiumId = button.dataset.stadiumId;
const customerId = window.customerId; // Pass this from Liquid if needed
const res = await fetch('https://your-backend.com/mark-visited', {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({ customerId, stadiumId })
});
const data = await res.json();
if (data.status === 'success') {
button.textContent = 'Besøgt';
}
});
});
- Use metafields to store and show visited stadiums
- Protect everything with login checks and access control