Skip to content

Commit

Permalink
added screenshots, fixed cart total price bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BahaaAY committed Aug 8, 2023
1 parent a0726f9 commit 971b01a
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/cart.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"products":[]}
{"products":[{"id":5345412006,"qty":2},{"id":4545678381,"qty":1}]}
2 changes: 1 addition & 1 deletion data/products.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[]
[{"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"}]
Binary file added screenshots/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/admin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/cart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/product-details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/shop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion views/shop/cart.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ul>
<hr>
<h1>
Total: <%= cartTotal %> $</h1>
Total: <%=cartTotal.toFixed(2) %> $</h1>
<% }else{ %>
<h1>No Products in Cart!</h1>
Expand Down

0 comments on commit 971b01a

Please sign in to comment.