OTC auf Produkt-ID umstellen

This commit is contained in:
2026-06-15 14:05:29 +02:00
parent 82387690dc
commit fb812e147e
3 changed files with 24 additions and 20 deletions
+1 -1
View File
@@ -438,7 +438,7 @@ function render_auth_home_page(array $user, array $otcProducts = []): void
echo " if (!updateFormState()) { return; }";
echo " const products = productInputs";
echo " .filter((input) => getInputValue(input) > 0)";
echo " .map((input) => ({ title: input.dataset.title, qty: getInputValue(input) }));";
echo " .map((input) => ({ productId: parseInt(input.dataset.productId || '0', 10), qty: getInputValue(input) }));";
echo " const orderData = {";
echo " products: products,";
echo " totalPrice: parseFloat(totalPriceInput.value || '0') || 0,";