diff --git a/data/cart.json b/data/cart.json index 7cd29c5..4fb9c09 100644 --- a/data/cart.json +++ b/data/cart.json @@ -1 +1 @@ -{"products":[]} \ No newline at end of file +{"products":[{"id":5345412006,"qty":2},{"id":4545678381,"qty":1}]} \ No newline at end of file diff --git a/data/products.json b/data/products.json index 0637a08..f799d0d 100644 --- a/data/products.json +++ b/data/products.json @@ -1 +1 @@ -[] \ No newline at end of file +[{"id":5345412006,"title":"Product 1","imageUrl":"https://picsum.photos/200","description":"Sollicitudin lacus alias molestiae rem modi, asperiores tempora, hymenaeos, consequuntur mi accumsan.","price":"12.99"},{"id":4545678381,"title":"Product 2","imageUrl":"https://picsum.photos/200/201","description":"Quam felis nihil laudantium molestie id quibusdam mi. Primis fames bibendum accusamus.\r\n\r\nIn blanditiis reprehenderit sociis, conubia magnis dolor nunc eiusmod, deleniti mollit veritatis.","price":"32"}] \ No newline at end of file diff --git a/screenshots/add.png b/screenshots/add.png new file mode 100644 index 0000000..1a3923e Binary files /dev/null and b/screenshots/add.png differ diff --git a/screenshots/admin.png b/screenshots/admin.png new file mode 100644 index 0000000..73f1670 Binary files /dev/null and b/screenshots/admin.png differ diff --git a/screenshots/cart.png b/screenshots/cart.png new file mode 100644 index 0000000..b4ceabc Binary files /dev/null and b/screenshots/cart.png differ diff --git a/screenshots/product-details.png b/screenshots/product-details.png new file mode 100644 index 0000000..e0f7bb7 Binary files /dev/null and b/screenshots/product-details.png differ diff --git a/screenshots/shop.png b/screenshots/shop.png new file mode 100644 index 0000000..ea91df8 Binary files /dev/null and b/screenshots/shop.png differ diff --git a/views/shop/cart.ejs b/views/shop/cart.ejs index 23e8da2..71188ec 100644 --- a/views/shop/cart.ejs +++ b/views/shop/cart.ejs @@ -25,7 +25,7 @@

- Total: <%= cartTotal %> $

+ Total: <%=cartTotal.toFixed(2) %> $ <% }else{ %>

No Products in Cart!