mirror of
https://github.com/DerTyp7/shop-ejs-expressjs.git
synced 2025-10-29 12:32:11 +01:00
fixed price .toFixed(2)
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<td><%= orders[i].name %></td>
|
||||
<td>In Progress</td>
|
||||
<td><%= orders[i].quantity %></td>
|
||||
<td><%= orders[i].price %></td>
|
||||
<td><%= orders[i].price %> €</td>
|
||||
<td><%= orders[i].price * orders[i].quantity%> €</td>
|
||||
</tr>
|
||||
<% } %>
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
|
||||
<div id="order-info">
|
||||
<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>
|
||||
<hr>
|
||||
<p><b>Gesamtpreis:</b> <%= quantity * product.price %> €</p>
|
||||
<p><b>Gesamtpreis:</b> <%= (quantity * product.price).toFixed(2) %> €</p>
|
||||
</div>
|
||||
|
||||
<!--submit button-->
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<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>
|
||||
<div>
|
||||
<% if(product.quantity > 0){%>
|
||||
|
||||
Reference in New Issue
Block a user