{
                productGroups[productName] = 0;
            }
            productGroups[productName]++;
        });
        
        // Create button text
        let buttonText = '';
        const productNames = Object.keys(productGroups);
        
        if (productNames.length === 1) {
            // Single product type
            const productName = productNames[0];
            const count = productGroups[productName];
            buttonText = `${count}x ${productName} hinzufügen`;
        } else {