OTC auf Produkt-ID umstellen
This commit is contained in:
@@ -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,";
|
||||
|
||||
Reference in New Issue
Block a user