From f52dd676eebf800f0bbedf2c383abd9d97186e70 Mon Sep 17 00:00:00 2001 From: Saida Lachgar Date: Thu, 31 Jul 2025 15:08:33 +0100 Subject: [PATCH] Fix JS bug in submit: incorrect variable caused missing variant selection --- js/mailalerts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/mailalerts.js b/js/mailalerts.js index 8086399..320dc43 100644 --- a/js/mailalerts.js +++ b/js/mailalerts.js @@ -22,7 +22,7 @@ function addNotification(productId, productAttributeId) { if (typeof productId === 'undefined') { var ids = $('div.js-mailalert > input[type=hidden]'); productId = ids.eq(0).val(); - productIdAttribute = ids.eq(1).val(); + productAttributeId = ids.eq(1).val(); } $.ajax({