mirror of
https://github.com/DerTyp7/shop-ejs-expressjs.git
synced 2025-10-29 12:32:11 +01:00
Multiple Categories
This commit is contained in:
@@ -22,7 +22,14 @@
|
||||
<p class="seller">Verkäufer: <%= product.sellerName%></p><br>
|
||||
|
||||
<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>Kategorien:</b>
|
||||
<% for (var i=0; i < categories.length; i++) {
|
||||
%><%=categories[i]["name"] %><%
|
||||
if (i != (categories.length - 1)) {
|
||||
%>, <%
|
||||
}
|
||||
} %>
|
||||
</h2>
|
||||
<div>
|
||||
<% if(product.quantity > 0){%>
|
||||
<p style="margin-right: 30px; margin-left: 0px;color: green;">
|
||||
|
||||
Reference in New Issue
Block a user