diff --git a/views/account.ejs b/views/account.ejs index 040d9df..cfd9abb 100644 --- a/views/account.ejs +++ b/views/account.ejs @@ -38,7 +38,7 @@ <%= orders[i].name %> In Progress <%= orders[i].quantity %> - <%= orders[i].price %> + <%= orders[i].price %> € <%= orders[i].price * orders[i].quantity%> € <% } %> diff --git a/views/order.ejs b/views/order.ejs index 1716f9c..ffc9b17 100644 --- a/views/order.ejs +++ b/views/order.ejs @@ -12,10 +12,10 @@

Produktname: <%= product.name %>

-

Stückpreis: <%= product.price %> €

+

Stückpreis: <%= product.price.toFixed(2) %> €

Anzahl: <%= quantity %>


-

Gesamtpreis: <%= quantity * product.price %> €

+

Gesamtpreis: <%= (quantity * product.price).toFixed(2) %> €

diff --git a/views/product.ejs b/views/product.ejs index f627c46..8d6e6bb 100644 --- a/views/product.ejs +++ b/views/product.ejs @@ -21,7 +21,7 @@

Verkäufer: <%= product.sellerName%>


-

Preis: <%= product.price %> € / Stück +

Preis: <%= product.price.toFixed(2) %> € / Stück

Kategorie: <%= category.name %>

<% if(product.quantity > 0){%>