diff --git a/README.md b/README.md
index b92c552..9382b92 100644
--- a/README.md
+++ b/README.md
@@ -13,6 +13,9 @@ Welcome to the Product Management System, a web application designed to streamli
- **View Products:** Users can browse the list of available products.
- **Add to Cart:** Users have the option to add products to their shopping cart.
+### Default Items:
+- The system comes with 10 default items that are always displayed on the site.
+
## Live Link:
Visit the live website: [Product Management System](https://gauravzz12.github.io/Product-Management-System/)
diff --git a/index.html b/index.html
index a330227..e10048d 100644
--- a/index.html
+++ b/index.html
@@ -149,7 +149,88 @@
Product List
Actions
-
+
+
+ 1
+
+ Apple
+ Rs.100
+ Fresh red apples
+ Add to Cart
+
+
+ 2
+
+ Banana
+ Rs.50
+ Ripe yellow bananas
+ Add to Cart
+
+
+ 3
+
+ Orange
+ Rs.80
+ Juicy oranges
+ Add to Cart
+
+
+ 4
+
+ Grapes
+ Rs.120
+ Fresh green grapes
+ Add to Cart
+
+
+ 5
+
+ Mango
+ Rs.150
+ Sweet mangoes
+ Add to Cart
+
+
+ 6
+
+ Watermelon
+ Rs.200
+ Refreshing watermelon
+ Add to Cart
+
+
+ 7
+
+ Pineapple
+ Rs.180
+ Delicious pineapple
+ Add to Cart
+
+
+ 8
+
+ Strawberry
+ Rs.250
+ Fresh strawberries
+ Add to Cart
+
+
+ 9
+
+ Blueberry
+ Rs.300
+ Fresh blueberries
+ Add to Cart
+
+
+ 10
+
+ Kiwi
+ Rs.220
+ Fresh kiwi
+ Add to Cart
+
+
No Products Found!
diff --git a/script.js b/script.js
index a90ba10..70e2166 100644
--- a/script.js
+++ b/script.js
@@ -3,6 +3,103 @@ let data = JSON.parse(localStorage.getItem("Products")) || [];
let LoggedUser = JSON.parse(sessionStorage.getItem("currentUser")) || [];
let cart = JSON.parse(localStorage.getItem("Cart")) || [];
+// Initialize 10 default items in the data array
+if (data.length === 0) {
+ data = [
+ {
+ pid: generateProductId(),
+ serialNumber: 1,
+ Productname: "Apple",
+ ProductImage: "https://images.unsplash.com/photo-1581579186374-2a3b1b1a1b1a",
+ ProductPrice: 100,
+ ProductQuantity: 10,
+ ProductDescription: "Fresh red apples",
+ },
+ {
+ pid: generateProductId(),
+ serialNumber: 2,
+ Productname: "Banana",
+ ProductImage: "https://images.unsplash.com/photo-1581579186374-2a3b1b1a1b1a",
+ ProductPrice: 50,
+ ProductQuantity: 20,
+ ProductDescription: "Ripe yellow bananas",
+ },
+ {
+ pid: generateProductId(),
+ serialNumber: 3,
+ Productname: "Orange",
+ ProductImage: "https://images.unsplash.com/photo-1581579186374-2a3b1b1a1b1a",
+ ProductPrice: 80,
+ ProductQuantity: 30,
+ ProductDescription: "Juicy oranges",
+ },
+ {
+ pid: generateProductId(),
+ serialNumber: 4,
+ Productname: "Grapes",
+ ProductImage: "https://images.unsplash.com/photo-1581579186374-2a3b1b1a1b1a",
+ ProductPrice: 120,
+ ProductQuantity: 40,
+ ProductDescription: "Fresh green grapes",
+ },
+ {
+ pid: generateProductId(),
+ serialNumber: 5,
+ Productname: "Mango",
+ ProductImage: "https://images.unsplash.com/photo-1581579186374-2a3b1b1a1b1a",
+ ProductPrice: 150,
+ ProductQuantity: 50,
+ ProductDescription: "Sweet mangoes",
+ },
+ {
+ pid: generateProductId(),
+ serialNumber: 6,
+ Productname: "Watermelon",
+ ProductImage: "https://images.unsplash.com/photo-1581579186374-2a3b1b1a1b1a",
+ ProductPrice: 200,
+ ProductQuantity: 60,
+ ProductDescription: "Refreshing watermelon",
+ },
+ {
+ pid: generateProductId(),
+ serialNumber: 7,
+ Productname: "Pineapple",
+ ProductImage: "https://images.unsplash.com/photo-1581579186374-2a3b1b1a1b1a",
+ ProductPrice: 180,
+ ProductQuantity: 70,
+ ProductDescription: "Delicious pineapple",
+ },
+ {
+ pid: generateProductId(),
+ serialNumber: 8,
+ Productname: "Strawberry",
+ ProductImage: "https://images.unsplash.com/photo-1581579186374-2a3b1b1a1b1a",
+ ProductPrice: 250,
+ ProductQuantity: 80,
+ ProductDescription: "Fresh strawberries",
+ },
+ {
+ pid: generateProductId(),
+ serialNumber: 9,
+ Productname: "Blueberry",
+ ProductImage: "https://images.unsplash.com/photo-1581579186374-2a3b1b1a1b1a",
+ ProductPrice: 300,
+ ProductQuantity: 90,
+ ProductDescription: "Fresh blueberries",
+ },
+ {
+ pid: generateProductId(),
+ serialNumber: 10,
+ Productname: "Kiwi",
+ ProductImage: "https://images.unsplash.com/photo-1581579186374-2a3b1b1a1b1a",
+ ProductPrice: 220,
+ ProductQuantity: 100,
+ ProductDescription: "Fresh kiwi",
+ },
+ ];
+ localStorage.setItem("Products", JSON.stringify(data));
+}
+
//ADMIN
let serialNumber;