Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev2 with dev #139

Open
wants to merge 84 commits into
base: dev2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
039c16e
location results div tags replaced
chaveene Jan 14, 2021
86f3434
Merge pull request #115 from Chaviya98/dev
chaveene Jan 14, 2021
1fa277c
fix location modal issue in search page
sahandilshan Jan 14, 2021
c042502
Merge branch 'dev' of https://github.com/sahandilshan/HOMEAL into dev
sahandilshan Jan 14, 2021
d6c2cc7
location input id added.
chaveene Jan 14, 2021
0a0468c
Merge pull request #116 from Chaviya98/dev
chaveene Jan 14, 2021
1992b71
Fix order screen alignment issues
sahandilshan Jan 14, 2021
efc41af
Merge branch 'dev' of https://github.com/sahandilshan/HOMEAL into dev
sahandilshan Jan 14, 2021
85e8015
fix:acheivment modal
ahamedmuaaz Jan 14, 2021
8462c74
Merge pull request #117 from ahamedmuaaz/dev
ahamedmuaaz Jan 14, 2021
a4a58f3
location model code refactored.
chaveene Jan 14, 2021
2c00dd1
Merge pull request #118 from Chaviya98/dev
chaveene Jan 14, 2021
df6fa47
Remove unnecessary code lines
sahandilshan Jan 14, 2021
38e0cdc
fix:bottom navigaation fix
ahamedmuaaz Jan 14, 2021
92e093e
Merge pull request #119 from ahamedmuaaz/dev
ahamedmuaaz Jan 14, 2021
769c33c
Load merchant name and category
sahandilshan Jan 14, 2021
3af2344
fix:cart swith confiormation
ahamedmuaaz Jan 14, 2021
2fe315c
Merge pull request #120 from ahamedmuaaz/dev
ahamedmuaaz Jan 14, 2021
f97b95e
fix:added message
ahamedmuaaz Jan 14, 2021
0fd0b37
Merge pull request #121 from ahamedmuaaz/dev
ahamedmuaaz Jan 14, 2021
bfd33bc
Change order id and user id
sahandilshan Jan 14, 2021
52331c3
Add merchant reply feature
sahandilshan Jan 14, 2021
21e0d86
Merge branch 'dev' of https://github.com/sahandilshan/HOMEAL into dev
sahandilshan Jan 14, 2021
e85ac98
Save rated status on sessions
sahandilshan Jan 14, 2021
96b5c65
new:added delete function for cart
ahamedmuaaz Jan 14, 2021
2db1630
Merge pull request #122 from ahamedmuaaz/dev
ahamedmuaaz Jan 14, 2021
f91af15
Show snackbar to when a reply added
sahandilshan Jan 14, 2021
11b9ac3
Open product card with default values
sahandilshan Jan 14, 2021
c9be882
Load replies from merchants
sahandilshan Jan 14, 2021
7179fff
Merge branch 'dev' of https://github.com/sahandilshan/HOMEAL into dev
sahandilshan Jan 14, 2021
ea45c79
style refactored.
chaveene Jan 15, 2021
d2b9a93
Merge pull request #123 from Chaviya98/dev
chaveene Jan 15, 2021
bc03007
new nav bar icons added.
chaveene Jan 15, 2021
4ec82f1
Merge pull request #124 from Chaviya98/dev
chaveene Jan 15, 2021
41b80fd
user json updated
chaveene Jan 15, 2021
dd050d7
Merge pull request #125 from Chaviya98/dev
chaveene Jan 15, 2021
dd463e4
Show reply text in a button
sahandilshan Jan 15, 2021
4db000f
new:added navigation for merchant
ahamedmuaaz Jan 15, 2021
49c3d7c
Merge pull request #126 from ahamedmuaaz/dev
ahamedmuaaz Jan 15, 2021
d12136a
Get cart item quantity
sahandilshan Jan 15, 2021
08cfc7f
Merge branch 'dev' of https://github.com/sahandilshan/HOMEAL into dev
sahandilshan Jan 15, 2021
54bca13
merchant reply section styles refactored.
chaveene Jan 15, 2021
7a36529
Merge pull request #127 from Chaviya98/dev
chaveene Jan 15, 2021
1410063
reverted if condition
chaveene Jan 15, 2021
d17e5ed
Merge pull request #128 from Chaviya98/dev
chaveene Jan 15, 2021
422fa2d
Hide review tab when reviews not available
sahandilshan Jan 15, 2021
98c25bd
Save user location on session array
sahandilshan Jan 15, 2021
7f28d72
styles refactored
chaveene Jan 15, 2021
192df31
Merge pull request #129 from Chaviya98/dev
chaveene Jan 15, 2021
62b1659
refactored
chaveene Jan 15, 2021
6b921d5
Merge pull request #130 from Chaviya98/dev
chaveene Jan 15, 2021
c37609c
currency changed to lkr
chaveene Jan 15, 2021
faf0c8b
Merge pull request #131 from Chaviya98/dev
chaveene Jan 15, 2021
ce725d1
ratingCount added
chaveene Jan 15, 2021
c85ecdf
Merge pull request #132 from Chaviya98/dev
chaveene Jan 15, 2021
0c2feb1
Disable proceed to checkout button in cart
sahandilshan Jan 15, 2021
4b3c795
Merge branch 'dev' of https://github.com/sahandilshan/HOMEAL into dev
sahandilshan Jan 15, 2021
43d79d4
product height issue fixed
chaveene Jan 15, 2021
bda7bf9
Merge branch 'dev' of https://github.com/sahandilshan/HOMEAL into dev
chaveene Jan 15, 2021
89ef510
Merge pull request #133 from Chaviya98/dev
chaveene Jan 15, 2021
9cb6c10
Product description changed in products.json
Rahal1999 Jan 15, 2021
cdf5f8e
Merge pull request #134 from Rahal1999/dev
Rahal1999 Jan 15, 2021
74ddd7c
discount added for some products.json
chaveene Jan 15, 2021
24ba596
Merge pull request #135 from Chaviya98/dev
chaveene Jan 15, 2021
b55fc40
product updated
chaveene Jan 15, 2021
d57ac59
Merge pull request #136 from Chaviya98/dev
chaveene Jan 15, 2021
f62ffcc
Change discount percentage dynamically in product modal
sahandilshan Jan 15, 2021
d111693
Change code structure and add merchant rating dynamically
sahandilshan Jan 15, 2021
20bbf65
Re-enable disabled choose file button
sahandilshan Jan 15, 2021
2e95996
Fix bottom navigation
sahandilshan Jan 15, 2021
c39071c
Remove unwanted logs from home pages
sahandilshan Jan 15, 2021
f30ac13
Remove unwanted logs from merchant pages
sahandilshan Jan 15, 2021
0f2018e
Remove unwanted logs from order page
sahandilshan Jan 15, 2021
ba55a03
Remove unwanted logs from Product.html
sahandilshan Jan 15, 2021
91c0fbd
Remove unwanted logs from Favorites.html
sahandilshan Jan 15, 2021
717b6dc
Remove unwanted logs from welcome screens
sahandilshan Jan 15, 2021
9a85f50
Remove unwanted logs from cart modal
sahandilshan Jan 15, 2021
0238811
new:added video
ahamedmuaaz Jan 16, 2021
74062f7
Merge pull request #137 from ahamedmuaaz/dev
ahamedmuaaz Jan 16, 2021
486ce8f
Fix CheckoutStatusSuccess.html bottom navigation
sahandilshan Jan 16, 2021
a3d3825
Remove order details from the session
sahandilshan Jan 16, 2021
2eff931
Allow users to rate multiple products from single order
sahandilshan Jan 16, 2021
6d2389b
search bar and location bar removed.
chaveene Jan 17, 2021
d6a9b38
Merge pull request #138 from Chaviya98/dev
chaveene Jan 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Modals/Product/Product.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ <h1>
<script>
$(document).ready(function () {
$('.ui-radio-btn').removeClass('ui-btn');
console.log("cc");

});
$('#plus').unbind('click').bind('click', function () {
Expand Down
Binary file added assets/icons/add_black.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 assets/icons/add_orange.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 assets/icons/stats_black.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 assets/icons/stats_orange.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 assets/otherImages/chaveen.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 45 additions & 4 deletions common/Cart_N_Delivery_Modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -464,11 +464,10 @@
$( "#nav_bar_cart" ).addClass('ui-icon-cart');
$( "#nav_bar_cart" ).removeClass('ui-icon-cart-with-items');
cartItemsArr = cartItemsArr['items'];
console.log(cartItemsArr);
$.each(cartItemsArr, function (i, item) {
let totalPrice = (item['price'] * item['qty']).toFixed(2);
let itemHtml = `
<div class="row mb-3" style="margin-left: inherit;margin-right: inherit;">
<div class="row mb-3" id="${item['product_id']}"style="margin-left: inherit;margin-right: inherit;">
<div class="col-lg-12 col-md-12 col-sm-12 col-12">
<div class="row" style="box-shadow: 1px 7px 19px -9px #ec7a23;border-bottom-right-radius: 18px;">
<div class="col-lg-8 col-md-8 col-sm-8 col-8">
Expand All @@ -480,7 +479,7 @@
<div class="col-lg-2 col-md-2 col-sm-2 col-2 btn-edit ui-btn">
</div>

<div class="col-lg-2 col-md-2 col-sm-2 col-2 ui-btn btn-delete">
<div class="col-lg-2 col-md-2 col-sm-2 col-2 ui-btn btn-delete" onclick="cart_item_remove('${item['product_id']}')">
</div>
</div>
</div>
Expand All @@ -492,6 +491,16 @@
cartItems = '<p class="text-center">No items available </p>';
}
$('#cartItems').html(cartItems);
let cartButton = $('#toCheckout');
let itemsArr = JSON.parse(sessionStorage.getItem('cartItems'));
cartButton.prop('disabled', false);
if (itemsArr) {
if (itemsArr['items'] === 0) {
cartButton.prop('disabled', true);
}
} else {
cartButton.prop('disabled', true);
}
$("#cart_popup").popup('open');
} else {
$('#signin-required-modal').popup('open');
Expand All @@ -502,7 +511,7 @@
sessionStorage.setItem('isBuyNow', '0');
openDelivery = true;
popupDeliveryModal();
})
});

function popupDeliveryModal() {
let cartModal = $("#cart_popup");
Expand All @@ -518,4 +527,36 @@
});
}

function cart_item_remove(id){
let cartItemsArrMain = JSON.parse(sessionStorage.getItem('cartItems'));
let cartItemsArr = cartItemsArrMain['items'];
$.each(cartItemsArr, function (i, item) {
if(item['product_id']===id){
cartItemsArr = $.grep(cartItemsArr, function(found) {
return found != item;
});
}
});
cartItemsArrMain['items']=cartItemsArr;
if(cartItemsArr.length===0){
sessionStorage.removeItem('cartItems');
$('#'+id).addClass('d-none');
$('#cartItems').html('<p class="text-center">No items available </p>');
}
else{
sessionStorage.setItem('cartItems', JSON.stringify(cartItemsArrMain));
$('#'+id).addClass('d-none');
}
let cartButton = $('#toCheckout');
let itemsArr = JSON.parse(sessionStorage.getItem('cartItems'));
cartButton.prop('disabled', false);
if (itemsArr) {
if (itemsArr['items'] === 0) {
cartButton.prop('disabled', true);
}
} else {
cartButton.prop('disabled', true);
}
}

</script>
4 changes: 4 additions & 0 deletions data/merchants.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"merchant_name": "Pizza Zone",
"filter_text": "Pizza Zone",
"merchantLocation": "Colombo 10",
"ratingCount": 9,
"sellerDetails": {
"seller_id": "S8574",
"seller_name": "Kasun Lakmal"
Expand All @@ -30,6 +31,7 @@
"merchant_name": "Bakery House",
"filter_text": "Bakery House",
"merchantLocation": "Colombo 11",
"ratingCount": 2,
"sellerDetails": {
"seller_id": "S6585",
"seller_name": "Nimal Siri"
Expand All @@ -56,6 +58,7 @@
"merchant_name": "Burger Hut",
"filter_text": "Burger Hut",
"merchantLocation": "Colombo 10",
"ratingCount": 11,
"sellerDetails": {
"seller_id": "S8877",
"seller_name": "Pasindu Jaye"
Expand All @@ -82,6 +85,7 @@
"merchant_name": "Salads Corner",
"filter_text": "Salads Corner",
"merchantLocation": "Colombo 11",
"ratingCount": 4,
"sellerDetails": {
"seller_id": "S8877",
"seller_name": "Pasindu Jaye"
Expand Down
42 changes: 23 additions & 19 deletions data/products.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"product_id": "P001",
"product_name": "Roast Beef Pizza",
"filter_text": " RoastBeef Pizza",
"product_description": "Roast Beef pizza is good",
"product_description": "Roast Beef pizza is has a great blend of cheese with pieces of beef along with a spicy taste.",
"product_img_path": "../assets/products/pizza-814044.jpg",
"discount": 10,
"variant_title": "Size",
Expand All @@ -33,7 +33,7 @@
"product_id": "P002",
"filter_text": "Vegetable Pizza",
"product_name": "Vegetable Pizza",
"product_description": "Vegetable Pizza is good",
"product_description": "Vegetable Pizza is mostly prepared for the vegetarian users with a blend of fresh vegetables.",
"product_img_path": "../assets/products/pizza-2000600.jpg",
"discount": "None",
"variant_title": "Size",
Expand All @@ -60,7 +60,7 @@
"product_id": "P003",
"product_name": "Seafood Pizza",
"filter_text": "Seafood Pizza",
"product_description": "Seafood pizza is good",
"product_description": "Seafood pizza is prepared for the seafood lovers with great taste with prawns, crab meet and cuttlefish rings.",
"product_img_path": "../assets/products/pizza-3000274.jpg",
"discount": "None",
"variant_title": "Size",
Expand All @@ -87,7 +87,7 @@
"product_id": "P004",
"product_name": "Margherita Pizza",
"filter_text": "Margherita Pizza",
"product_description": "Margherita pizza is good",
"product_description": "Margherita pizza has a good good combination of mozzarella cheese along with a topping of pepperoni",
"product_img_path": "../assets/products/margherita-pizza-993274.jpg",
"discount": "None",
"variant_title": "Size",
Expand Down Expand Up @@ -118,11 +118,12 @@
"products": [
{
"product_id": "P001",
"product_name": "Coffee Doughnut",
"filter_text": "Coffee Doughnut",
"product_description": "Coffee Doughnut is good",
"product_name": "Doughnut",
"filter_text": "Doughnut",
"product_description": "Doughnut has a great blend of dark coffee taste which is loved by most coffee lovers.",
"product_img_path": "../assets/products/bakeryHouse/donuts-5815746_640.jpg",
"variant_title": "Size",
"discount": 10,
"variants": [
{
"name": "Small",
Expand All @@ -146,7 +147,7 @@
"product_id": "P002",
"product_name": "Custard Caramel",
"filter_text": "Custard Caramel",
"product_description": "Custard Caramel is good",
"product_description": "Custard Caramel is a custard dessert with a layer of clear caramel sauce and a hard layer of caramel on top.",
"product_img_path": "../assets/products/bakeryHouse/cheesecake-1578694_640.jpg",
"variant_title": "Size",
"variants": [
Expand All @@ -172,7 +173,7 @@
"product_id": "P003",
"product_name": "Chocolate Cake",
"filter_text": "Chocolate Cake",
"product_description": "Chocolate Cake is good",
"product_description": "Chocolate Cake is is a cake flavored with mostly dark melted chocolate, cocoa powder, served either hot or at normal temperature.",
"product_img_path": "../assets/products/bakeryHouse/cake-4502270_640.jpg",
"variant_title": "Size",
"variants": [
Expand All @@ -198,7 +199,7 @@
"product_id": "P004",
"product_name": "Multigrain Bread",
"filter_text": "Multigrain Bread",
"product_description": "Multigrain Bread is good",
"product_description": "Multigrain Bread is good healthy bread with a whole grain of nutrients preferred by most diet planning customers.",
"product_img_path": "../assets/products/bakeryHouse/bread-399286_640.jpg",
"variant_title": "Size",
"variants": [
Expand Down Expand Up @@ -232,6 +233,7 @@
"product_description": "Chicken Pizza is good",
"product_img_path": "../assets/products/burgerHut/pizza-chikcen-1949183_640.jpg",
"variant_title": "Size",
"discount": 10,
"variants": [
{
"name": "Small",
Expand All @@ -255,7 +257,7 @@
"product_id": "P002",
"product_name": "Chicken Burger",
"filter_text": "Chicken Burger",
"product_description": "Chicken Burger is good",
"product_description": "Chicken Burger typically consists of boneless, spicy skinless chicken breast served between slices of bread, on a bun.",
"product_img_path": "../assets/products/burgerHut/chicken-burger-2953388_640.jpg",
"variant_title": "Size",
"variants": [
Expand All @@ -281,7 +283,7 @@
"product_id": "P003",
"product_name": "Beef Burger",
"filter_text": "Beef Burger",
"product_description": "Beef Burger is good",
"product_description": "Beef Burger typically consists of spicy roasted beef served between slices of bread, on a bun.",
"product_img_path": "../assets/products/burgerHut/burger-beef--3962997_640.jpg",
"variant_title": "Size",
"variants": [
Expand All @@ -307,7 +309,7 @@
"product_id": "P004",
"product_name": "Chicken Submarine",
"filter_text": "Chicken Submarine",
"product_description": "Chicken Submarine is good",
"product_description": "Chicken Submarine typically consists of boneless, spicy skinless chicken breast served between slices of bread along with cheese and mayonnaise, on a large bun.",
"product_img_path": "../assets/products/burgerHut/sandwich-451403_640.jpg",
"variant_title": "Size",
"variants": [
Expand Down Expand Up @@ -336,11 +338,12 @@
"products": [
{
"product_id": "P001",
"product_name": "Chicken Mix Salad",
"filter_text": "Chicken Mix Salad",
"product_description": "Chicken Salad is good",
"product_name": "Chicken Salad",
"filter_text": "Chicken Salad",
"product_description": "Chicken Salad consists of cucumber, salad leaves along with bell pepper served with a great mixture of sauce.",
"product_img_path": "../assets/products/saladsCorner/spinach-791629_1920.jpg",
"variant_title": "Size",
"discount": 10,
"variants": [
{
"name": "Small",
Expand All @@ -364,7 +367,8 @@
"product_id": "P002",
"product_name": "Egg Vegi Salad",
"filter_text": "Egg Vegi Salad",
"product_description": "Egg Salad is good",
"discount": 15,
"product_description": "Egg Salad consists of boiled eggs being cut into small pieces, cucumber, salad leaves along with bell pepper served with a great mixture of sauce.",
"product_img_path": "../assets/products/saladsCorner/flat-lay-2583212_1920.jpg",
"variant_title": "Size",
"variants": [
Expand All @@ -390,7 +394,7 @@
"product_id": "P003",
"product_name": "Pasta Vegi Salad",
"filter_text": "Egg Vegi Salad",
"product_description": "Pasta Salad is good",
"product_description": "Pasta Salad, a refrigerated served salad with pasta mixed with tuna salad along with cucumber, salad leaves along with bell pepper served with a great mixture of sauce",
"product_img_path": "../assets/products/saladsCorner/close-up-1854245_1920.jpg",
"variant_title": "Size",
"variants": [
Expand All @@ -416,7 +420,7 @@
"product_id": "P004",
"product_name": "Vegetable Salad",
"filter_text": "Vegetable Salad",
"product_description": "Vegetable Salad is good",
"product_description": "Vegetable Salad consists of boiled and some freshly cut vegitables along with cucumber, salad leaves along with bell pepper served with a great mixture of sauce",
"product_img_path": "../assets/products/saladsCorner/salad-498203_1280.jpg",
"variant_title": "Size",
"variants": [
Expand Down
27 changes: 19 additions & 8 deletions data/user.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"user_id" : "#1",
"user_id" : "001",
"user_name" : "Rahal",
"user_password" :"#1234",
"email" :"[email protected]",
Expand All @@ -11,25 +11,25 @@
"favorites_list":[]
},
{
"user_id" : "#2",
"user_id" : "002",
"user_name" : "Chaveen",
"user_password" :"#1234",
"email" :"Chaveen@gmail.com",
"image":"../assets/otherImages/user2.jpg",
"email" :"chaveen@gmail.com",
"image":"../assets/otherImages/chaveen.jpg",
"mobile_no" : "0777123456",
"user_type": "seller",
"user_type": "customer",
"location": "",
"favorites_list":[]
},
{
"user_id" : "#3",
"user_id" : "003",
"user_name" : "Sahan",
"user_password" :"#4321",
"email" :"[email protected]",
"image":"../assets/otherImages/user2.jpg",
"mobile_no" : "0777123456",
"user_type": "customer",
"location": "Colombo 10",
"location": "",
"favorites_list":[
{
"product_id": "P001",
Expand All @@ -43,7 +43,7 @@
]
},
{
"user_id" : "#3",
"user_id" : "004",
"user_name" : "Ahamed",
"user_password" :"#1234",
"email" :"[email protected]",
Expand All @@ -52,5 +52,16 @@
"user_type": "merchant",
"location": "Colombo 10",
"favorites_list":[]
},
{
"user_id" : "005",
"user_name" : "homeal",
"user_password" :"#1234",
"email" :"[email protected]",
"image":"../assets/otherImages/Men-Profile-Image.png",
"mobile_no" : "0777123456",
"user_type": "seller",
"location": "",
"favorites_list":[]
}
]
Loading