Ihre Bestellung:
+Kundennummer:
+Produkt-ID:
+Produktname:
+Preis:
+diff --git a/database/db_scripts/webshop_test-data.sql b/database/db_scripts/webshop_test-data.sql index 2e4bd83..d94c6b2 100644 --- a/database/db_scripts/webshop_test-data.sql +++ b/database/db_scripts/webshop_test-data.sql @@ -2,15 +2,15 @@ USE webshop; -- Product Categories INSERT INTO product_category (id, name) -VALUES (1, 'Electronics'); +VALUES (1, 'Motorräder'); INSERT INTO product_category (id, name) -VALUES (2, 'Home Appliances'); +VALUES (2, 'Oldtimer'); INSERT INTO product_category (id, name) -VALUES (3, 'Clothing'); +VALUES (3, 'Sportwägen'); INSERT INTO product_category (id, name) -VALUES (4, 'Sports'); +VALUES (4, 'LKWs'); INSERT INTO product_category (id, name) -VALUES (5, 'Books'); +VALUES (5, 'Kleinwägen'); -- Discounts INSERT INTO discount (id, name, description, discount_percent, active) diff --git a/public/bestellformular/bestellformular.html b/public/bestellformular/bestellformular.html index f3f07e4..048152c 100644 --- a/public/bestellformular/bestellformular.html +++ b/public/bestellformular/bestellformular.html @@ -1,55 +1,262 @@
- - -Kundennummer:
+Produkt-ID:
+Produktname:
+Preis:
+Preis: ${product.price}€
${product.description}
+Artikel Nr: ${product.id}
`; // Karte in den Container einfügen diff --git a/public/shop/shop_lkw.html b/public/shop/shop_lkw.html index f32d052..0f15d10 100644 --- a/public/shop/shop_lkw.html +++ b/public/shop/shop_lkw.html @@ -47,18 +47,17 @@ // Für jedes Produkt eine Karte erstellen products.forEach(product => { - const card = document.createElement('div'); - card.classList.add('card'); - // Die Karte mit Produktdaten füllen - card.innerHTML = ` -Preis: ${product.price}€
-${product.description}
- - `; - // Die Karte in den Container einfügen - container.appendChild(card); + const card = document.createElement('div'); + card.classList.add('card'); + card.innerHTML = ` +Preis: ${product.price}€
+${product.description}
+Artikel Nr: ${product.id}
+ + `; + container.appendChild(card); }); }) // Fehlerbehandlung diff --git a/public/shop/shop_motorrad.html b/public/shop/shop_motorrad.html index 96c69c3..5af6521 100644 --- a/public/shop/shop_motorrad.html +++ b/public/shop/shop_motorrad.html @@ -38,27 +38,25 @@ +