Sfoglia il codice sorgente

changes in orderdetails and warranty and order summary pages

ananthvijay 2 anni fa
parent
commit
810cfdb096

+ 3
- 28
dist/Js/myaccount/orderdetails.js Vedi File

@@ -1,6 +1,5 @@
1 1
 async function bindOrderDetails() {
2 2
   let user_number =$('.User_phoneum').text();
3
-  debugger
4 3
 // validatesession()
5 4
 let port = "https://anwi.bizgaze.app";
6 5
 // let port = "http://localhost:3088";
@@ -21,11 +20,6 @@ let port = "https://anwi.bizgaze.app";
21 20
   console.log(new_arrr);
22 21
   $(".user_order_details").html(``)
23 22
   console.log('hello')
24
-//   $.each(new_arrr, function (key, value) {
25
-//     console.log("a", value);
26
-   
27
-//     $(".user_order_details").append(user_order_details);
28
-//   });
29 23
   let user_order_details =``;
30 24
   let order_itemTotal = '';
31 25
   let order_netTotal = '' ;
@@ -38,33 +32,14 @@ let port = "https://anwi.bizgaze.app";
38 32
    order_netTotal = current.nettotal; 
39 33
    order_quantity =current.Quantity;
40 34
    order_taxAmount =current.taxamount;
41
-  user_order_details+= `<div class=" border-3 mb-3"> <a href="#" class="text-dark order_details_main_container"><div class="d-none hi"><span class="order_itemTotal">${order_itemTotal}</span><span class="order_netTotal">${order_netTotal}</span><span class="order_tax">${order_taxAmount}</span> <span class="order_qty">${order_quantity}</span></div> <div class="bg-gray-4 p-2 row g-0"> <div class="col-md-6 "> <div class="d-flex justify-content-between align-items-center"> <div> <p class="mb-1">ORDER PLACED</p><p class="mb-1 order_date">${current.OrderDate}</p></div><div> <p class="mb-1"> TOTAL</p><p class="mb-1 Current_netTotal"> ₹${updatedCurent_total}</p></div><div> <p class="mb-1">Delivered TO </p><p class="mb-1">${current.OrganizationName}</p></div></div></div><div class="col-md-4 ms-auto"> <div> <p class="mb-1 text-end">ORDER NO: <span class="text-secondary fs-9 serial_no">${current.OrderNo}</span> </p></div><div class="d-flex justify-content-between"> <p class="mb-1 text-info"> View order details </p><p class="mb-0 text-info">Invoice</p></div></div></div><div class="border-0 card rounded-0 order-cards py-2"> <div class="row align-items-center"> <div class="col-md-3"> <img src="https://appassets.bizgaze.app/${current.imageurl}" class="img-fluid w-75 order_item_name"/> </div><div class="col-md-9"> <div class="row align-items-center"> <div class="col-md-8"> <div class="order_item_name">${current.itemname}</div></div><div class="col-md-4"> <button type="button" class="btn btn-sm btn-warning rounded order_details_btn py-0 mb-3" onClick="event.preventDefault();">Track Package</button> <button type="button" class="btn btn-sm btn-light rounded order_details_btn py-0 mb-3 shadow-sm" onClick="event.preventDefault();">Cancel Item</button> </div></div></div></div></div></div>`;
35
+  user_order_details+= `<a href="" class="order_details_main_container"><div class="border-3 mb-3 card"> <div class="text-dark card-body px-0 pt-0"><div class="d-none"><span class="order_itemTotal">${order_itemTotal}</span><span class="order_netTotal">${order_netTotal}</span><span class="order_tax">${order_taxAmount}</span> <span class="order_qty">${order_quantity}</span></div> <div class="bg-gray-4 p-2 row g-0"> <div class="col-md-6 "> <div class="d-flex justify-content-between align-items-center"> <div> <p class="mb-1">ORDER PLACED</p><p class="mb-1 order_date">${current.OrderDate}</p></div><div> <p class="mb-1"> TOTAL</p><p class="mb-1 Current_netTotal"> ₹${updatedCurent_total}</p></div><div> <p class="mb-1">Delivered TO </p><p class="mb-1">${current.OrganizationName}</p></div></div></div><div class="col-md-4 ms-auto"> <div> <p class="mb-1 text-end">ORDER NO: <span class="text-secondary fs-9 serial_no">${current.OrderNo}</span> </p></div><div class="d-flex justify-content-between"> <p class="mb-1 text-info"> View order details </p><p class="mb-0 text-info">Invoice</p></div></div></div><div class="border-0 card rounded-0 order-cards py-3"> <div class="row align-items-center text-center"> <div class="col-md-3"> <img src="https://appassets.bizgaze.app/${current.imageurl}" class="img-fluid w-75 order_item_name"/> </div><div class="col-md-9"> <div class="row align-items-center"> <div class="col-md-8"> <div class="order_item_name">${current.itemname}</div></div><div class="col-md-4"> <button type="button" class="btn btn-sm rounded order_details_btn primary_btn py-0 mb-3" onClick="event.preventDefault();">Track Package</button> <button type="button" class="btn btn-sm btn-light rounded order_details_btn py-0 mb-3 shadow-sm" onClick="event.preventDefault();">Cancel Item</button> </div></div></div></div></div></div></div></a>`;
42 36
 }
43 37
   $(".user_order_details").append(user_order_details);
44
-  // $('.order_details_main_container').click(function(){
45
-  //   window.localStorage.setItem("orderNumber", current.OrderNo);
46
-  //   window.localStorage.setItem("orderDate", current.OrderNo);
47
-  // });
48 38
   $('.order_details_main_container').click(function(){
49
-    let current_order_date= $(this).find('.order_date').text();
50 39
     let current_serial_no= $(this).find('.serial_no').text();
51
-    let current_item_name= $(this).find('.order_item_name').text();
52
-    let current_order_itemTotal =$(this).find('.order_itemTotal').text();
53
-    let current_order_netTotal =$(this).find('.order_netTotal').text();
54
-    let current_order_tax =$(this).find('.order_tax').text();
55
-    let current_order_qty =$(this).find('.order_qty').text();
56
-    let order_item_img= $('.order_item_name').attr('src');
57
-
58
-     window.localStorage.setItem('orderDate',current_order_date);
40
+    //  window.localStorage.setItem('orderDate',current_order_date);
59 41
      window.localStorage.setItem('orderSerialno',current_serial_no);
60
-     window.localStorage.setItem('orderItemname',current_item_name);
61
-     window.localStorage.setItem('orderitemTotal',current_order_itemTotal);
62
-     window.localStorage.setItem('netTotal',current_order_netTotal)
63
-     window.localStorage.setItem('Qty',current_order_qty)
64
-     window.localStorage.setItem('tax',current_order_tax)
65
-     window.localStorage.setItem('imgsrc',order_item_img)
66
-     debugger;
67
-    //  console.log(get_local_orderDate,get_local_orderSerialno)
42
+     window.localStorage.setItem('Userphonenumber',user_number);
68 43
      $(this).attr('href','./orderdetails.html')
69 44
  })
70 45
 }

+ 45
- 54
dist/Js/orderDetails/order_summary.js Vedi File

@@ -1,62 +1,53 @@
1
-let current_orderDate =window.localStorage.getItem('orderDate')
2
-let current_orderSerialDate =window.localStorage.getItem('orderSerialno')
3
-let order_itemname =window.localStorage.getItem('orderItemname');
4
-let order_itemtotal =window.localStorage.getItem('orderitemTotal');
5
-let order_nettotal =window.localStorage.getItem('netTotal');
6
-let order_qty = window.localStorage.getItem('Qty')
7
-let order_tax = window.localStorage.getItem('tax')
8
-let order_img_src =window.localStorage.getItem('imgsrc')
9
-let Local_keys_update =['tax','Qty','netTotal','orderitemTotal']
10
-let summary =` <div class="card-body">
11
-<div>
12
-    <p class="mb-0 fs-6 fw-500">Order<span>${current_orderSerialDate}</span></span><span class="text-secondary fs-9"> (${order_qty} items)</p>
13
-    <p class="mb-0 fs-6">Order placed on ${current_orderDate}</p>
14
-    <p class="mb-0 fs-9">Paid by Credit Card</p>
15
-</div>`;
1
+async function order_summary(){
2
+let current_orderSerialDate =window.localStorage.getItem('orderSerialno');
3
+let user_number =window.localStorage.getItem('Userphonenumber');
4
+let port = "https://anwi.bizgaze.app";
5
+// let port = "http://localhost:3088";
6
+  let url = `${port}/apis/v4/bizgaze/integrations/products/salesorderdetailsbyphonenumber/phonenumber/${user_number}`;
7
+  const config = {
8
+    url,
9
+    method: "get",
10
+    headers: {
11
+      'Authorization': `stat 05b2f2ca510344968c65e1ebf49a5595 `,
12
+      'Content-Type': 'application/json'
13
+  }
14
+  };
15
+  let res = await axios(config);
16
+  const orderDetailsres = JSON.parse(res.data.result);
17
+  console.log(orderDetailsres);
18
+  let new_arrr = orderDetailsres;
19
+  console.log(new_arrr)
20
+  let orderNumber = localStorage.getItem("orderSerialno");
21
+let filteredOrders = new_arrr.filter(function(order) {
22
+  return order.OrderNo === orderNumber;
23
+});
16 24
 
17
-let deliverdCard=`<div class="card-body">
18
-<div class="row align-items-center mb-md-4">
19
-     <div class="col-md-6">
20
-         <div class="d-flex">
21
-             <img src="" class="img-fluid"/>
22
-             <div>
23
-                 <span class="fs-5">Delivered</span>
24
-                 <span class="text-secondary fs-9">Shipment 1 / 5-1 item (1 Delivered)</span>
25
-             </div>
26
-         </div>
27
-         <div> <span class="text-secondary fs-9">Delivered on Sunday, 9 March <span class="text-a-color">Invoice</span></span></div>
28
-     </div>
29
-     <div class="col-md-6 text-end">
30
-         <button class="btn btn-order-text bg-return">SUPPPORT</button>
31
-     </div>
32
-</div>
33
-<div>
34
-     <span class="text-secondary fs-9 d-none">Shipping to</span>
35
-     <p class="fs-5 fw-600 user_name">Ashok Kumar</p>
36
-</div>
37
-<div class="row pb-md-0 pb-4">
38
-     <div class="col-md-4 text-center">
39
-         <img src="${order_img_src}" class="img-fluid order_img"/>
40
-     </div>
41
-     <div class="col-md-8 position-relative">
42
-         <p class="mb-0 fs-6 order_itemname">${order_itemname}</p>
43
-         <p class="mb-3 fs-6 fw-600 d-flex align-items-center">
44
-             <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-currency-rupee" viewBox="0 0 16 16">
45
-                 <path d="M4 3.06h2.726c1.22 0 2.12.575 2.325 1.724H4v1.051h5.051C8.855 7.001 8 7.558 6.788 7.558H4v1.317L8.437 14h2.11L6.095 8.884h.855c2.316-.018 3.465-1.476 3.688-3.049H12V4.784h-1.345c-.08-.778-.357-1.335-.793-1.732H12V2H4v1.06Z"></path>
46
-             </svg><span class="order_price">${order_itemtotal}</span>
47
-         </p>
48
-         <p class="mb-0 fs-6 position-absolute close_exchange">Return/Exchange window closed on Friday,24 March <a href="#" class="text-primary">Why?</a></p>
49
-     </div>
50
-</div>
51
-</div>`
25
+$.each(filteredOrders, function(index, order) {
26
+    console.log(order.OrderNo)
27
+    let Delivery_status =order.stageshortcode
28
+let deliverdCard=`<div class="card rounded-0 border-0 bg-white mb-3 "><div class=card-body><div class="align-items-center row"><div class=col-md-6><div class=d-flex><img class=img-fluid src=""></div><div class="d-flex align-items-center"><div>Delivery Status :</div><div class="text-secondary delivery_status" data-status="${order.stageshortcode}"></div></div></div><div class="col-md-6 text-end"><button class="bg-return btn ">Claim warranty</button> <button class="bg-return btn ">Support</button></div></div><div><small class=" text-secondary me-2">Delivered To</small><small class="fw-600 user_name">${order.OrganizationName}</div><div class="row pb-4 pb-md-0 align-items-center"><div class="col-md-4 text-center"><img class="img-fluid order_img w-75"src=https://appassets.bizgaze.app/${order.imageurl}></div><div class="col-md-8 position-relative"><small class=" mb-0 order_itemname">${order.itemname}  (${order.Quantity} items)<small class=" align-items-center d-flex fw-600 mb-3"><svg class="bi bi-currency-rupee"fill=currentColor height=16 viewBox="0 0 16 16"width=16 xmlns=http://www.w3.org/2000/svg><path d="M4 3.06h2.726c1.22 0 2.12.575 2.325 1.724H4v1.051h5.051C8.855 7.001 8 7.558 6.788 7.558H4v1.317L8.437 14h2.11L6.095 8.884h.855c2.316-.018 3.465-1.476 3.688-3.049H12V4.784h-1.345c-.08-.778-.357-1.335-.793-1.732H12V2H4v1.06Z"></path></svg><small class="order_price fs-6">${order.itemtotal}</small><p class=" mb-0 close_exchange position-absolute d-none text-secondary">Return/Exchange window closed on Friday,24 March <a class=text-primary href=#>Why?</a></div></div></div></div>`;
52 29
 $('.deliverd-card').append(deliverdCard)
53
-$('.order_tax').html(order_tax)
54
-$('.Order_total').html(order_nettotal)
55
-$('.order-summary').html(summary);
30
+if(Delivery_status == 'CMD'){
31
+    $('.delivery_status').html('Deliverd')
32
+}
33
+if(Delivery_status == 'APL'){
34
+    $('.delivery_status').html('Approval')
35
+}
36
+});
37
+console.log(filteredOrders)
38
+let summary =`<div class=card-body><div><p class="mb-0 fw-500">Order<span>${orderNumber}</span><span class=" text-secondary"> (${filteredOrders.length} items)<p class="mb-0 ">Order placed on ${filteredOrders[0].OrderDate}</p></div>`;
39
+
40
+ $('.order_tax').html(filteredOrders[0].taxamount)
41
+ $('.Order_total').html(filteredOrders[0].nettotal)
42
+ $('.order_price').html(filteredOrders[0].itemtotal)
43
+ $('.order-summary').html(summary);
56 44
 $('.back_to_orders').click(function(){
45
+    let Local_keys_update =['Userphonenumber','orderSerialno']
57 46
     debugger
58 47
     for (key of Local_keys_update) {
59 48
     window.localStorage.removeItem(key);
60 49
     }
61 50
     $(this).attr('href','./myaccount.html')
62
-})
51
+})
52
+}
53
+order_summary()

+ 85
- 106
dist/Js/warranty.js Vedi File

@@ -1,13 +1,12 @@
1 1
 function wattantyFunction() {
2
-  debugger;
3 2
   let order_card = `<div class=warranty_product><div class="py-3 warranty_productform"><div class=mb-3><label class=form-label for=Add_serial_number_inp>Enter Your Serial Number</label><input class=form-control id=Add_serial_number_inp  required><label class="form-label text-danger d-none error_serial_num" for=Add_serial_number_inp >Serial Number should not be empty</label></div><div class=mb-3><label class="form-label d-none Add_phonenumber_inp_label" for=Add_phonenumber_inp>Enter Your Phone Number</label> <input class="form-control d-none "id=Add_phonenumber_inp required><label class="text-danger d-none form-label error_phonenumber" for=Add_phonenumber_inp>Enter Valid Phone Number</label></div><div class=mb-3><label class="form-label d-none Add_Contact_inp_label" for=Add_contactname_inp>Enter Your Contactname</label> <input class="form-control d-none" id=Add_contactname_inp required></div><div class="serial_submit text-end"><button class="btn btn-dark warranty_serialNumber_check" type="button">Submit</button><button class="btn btn-dark warranty_serialNumber_submit d-none" type="button">Submit</button></div></div></div>`;
4
-
5 3
   $(".user_orders").append(order_card);
6 4
   $(".add_serialNum").click(function () {
7 5
     $(".warranty_productform").removeClass("d-none");
8 6
     $(this).addClass("d-none");
9 7
   });
10 8
   $(".warranty_serialNumber_submit").click(async function () {
9
+    debugger 
11 10
     let serial_no_inp = $("#Add_serial_number_inp").val();
12 11
     let phonenumber_inp = $("#Add_phonenumber_inp").val();
13 12
     let contactname_inp = $("#Add_contactname_inp").val();
@@ -32,63 +31,37 @@ function wattantyFunction() {
32 31
       debugger;
33 32
       console.log(response);
34 33
       let product_res = response.data.result;
34
+      debugger;
35 35
       if (product_res != null) {
36 36
         let warrenty_res = JSON.parse(product_res);
37 37
         let new_arr = [warrenty_res];
38 38
         $.each(new_arr, function (key, value) {
39 39
           console.log(value);
40 40
           if (response.data.result == "[]") {
41
-            // Command: toastr["error"]("Serial number not found !")
42
-            // toasterOpts();
43
-            // $('#Add_serial_number_inp').addClass('border-danger');
44
-            // $('.error_serial_num').removeClass('d-none')
45 41
             $(".user_Warranty_details").html(
46 42
               `<div class="text-danger d-flex align-items-center bg-dangerLite text-dark p-2 rounded-4 mb-3" style="background-color: #ffe2e0!important;display:block"><div class="mr-1 d-flex justify-content-center align-items-center" style="width: 30px; height: 10px;"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.2646 3.41366C11.7212 3.15681 12.2788 3.15681 12.7354 3.41366L19.2354 7.06991C19.7077 7.33558 20 7.83536 20 8.37727V15.6227C20 16.1646 19.7077 16.6644 19.2354 16.9301L12.7354 20.5863C12.2788 20.8432 11.7212 20.8432 11.2646 20.5863L4.76461 16.9301C4.29229 16.6644 4 16.1646 4 15.6227V8.37727C4 7.83536 4.29229 7.33559 4.76461 7.06991L11.2646 3.41366Z" fill="#FF3A2E"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 7.4C11 7.17909 11.1791 7 11.4 7H12.6C12.8209 7 13 7.17909 13 7.4V12.6C13 12.8209 12.8209 13 12.6 13H11.4C11.1791 13 11 12.8209 11 12.6V7.4Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 16C11 15.4477 11.4477 15 12 15C12.5523 15 13 15.4477 13 16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16Z" fill="white"></path></svg></div><div class="d-flex justify-content-center align-items-center  font-12">Serial Number Not Found</div></div>`
47 43
             );
48
-            setTimeout(function(){
49
-              $('.bg-dangerLite').hide()
50
-            }, 1000)
51
-            // $('.warranty_productform').addClass('d-none');
52
-            // $('.add_serialNum').removeClass('d-none');
44
+            setTimeout(function () {
45
+              $(".bg-dangerLite").hide();
46
+            }, 1000);
53 47
             return;
54 48
           } else {
55
-           const warrantyEnabled = value[0].warrantyenabled;
56
-           $('.warranty_status_main_container').addClass('d-none')
57
-           if (warrantyEnabled == false) {
58
-             let phonenumber_updated = Number(phonenumber_inp);
59
-             $(".user_Warranty_details").removeClass("d-none");
60
-             //  let  strDate =  new Date(value[0].purchasedate).toISOString().slice(0, 10);
61
-             let Warrentypayload = {
62
-               sku: value[0].sku,
63
-               serialno: serial_no_inp,
64
-               phonenumber: phonenumber_updated,
65
-               contactname: contactname_inp,
66
-               warrantyfromdate: value[0].purchasedate,
67
-             };
68
-             warrentyService(Warrentypayload);
69
-           } else {
70
-            $('.backtoform').removeClass('d-none')
71
-             // let warrantySerialnumber =$('.serial_no_warrantynumber').text()
72
-             let warrenty_date = value[0].warrantytodate;
73
-             // let userwarrenty_product = `<div class="border-3 border-start my-3 order-cards ps-4 rounded-0" id='order-cards'> <div class="col-md-12 "><b>Warranty For :</b> ${value[0].itemname}</div><div class="row align-items-center"> <div class=col-md-12>  <div class="col-md-6 my-2"><span>Serail NO :</span> <span class="fs-9 text-secondary serial_no_warrantynumber">${value[0].serialno}</span> </div><div class="col-md-6 my-2"><span> Warrenty Expiry Date :</span> <span class=" fs-9 text-secondary rounded-2 warrenty_date">${value[0].warrantytodate}</span> </div><div class="my-2 col-md-6"><span> Warranty Start Date :</span> <span class="fs-9 text-secondary purchase_date">${value[0].warrantyfromdate}</span> </div><div class="col-md-6 my-2"> <span> Warranty Status : </span><span class="bg-success btn fs-9 is_warranty_enable py-0 text-white"> ${value[0].warrantyenabled}</span> </div></div></div></div>`;
74
-             let userwarrenty_product = `<div class="p-3 bg-white my-3 rounded warranty-card"id=warranty-card><div class="mb-3 card rounded-3 text-white"><div class="row align-items-center g-0 justify-content-between"><div class="col-md-3 text-center"><img alt=guarantee src=../dist/assets/imgs/guarantee.png class="h-50p img-fluid w-50p"></div><div class=col-md-9><div class=card-body><h5 class=card-title>Congratulations,</h5><p class=card-text><small>Thanks for registering with <span class=fw-bold>anwi systems </span>.You have successfully availed your warranty.</small></div></div></div></div><div class=col-md-12><h4>Here is your warranty Details</h4></div><div class="p-3 border rounded-3"><div class=row><div class=col-6><img alt=Warranty-product src="../dist/assets/imgs/anwi-logo-1.png" class="w-50"></div><div class=col-6><p class="mb-0 text-secondary"><small>Serail No</small><p class="mb-0 fs-9 serial_no_warrantynumber"><p class="fw-500">${value[0].serialno}</p><p class="mb-0 text-secondary"><small>Warranty will be applicable till</small><p class="mb-0 fs-9 rounded-2 warrenty_date"><small class="fw-500">${value[0].warrantytodate}</small></div></div><h6>Order details</h6><div class="row mb-3"><div class=col-6><p class="mb-0 text-secondary"><small>Sku</small><p class="mb-0 fs-9 rounded-2 warranty_sku"><small class="fw-500">${value[0].sku}</small></div><div class=col-6><p class="mb-0 text-secondary"><small>Itemname</small><p class="mb-0 fs-9 rounded-2 warranty_item_name"><small class="fw-500">${value[0].itemname}</small></div></div><h6>Warranty details</h6><div class=row><div class=col-6><p class="mb-0 text-secondary"><small>Warranty Start</small><p class="mb-0 fs-9  rounded-2"><small class="purchase_date fw-500" >${value[0].warrantyfromdate}</small></div><div class=col-6><p class="mb-0 text-secondary"><small>Warranty status</small><p class="mb-0 fs-9 text-secondary rounded-2"><small class="text-white bg-success is_warranty_enable p-1 rounded-pill">{value[0].warrantyenabled}</small></div></div></div><div class=guide-lines><p class=mb-0><small>Follow Below steps to request your warranty claim.</small><ol><small class=text-secondary><li class=text-secondary>Go to My account</small><small class=text-secondary><li class=text-secondary>Tap on request claim</small><small class=text-secondary><li class=text-secondary>Enter information and send claim request</small></ol></div></div>`;
75
-             let is_warranty_enable = value[0].warrantyenabled;
76
-             debugger;
77
-             $(".user_Warranty_details").html(userwarrenty_product);
78
-             if (is_warranty_enable == true) {
79
-               $(".is_warranty_enable").text("Activated");
80
-             } else {
81
-               $(".is_warranty_enable").text("Not Activated");
82
-             }
83
-             if (warrenty_date == "") {
84
-               $(".warrenty_date").addClass("d-none");
85
-             } else {
86
-               $(".warrenty_date").removeClass("d-none");
87
-             }
88
-             $("#Add_serial_number_inp").addClass("border-success");
89
-             $(".error_serial_num").addClass("d-none");
90
-             $(".add_serialNum").removeClass("d-none");
91
-           }
49
+            const warrantyEnabled = value[0].warrantyenabled;
50
+            $(".warranty_status_main_container").addClass("d-none");
51
+            if (warrantyEnabled == false) {
52
+              let phonenumber_updated = Number(phonenumber_inp);
53
+              $(".user_Warranty_details").removeClass("d-none");
54
+              let Warrentypayload = {
55
+                sku: value[0].sku,
56
+                serialno: serial_no_inp,
57
+                phonenumber: phonenumber_updated,
58
+                contactname: contactname_inp,
59
+                warrantyfromdate: value[0].purchasedate,
60
+              };
61
+              warrentyService(Warrentypayload);
62
+            } else {
63
+             alert('warranty enabled')
64
+            }
92 65
           }
93 66
         });
94 67
       }
@@ -102,7 +75,7 @@ function wattantyFunction() {
102 75
       }
103 76
     }
104 77
   });
105
-  $('.warranty_serialNumber_check').click(async function(){
78
+  $(".warranty_serialNumber_check").click(async function () {
106 79
     let serial_no_inp = $("#Add_serial_number_inp").val();
107 80
     if (serial_no_inp != "") {
108 81
       $(".error_serial_num").addClass("d-none");
@@ -124,29 +97,61 @@ function wattantyFunction() {
124 97
       debugger;
125 98
       console.log(response);
126 99
       let product_res = response.data.result;
100
+      debugger;
101
+      let warrenty_res = JSON.parse(product_res);
127 102
       if (product_res != null) {
128
-          if (response.data.result == "[]") {
129
-            $('.bg-dangerLite').removeClass('d-none')
130
-            $(".user_Warranty_details").html(
131
-              `<div class="text-danger d-flex align-items-center bg-dangerLite text-dark p-2 rounded-4 mb-3" style="background-color: #ffe2e0!important;display:block"><div class="mr-1 d-flex justify-content-center align-items-center" style="width: 30px; height: 10px;"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.2646 3.41366C11.7212 3.15681 12.2788 3.15681 12.7354 3.41366L19.2354 7.06991C19.7077 7.33558 20 7.83536 20 8.37727V15.6227C20 16.1646 19.7077 16.6644 19.2354 16.9301L12.7354 20.5863C12.2788 20.8432 11.7212 20.8432 11.2646 20.5863L4.76461 16.9301C4.29229 16.6644 4 16.1646 4 15.6227V8.37727C4 7.83536 4.29229 7.33559 4.76461 7.06991L11.2646 3.41366Z" fill="#FF3A2E"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 7.4C11 7.17909 11.1791 7 11.4 7H12.6C12.8209 7 13 7.17909 13 7.4V12.6C13 12.8209 12.8209 13 12.6 13H11.4C11.1791 13 11 12.8209 11 12.6V7.4Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 16C11 15.4477 11.4477 15 12 15C12.5523 15 13 15.4477 13 16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16Z" fill="white"></path></svg></div><div class="d-flex justify-content-center align-items-center  font-12">Serial Number Not Found</div></div>`
132
-              );
133
-              
134
-            // );
135
-            setTimeout(function(){
136
-              $('.bg-dangerLite').hide()
137
-            }, 1000)
138
-            return;
103
+        if (response.data.result == "[]") {
104
+          $(".bg-dangerLite").removeClass("d-none");
105
+          $(".user_Warranty_details").html(
106
+            `<div class="text-danger d-flex align-items-center bg-dangerLite text-dark p-2 rounded-4 mb-3" style="background-color: #ffe2e0!important;display:block"><div class="mr-1 d-flex justify-content-center align-items-center" style="width: 30px; height: 10px;"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.2646 3.41366C11.7212 3.15681 12.2788 3.15681 12.7354 3.41366L19.2354 7.06991C19.7077 7.33558 20 7.83536 20 8.37727V15.6227C20 16.1646 19.7077 16.6644 19.2354 16.9301L12.7354 20.5863C12.2788 20.8432 11.7212 20.8432 11.2646 20.5863L4.76461 16.9301C4.29229 16.6644 4 16.1646 4 15.6227V8.37727C4 7.83536 4.29229 7.33559 4.76461 7.06991L11.2646 3.41366Z" fill="#FF3A2E"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 7.4C11 7.17909 11.1791 7 11.4 7H12.6C12.8209 7 13 7.17909 13 7.4V12.6C13 12.8209 12.8209 13 12.6 13H11.4C11.1791 13 11 12.8209 11 12.6V7.4Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 16C11 15.4477 11.4477 15 12 15C12.5523 15 13 15.4477 13 16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16Z" fill="white"></path></svg></div><div class="d-flex justify-content-center align-items-center  font-12">Serial Number Not Found</div></div>`
107
+          );
108
+          // );
109
+          setTimeout(function () {
110
+            $(".bg-dangerLite").hide();
111
+          }, 1000);
112
+          return;
113
+        }
114
+         else {
115
+          if (warrenty_res[0].warrantyenabled == true) {
116
+            
117
+            $(".backtoform").removeClass("d-none");
118
+            let new_arr = [warrenty_res];
119
+            $.each(new_arr, function (key, value) {
120
+              console.log(value);
121
+            let warrenty_date = value[0].warrantytodate;
122
+            let userwarrenty_product = `<div class="p-3 bg-white my-3 rounded warranty-card"id=warranty-card><div class="mb-3 card rounded-3 text-white"><div class="row align-items-center g-0 justify-content-between"><div class="col-md-3 text-center"><img alt=guarantee src=../dist/assets/imgs/guarantee.png class="h-50p img-fluid w-50p"></div><div class=col-md-9><div class=card-body><h5 class=card-title>Congratulations,</h5><p class=card-text><small>Thanks for registering with <span class=fw-bold>anwi systems </span>.You have successfully availed your warranty.</small></div></div></div></div><div class=col-md-12><h4>Here is your warranty Details</h4></div><div class="p-3 border rounded-3"><div class=row><div class=col-6><img alt=Warranty-product src="../dist/assets/imgs/anwi-logo-1.png" class="w-50"></div><div class=col-6><p class="mb-0 text-secondary"><small>Serail No</small><p class="mb-0 fs-9 serial_no_warrantynumber"><p class="fw-500">${value[0].serialno}</p><p class="mb-0 text-secondary"><small>Warranty will be applicable till</small><p class="mb-0 fs-9 rounded-2 warrenty_date"><small class="fw-500">${value[0].warrantytodate}</small></div></div><h6>Order details</h6><div class="row mb-3"><div class=col-6><p class="mb-0 text-secondary"><small>Sku</small><p class="mb-0 fs-9 rounded-2 warranty_sku"><small class="fw-500">${value[0].sku}</small></div><div class=col-6><p class="mb-0 text-secondary"><small>Itemname</small><p class="mb-0 fs-9 rounded-2 warranty_item_name"><small class="fw-500">${value[0].itemname}</small></div></div><h6>Warranty details</h6><div class=row><div class=col-6><p class="mb-0 text-secondary"><small>Warranty Start</small><p class="mb-0 fs-9  rounded-2"><small class="purchase_date fw-500" >${value[0].warrantyfromdate}</small></div><div class=col-6><p class="mb-0 text-secondary"><small>Warranty status</small><p class="mb-0 fs-9 text-secondary rounded-2"><small class="text-white bg-success is_warranty_enable p-1 rounded-pill">{value[0].warrantyenabled}</small></div></div></div><div class=guide-lines><p class=mb-0><small>Follow Below steps to request your warranty claim.</small><ol><small class=text-secondary><li class=text-secondary>Go to My account</small><small class=text-secondary><li class=text-secondary>Tap on request claim</small><small class=text-secondary><li class=text-secondary>Enter information and send claim request</small></ol></div></div>`;
123
+            let is_warranty_enable = value[0].warrantyenabled;
124
+            debugger;
125
+            $(".user_Warranty_details").html(userwarrenty_product);
126
+            $(".warranty_status_main_container").addClass("d-none");
127
+            if (is_warranty_enable == true) {
128
+              $(".is_warranty_enable").text("Activated");
129
+            } else {
130
+              $(".is_warranty_enable").text("Not Activated");
131
+            }
132
+            if (warrenty_date == "") {
133
+              $(".warrenty_date").addClass("d-none");
134
+            } else {
135
+              $(".warrenty_date").removeClass("d-none");
136
+            }
137
+            $("#Add_serial_number_inp").addClass("border-success");
138
+            $(".error_serial_num").addClass("d-none");
139
+            $(".add_serialNum").removeClass("d-none");
140
+            return
141
+          });
139 142
           }
140
-    else{
141
-      $('.bg-dangerLite').addClass('d-none')
142
-        $(".Add_phonenumber_inp_label").removeClass('d-none')
143
-        $("#Add_phonenumber_inp").removeClass('d-none')
144
-        $(".Add_Contact_inp_label").removeClass('d-none')
145
-        $("#Add_contactname_inp").removeClass('d-none')
146
-        $(".warranty_serialNumber_submit").removeClass('d-none')
147
-        $(this).addClass('d-none')
148
-        $(".Serial_numb_notfound").addClass('d-none')
149
-    }
143
+           else {
144
+            $(".bg-dangerLite").addClass("d-none");
145
+            $(".Add_phonenumber_inp_label").removeClass("d-none");
146
+            $("#Add_phonenumber_inp").removeClass("d-none");
147
+            $(".Add_Contact_inp_label").removeClass("d-none");
148
+            $("#Add_contactname_inp").removeClass("d-none");
149
+            $(".warranty_serialNumber_submit").removeClass("d-none");
150
+            $(this).addClass("d-none");
151
+            $(".Serial_numb_notfound").addClass("d-none");
152
+          }
153
+         
154
+        }
150 155
       }
151 156
     } else {
152 157
       if (serial_no_inp == "") {
@@ -154,54 +159,28 @@ function wattantyFunction() {
154 159
         $(".error_serial_num").removeClass("d-none");
155 160
       }
156 161
     }
157
-  })
162
+  });
158 163
 
159 164
   async function warrentyService(Warrentypayload) {
160
-    //       let d = new Date();
161
-    //     // let  strDate = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate();
162
-    //     let  strDate =  new Date().toISOString().slice(0, 10)
163
-    // console.log(strDate)
164
-    debugger;
165 165
     const res = await postAPIServiceWarranty(
166 166
       `apis/v4/bizgaze/transact/items/savewarrantyasync`,
167 167
       Warrentypayload
168 168
     );
169
-    debugger;
170 169
     console.log(res);
171 170
     if (res.data.status == 2) {
172
-      //   $('.warranty_productform').addClass('d-none');
173
-      //   $('.add_serialNum').removeClass('d-none');
174
-      // Command: toastr["warning"](res.data.message)
175
-      // toasterOpts();
176
-      $('.warranty_status_main_container').removeClass('d-none')
177
-      $('.bg-dangerLite').removeClass('d-none');
171
+      $(".warranty_status_main_container").removeClass("d-none");
172
+      $(".bg-dangerLite").removeClass("d-none");
178 173
       $(".user_Warranty_details").html(
179
-       `<div class="text-danger d-flex align-items-center bg-dangerLite text-dark p-2 rounded-4 mb-3" style="background-color: #ffe2e0!important;display:block"><div class="mr-1 d-flex justify-content-center align-items-center" style="width: 30px; height: 10px;"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.2646 3.41366C11.7212 3.15681 12.2788 3.15681 12.7354 3.41366L19.2354 7.06991C19.7077 7.33558 20 7.83536 20 8.37727V15.6227C20 16.1646 19.7077 16.6644 19.2354 16.9301L12.7354 20.5863C12.2788 20.8432 11.7212 20.8432 11.2646 20.5863L4.76461 16.9301C4.29229 16.6644 4 16.1646 4 15.6227V8.37727C4 7.83536 4.29229 7.33559 4.76461 7.06991L11.2646 3.41366Z" fill="#FF3A2E"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 7.4C11 7.17909 11.1791 7 11.4 7H12.6C12.8209 7 13 7.17909 13 7.4V12.6C13 12.8209 12.8209 13 12.6 13H11.4C11.1791 13 11 12.8209 11 12.6V7.4Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 16C11 15.4477 11.4477 15 12 15C12.5523 15 13 15.4477 13 16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16Z" fill="white"></path></svg></div><div class="d-flex justify-content-center align-items-center  font-12">No Serial number found / Product not Delivered</div></div>`
174
+        `<div class="text-danger d-flex align-items-center bg-dangerLite text-dark p-2 rounded-4 mb-3" style="background-color: #ffe2e0!important;display:block"><div class="mr-1 d-flex justify-content-center align-items-center" style="width: 30px; height: 10px;"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.2646 3.41366C11.7212 3.15681 12.2788 3.15681 12.7354 3.41366L19.2354 7.06991C19.7077 7.33558 20 7.83536 20 8.37727V15.6227C20 16.1646 19.7077 16.6644 19.2354 16.9301L12.7354 20.5863C12.2788 20.8432 11.7212 20.8432 11.2646 20.5863L4.76461 16.9301C4.29229 16.6644 4 16.1646 4 15.6227V8.37727C4 7.83536 4.29229 7.33559 4.76461 7.06991L11.2646 3.41366Z" fill="#FF3A2E"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 7.4C11 7.17909 11.1791 7 11.4 7H12.6C12.8209 7 13 7.17909 13 7.4V12.6C13 12.8209 12.8209 13 12.6 13H11.4C11.1791 13 11 12.8209 11 12.6V7.4Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 16C11 15.4477 11.4477 15 12 15C12.5523 15 13 15.4477 13 16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16Z" fill="white"></path></svg></div><div class="d-flex justify-content-center align-items-center  font-12">No Serial number found / Product not Delivered</div></div>`
180 175
       );
181
-      setTimeout(function(){
182
-        $('.bg-dangerLite').hide()
183
-      }, 1000)
176
+      setTimeout(function () {
177
+        $(".bg-dangerLite").hide();
178
+      }, 1000);
184 179
     } else if (res.data.status == "0") {
185
-      $(".user_Warranty_details").html(`<div class="text-danger d-flex align-items-center bg-dangerLite text-dark p-2 rounded-4 mb-3" style="background-color:#fff!important;display:block"><div class="mr-1 d-flex justify-content-center align-items-center" style="width: 30px; height: 10px;"><svg xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 48 48" width="48px" height="48px" baseProfile="basic"><circle cx="24" cy="24" r="20" fill="#6be3a2"/><path fill="#324561" d="M22.5,33c-0.226,0-0.446-0.076-0.625-0.219l-7.5-6c-0.431-0.345-0.501-0.974-0.156-1.405	c0.347-0.431,0.975-0.501,1.406-0.156l6.667,5.334l9.889-14.126c0.316-0.454,0.94-0.562,1.393-0.246	c0.453,0.317,0.562,0.94,0.246,1.393l-10.5,15c-0.158,0.227-0.403,0.377-0.677,0.417C22.595,32.997,22.547,33,22.5,33z"/></svg></div><div class="d-flex justify-content-center align-items-center font-12">${res.data.message}</div></div>`);
180
+      $(".user_Warranty_details").html(
181
+        `<div class="text-danger d-flex align-items-center bg-dangerLite text-dark p-2 rounded-4 mb-3" style="background-color:#fff!important;display:block"><div class="mr-1 d-flex justify-content-center align-items-center" style="width: 30px; height: 10px;"><svg xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 48 48" width="48px" height="48px" baseProfile="basic"><circle cx="24" cy="24" r="20" fill="#6be3a2"/><path fill="#324561" d="M22.5,33c-0.226,0-0.446-0.076-0.625-0.219l-7.5-6c-0.431-0.345-0.501-0.974-0.156-1.405	c0.347-0.431,0.975-0.501,1.406-0.156l6.667,5.334l9.889-14.126c0.316-0.454,0.94-0.562,1.393-0.246	c0.453,0.317,0.562,0.94,0.246,1.393l-10.5,15c-0.158,0.227-0.403,0.377-0.677,0.417C22.595,32.997,22.547,33,22.5,33z"/></svg></div><div class="d-flex justify-content-center align-items-center font-12">${res.data.message}</div></div>`
182
+      );
186 183
     }
187 184
   }
188
-  // function toasterOpts() {
189
-  //     toastr.options = {
190
-  //         "closeButton": true,
191
-  //         "debug": false,
192
-  //         "newestOnTop": true,
193
-  //         "progressBar": true,
194
-  //         "positionClass": "toast-top-center",
195
-  //         "preventDuplicates": true,
196
-  //         "showDuration": "300",
197
-  //         "hideDuration": "1000",
198
-  //         "timeOut": "3000",
199
-  //         "extendedTimeOut": "1000",
200
-  //         "showEasing": "swing",
201
-  //         "hideEasing": "linear",
202
-  //         "showMethod": "fadeIn",
203
-  //         "hideMethod": "fadeOut"
204
-  //     }
205
-  // }
206 185
 }
207 186
 wattantyFunction();

+ 10
- 2
dist/css/main.css Vedi File

@@ -1091,7 +1091,7 @@ html,body{
1091 1091
 
1092 1092
 /* ORDER DETAILS */
1093 1093
 .bg-return{
1094
-    background-color: #f7f0e1 !important;
1094
+    background-color: #d0f5ff  !important;
1095 1095
 }
1096 1096
 .close_exchange{
1097 1097
     bottom:10px;
@@ -1106,7 +1106,7 @@ html,body{
1106 1106
     font-size: 1rem !important;
1107 1107
 }
1108 1108
 .order-summary{
1109
-    background-color:#f3e2be !important;
1109
+    background-color:#c8ebff !important;
1110 1110
 }
1111 1111
 .fs-7{
1112 1112
     font-size: 0.7rem;
@@ -1603,4 +1603,12 @@ background: linear-gradient(75deg, rgb(56 89 118) 51%, rgb(107 18 111) 89%)
1603 1603
 .fs-60 {
1604 1604
     font-size: 60px !important;
1605 1605
     padding: 40px 0px !important;
1606
+}
1607
+.Order_details_section{
1608
+    position: sticky;
1609
+    top: 120px;
1610
+}
1611
+.primary_btn{
1612
+    background: #0A1039 !important;
1613
+    color: #fff !important;
1606 1614
 }

+ 1
- 1
myaccount.html Vedi File

@@ -229,7 +229,7 @@
229 229
                                         <div class="tab-pane fade active show" id="orders" role="tabpanel">
230 230
                                             <div class="myaccount-content">
231 231
                                                 <h3>Order Details</h3>
232
-                                                <div class="user_order_details border rounded mb-3">
232
+                                                <div class="user_order_details rounded mb-3">
233 233
                                                 </div>
234 234
                                             </div>
235 235
                                          

+ 53
- 37
orderdetails.html Vedi File

@@ -35,41 +35,42 @@
35 35
     <!-- end-navbar -->
36 36
     <!-- main-body -->
37 37
     <main class="main-body home-main-container pt-5">
38
-       <section class="bg-gray-7 pt-md-5 pt-5">
39
-        <div class="container pb-5">
40
-            <div class="row pb-4">
41
-                <div class="col-6">
42
-                    <a href="#" class="fw-600 text-a-color back_to_orders"> Back to Orders</a>
43
-                </div>
44
-                <div class="col-6 text-end">
45
-                    <a href="#" class="fw-600 text-a-color">Need Help ?</a>
46
-                </div>
47
-            </div>
48
-            <div class="row">
49
-                <div class="col-md-8">
50
-                    <div class="card rounded-0 border-0 bg-white mb-3 deliverd-card">
51
-                    
38
+        <section class="bg-gray-7 pt-md-5 pt-5">
39
+            <div class="container pb-5">
40
+                <div class="row pb-4">
41
+                    <div class="col-6">
42
+                        <a href="#" class="fw-600 text-a-color back_to_orders"> Back to Orders</a>
43
+                    </div>
44
+                    <div class="col-6 text-end">
45
+                        <a href="#" class="fw-600 text-a-color">Need Help ?</a>
52 46
                     </div>
53 47
                 </div>
54
-                <div class="col-md-4">
55
-                    <div class="Order_details_section mb-2">
56
-                        <div class="card rounded-0 border-0 order-summary">
57
-                               
58
-                                </div>
59
-                        </div>
60
-                        <div class="card rounded-0 border-top-0">
48
+                <div class="row">
49
+                    <div class="col-md-8 deliverd-card">
50
+
51
+                    </div>
52
+                    <div class="col-md-4">
53
+                        <div class="Order_details_section mb-2">
54
+                            <div class="card rounded-0 border-0 order-summary">
55
+
56
+                            </div>
57
+                            <div class="card rounded-0 border-top-0">
61 58
                                 <div class="card-body">
62 59
                                     <div class="payement details">
63 60
                                         <p class="fs-6 fw-600 mb-0 pb-1 border-bottom">Order Payment Details</p>
64
-                                        <div class="border-bottom py-1">
61
+                                        <div class="py-1">
65 62
                                             <div class="row align-items-center">
66 63
                                                 <div class="col-6">
67
-                                                    <p class="fs-9 mb-0">Order Amount</p> 
64
+                                                    <p class="fs-9 mb-0">Order Amount</p>
68 65
                                                 </div>
69 66
                                                 <div class="col-6 text-end">
70
-                                               <svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" fill="currentColor" class="bi bi-currency-rupee" viewBox="0 0 16 16">
71
-                                            <path d="M4 3.06h2.726c1.22 0 2.12.575 2.325 1.724H4v1.051h5.051C8.855 7.001 8 7.558 6.788 7.558H4v1.317L8.437 14h2.11L6.095 8.884h.855c2.316-.018 3.465-1.476 3.688-3.049H12V4.784h-1.345c-.08-.778-.357-1.335-.793-1.732H12V2H4v1.06Z"></path>
72
-                                        </svg><span class="order_price fs-7">32,000</span>
67
+                                                    <svg xmlns="http://www.w3.org/2000/svg" width="8" height="8"
68
+                                                        fill="currentColor" class="bi bi-currency-rupee"
69
+                                                        viewBox="0 0 16 16">
70
+                                                        <path
71
+                                                            d="M4 3.06h2.726c1.22 0 2.12.575 2.325 1.724H4v1.051h5.051C8.855 7.001 8 7.558 6.788 7.558H4v1.317L8.437 14h2.11L6.095 8.884h.855c2.316-.018 3.465-1.476 3.688-3.049H12V4.784h-1.345c-.08-.778-.357-1.335-.793-1.732H12V2H4v1.06Z">
72
+                                                        </path>
73
+                                                    </svg><span class="order_price fs-7">32,000</span>
73 74
                                                 </div>
74 75
                                             </div>
75 76
                                             <div class="row align-items-center">
@@ -77,12 +78,20 @@
77 78
                                                     <p class="fs-9 mb-0">Tax</p>
78 79
                                                 </div>
79 80
                                                 <div class="col-6 text-end">
80
-                                                    <p class="fs-7 mb-0 text-order-brown order_tax">-₹1000.00</p>
81
+                                                    <!-- <p class="fs-7 mb-0 text-order-brown order_tax">-₹1000.00</p> -->
82
+                                                    <svg xmlns="http://www.w3.org/2000/svg" width="8" height="8"
83
+                                                        fill="currentColor" class="bi bi-currency-rupee text-order-brown"
84
+                                                        viewBox="0 0 16 16">
85
+                                                        <path
86
+                                                            d="M4 3.06h2.726c1.22 0 2.12.575 2.325 1.724H4v1.051h5.051C8.855 7.001 8 7.558 6.788 7.558H4v1.317L8.437 14h2.11L6.095 8.884h.855c2.316-.018 3.465-1.476 3.688-3.049H12V4.784h-1.345c-.08-.778-.357-1.335-.793-1.732H12V2H4v1.06Z">
87
+                                                        </path>
88
+                                                    </svg>
89
+                                                    <span class="fs-7 mb-0 text-order-brown order_tax"></span>
81 90
                                                 </div>
82 91
                                             </div>
83 92
                                             <div class="row align-items-center">
84 93
                                                 <div class="col-6">
85
-                                                    <p class="fs-9 mb-0">Convenience Fee</p>
94
+                                                    <p class="fs-9 mb-0">Shipping Fee</p>
86 95
                                                 </div>
87 96
                                                 <div class="col-6 text-end">
88 97
                                                     <p class="fs-7 mb-0 text-order-brown">Free</p>
@@ -93,19 +102,23 @@
93 102
                                                     <p class="fs-9 mb-1 fw-500">Order Total</p>
94 103
                                                 </div>
95 104
                                                 <div class="col-6 text-end">
96
-                                                    <svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" fill="currentColor" class="bi bi-currency-rupee" viewBox="0 0 16 16">
97
-                                                        <path d="M4 3.06h2.726c1.22 0 2.12.575 2.325 1.724H4v1.051h5.051C8.855 7.001 8 7.558 6.788 7.558H4v1.317L8.437 14h2.11L6.095 8.884h.855c2.316-.018 3.465-1.476 3.688-3.049H12V4.784h-1.345c-.08-.778-.357-1.335-.793-1.732H12V2H4v1.06Z"></path>
105
+                                                    <svg xmlns="http://www.w3.org/2000/svg" width="8" height="8"
106
+                                                        fill="currentColor" class="bi bi-currency-rupee"
107
+                                                        viewBox="0 0 16 16">
108
+                                                        <path
109
+                                                            d="M4 3.06h2.726c1.22 0 2.12.575 2.325 1.724H4v1.051h5.051C8.855 7.001 8 7.558 6.788 7.558H4v1.317L8.437 14h2.11L6.095 8.884h.855c2.316-.018 3.465-1.476 3.688-3.049H12V4.784h-1.345c-.08-.778-.357-1.335-.793-1.732H12V2H4v1.06Z">
110
+                                                        </path>
98 111
                                                     </svg>
99 112
                                                     <span class="fs-7 mb-1 fw-500 Order_total"></span>
100 113
                                                 </div>
101 114
                                             </div>
102 115
     
103 116
                                         </div>
104
-                                        <div class="py-1">
117
+                                        <div class="py-1 d-none">
105 118
                                             <p class="fs-9 mb-1 fw-600">Payment Method</p>
106 119
                                             <div class="row align-items-center">
107 120
                                                 <div class="col-6">
108
-                                                    <p class="fs-7 fw-500 mb-0">Coupons</p> 
121
+                                                    <p class="fs-7 fw-500 mb-0">Coupons</p>
109 122
                                                 </div>
110 123
                                                 <div class="col-6 text-end">
111 124
                                                     <p class="fs-7 mb-0">₹100</p>
@@ -129,7 +142,9 @@
129 142
                                         </div>
130 143
                                     </div>
131 144
                                 </div>
145
+                            </div>
132 146
                         </div>
147
+                       
133 148
                     </div>
134 149
                     <div class="Order_delivered_address">
135 150
                         <div class="card  rounded-0">
@@ -139,7 +154,8 @@
139 154
                                 </div>
140 155
                                 <div class="address_body">
141 156
                                     <p class="mb-0 fs-9 fw-500 user_name">Ashok Kumar</p>
142
-                                    <p class="mb-0 fs-7 fw-500 user_name">3-128,Srinivasa Nagar,Deepthi sri colony,Miyapur,</p>
157
+                                    <p class="mb-0 fs-7 fw-500 user_name">3-128,Srinivasa Nagar,Deepthi sri
158
+                                        colony,Miyapur,</p>
143 159
                                     <p class="mb-0 fs-7 fw-500 user_name">HYDERABAD - TELENGANA</p>
144 160
                                     <p class="mb-0 fs-7 fw-500 user_name">India - 500101</p>
145 161
                                     <p class="mb-0 fs-7">Phone : <span class="fw-600">9876543234</span></p>
@@ -149,8 +165,8 @@
149 165
                     </div>
150 166
                 </div>
151 167
             </div>
152
-        </div>
153
-       </section>
168
+            </div>
169
+        </section>
154 170
     </main>
155 171
     <!-- footer -->
156 172
     <div id="footer-head" class=""></div>
@@ -159,9 +175,9 @@
159 175
     <script src="./dist/js/jquery.min.js"></script>
160 176
     <script src="./libs/owlcarousel/js/owl.carousel.min.js"></script>
161 177
     <script src="./dist/js/navbar.js"></script>
162
-   <script src="./libs/axios.min.js"></script>
178
+    <script src="./libs/axios.min.js"></script>
163 179
     <script src="./dist/js/footer.js"></script>
164
-      <script src="./libs/cookies.min.js"></script>
180
+    <script src="./libs/cookies.min.js"></script>
165 181
     <script src="./dist/js/fontawesome.all.js"></script>
166 182
     <script src="./dist/js/fontawesome.min.js"></script>
167 183
     <script src="./dist/js/vendor/modernizr-3.11.7.min.js"></script>

Loading…
Annulla
Salva