This commit is contained in:
jonasChristoph
2022-03-30 13:41:03 +02:00
3 changed files with 5 additions and 6 deletions

View File

@@ -17,7 +17,7 @@
<p><b>Adresse: </b></p> <p><b>Adresse: </b></p>
</p> </p>
</div> </div>
<div id="order-info"> <div id="order-info">
<h3>Ihre Bestellungen</h3> <h3>Ihre Bestellungen</h3>
<table> <table>
@@ -38,7 +38,7 @@
<td><%= orders[i].name %></td> <td><%= orders[i].name %></td>
<td>In Progress</td> <td>In Progress</td>
<td><%= orders[i].quantity %></td> <td><%= orders[i].quantity %></td>
<td><%= orders[i].price %></td> <td><%= orders[i].price %></td>
<td><%= orders[i].price * orders[i].quantity%> €</td> <td><%= orders[i].price * orders[i].quantity%> €</td>
</tr> </tr>
<% } %> <% } %>
@@ -46,7 +46,6 @@
</table> </table>
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View File

@@ -12,10 +12,10 @@
<div id="order-info"> <div id="order-info">
<p><b>Produktname:</b> <%= product.name %></p> <p><b>Produktname:</b> <%= product.name %></p>
<p><b>Stückpreis:</b> <%= product.price %> €</p> <p><b>Stückpreis:</b> <%= product.price.toFixed(2) %> €</p>
<p><b>Anzahl: </b><%= quantity %></p> <p><b>Anzahl: </b><%= quantity %></p>
<hr> <hr>
<p><b>Gesamtpreis:</b> <%= quantity * product.price %> €</p> <p><b>Gesamtpreis:</b> <%= (quantity * product.price).toFixed(2) %> €</p>
</div> </div>
<!--submit button--> <!--submit button-->

View File

@@ -21,7 +21,7 @@
<p class="seller">Verkäufer: <%= product.sellerName%></p><br> <p class="seller">Verkäufer: <%= product.sellerName%></p><br>
<p class="product-detail"><b>Preis:</b> <%= product.price %> € / Stück</h2> <p class="product-detail"><b>Preis:</b> <%= product.price.toFixed(2) %> € / Stück</h2>
<p class="product-detail"><b>Kategorie:</b> <%= category.name %></h2> <p class="product-detail"><b>Kategorie:</b> <%= category.name %></h2>
<div> <div>
<% if(product.quantity > 0){%> <% if(product.quantity > 0){%>