From eb40df200b7a3d6fae954e98143c61a497762df5 Mon Sep 17 00:00:00 2001 From: Ben PC Date: Wed, 30 Mar 2022 10:08:08 +0200 Subject: [PATCH] Product Link Fix --- views/search.ejs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/views/search.ejs b/views/search.ejs index 9353bcc..4bbe7c0 100644 --- a/views/search.ejs +++ b/views/search.ejs @@ -25,9 +25,10 @@ var prod = products[i]; if (!prod.img) { prod.img = "/images/examples.jpg"; } //if (!prod.rating) { prod.rating = 0; } %> -
+
-

<%=prod.name %>

+

<%=prod.name %>

+

<%=prod.price %>€

<% if (prod.rating) { @@ -72,10 +73,14 @@ function openProduct(id, newWindow) { window.open('/product/'+id, newWindow ? '_blank' : '_self') } -