Log basket JSON to console on buyNow click

This commit is contained in:
2026-08-22 09:06:55 +00:00
parent 8e5d508b13
commit 07de1249cf
+1
View File
@@ -649,6 +649,7 @@ var si = 0,
var item = { product_id: productId, qty: 1 }; var item = { product_id: productId, qty: 1 };
if (location) { item.location = location; } if (location) { item.location = location; }
basket.value = JSON.stringify([item]); basket.value = JSON.stringify([item]);
console.log('Buy basket:', basket.value);
form.appendChild(basket); form.appendChild(basket);
var clear = document.createElement('input'); var clear = document.createElement('input');
clear.type = 'hidden'; clear.type = 'hidden';