diff --git a/templates/add_product_gam.html b/templates/add_product_gam.html index e0a61181c..a4bb0117e 100644 --- a/templates/add_product_gam.html +++ b/templates/add_product_gam.html @@ -16,7 +16,7 @@

⚠️ Inventory Not Synced

{% endif %} -
+

Product Information

Basic product details that buyers will see

@@ -474,7 +474,6 @@

Pricing Option #${index + 1}

} } +// Debug form submission +function debugFormSubmission(event) { + const formatCheckboxes = document.querySelectorAll('input[name="formats"]:checked'); + const formatValues = Array.from(formatCheckboxes).map(cb => cb.value); + console.log('[DEBUG] Form submission - checked formats:', formatValues); + console.log('[DEBUG] Form submission - total checked:', formatValues.length); + + if (formatValues.length === 0) { + console.error('[DEBUG] NO FORMATS CHECKED ON SUBMIT!'); + // Don't prevent submission, just log the issue + } + + // Continue with form submission + return true; +} + // Filter formats based on search input function filterGAMFormats() { const searchInput = document.getElementById('format-search-input');