code added
This commit is contained in:
Vendored
+8
@@ -138,6 +138,14 @@ function initLogin() {
|
||||
//window.localStorage.setItem("Userpassword", userPassword);
|
||||
window.localStorage.setItem("Isloggedintoaster", true);
|
||||
window.localStorage.setItem("Isloggedin", true);
|
||||
|
||||
const isCartAdded = localStorage.getItem(CART_ADD);
|
||||
if(isCartAdded){
|
||||
localStorage.removeItem(CART_ADD);
|
||||
window.location.href = `/selectdelivery.html`;
|
||||
return;
|
||||
}
|
||||
|
||||
window.location.href = `./index.html`;
|
||||
} else {
|
||||
toasterOpts();
|
||||
|
||||
Vendored
+1
-3
@@ -1,9 +1,7 @@
|
||||
let nav_html = `
|
||||
<header class="header-area section-padding-1 transparent-bar">
|
||||
<div class="header-large-device">
|
||||
<div class="header-bottom sticky-bar" style="
|
||||
background: #ed3838;
|
||||
">
|
||||
<div class="header-bottom sticky-bar" >
|
||||
<div class="container">
|
||||
<div class="header-bottom-flex">
|
||||
<div class="logo-menu-wrap d-flex">
|
||||
|
||||
+42
-17
@@ -110,6 +110,19 @@ function startDetails(){
|
||||
});
|
||||
}
|
||||
|
||||
function updateDetailsByObj(obj){
|
||||
$('.productname').html(obj.itemname)
|
||||
$('.price').html(obj.pricelist);
|
||||
appendSpecs(obj.itemid)
|
||||
$('#skudetailitem').val(obj.sku)
|
||||
$('.des_productdes').html(obj.itemdescription);
|
||||
|
||||
let defaultImg = obj.itemimageurl ? obj.itemimageurl: `./dist/assets/imgs/nophoto.png`;
|
||||
console.log(obj.itemimageurl,'obj.itemimageurlobj.itemimageurlobj.itemimageurl');
|
||||
$('.productDetailsMain > img').attr('src',defaultImg);
|
||||
|
||||
}
|
||||
|
||||
function searchComb(){
|
||||
let valuesSelected = [];
|
||||
|
||||
@@ -155,20 +168,15 @@ function startDetails(){
|
||||
const {quantity} = itemtagscombinationRes[i];
|
||||
if(quantity>=$('#quantity').val() && quantity>=1){
|
||||
currentComb = itemtagscombinationRes[i];
|
||||
$('.productname').html(itemtagscombinationRes[i].itemname)
|
||||
$('.price').html(itemtagscombinationRes[i].pricelist);
|
||||
// $('.productname').html(itemtagscombinationRes[i].itemname)
|
||||
// $('.price').html(itemtagscombinationRes[i].pricelist);
|
||||
// location.hash = itemtagscombinationRes[i].itemname.trim();
|
||||
appendSpecs(itemtagscombinationRes[i].itemid)
|
||||
// appendSpecs(itemtagscombinationRes[i].itemid)
|
||||
history.replaceState(null, null, `#itemid=${itemtagscombinationRes[i].itemid}#${itemtagscombinationRes[i].itemname.trim()}`);
|
||||
let searchparms = location.search;
|
||||
debugger;
|
||||
|
||||
|
||||
|
||||
// const regex = /sku="(\w+)"/g;
|
||||
// const newParams = searchparms.replace("sku", `$1${itemtagscombinationRes[i].sku}$2`);
|
||||
// location.search = newParams;
|
||||
$('#skudetailitem').val(itemtagscombinationRes[i].sku)
|
||||
// $('#skudetailitem').val(itemtagscombinationRes[i].sku)
|
||||
// $('.des_productdes').html(itemtagscombinationRes[i].itemdescription);
|
||||
updateDetailsByObj(itemtagscombinationRes[i]);
|
||||
}else{
|
||||
debugger;
|
||||
let name = itemtagscombinationRes[i].itemname.split('-')[0];
|
||||
@@ -184,6 +192,7 @@ function startDetails(){
|
||||
history.replaceState(null, null, `#`);
|
||||
|
||||
$('.msgErrorDetailsItem').removeClass('d-none');
|
||||
$('.des_productdes').html('');
|
||||
$('.price').html('');
|
||||
}
|
||||
|
||||
@@ -252,7 +261,7 @@ function startDetails(){
|
||||
|
||||
async function getProductDetails(id){
|
||||
|
||||
|
||||
debugger
|
||||
|
||||
// let res = await getStatAPIService(`${SERVERNAME}/apis/v4/bizgaze/integrations/products/productattributelist/productid/${id}`);
|
||||
|
||||
@@ -358,12 +367,22 @@ function startDetails(){
|
||||
if(isTrue){
|
||||
debugger;
|
||||
console.log(itemtagscombinationRes[i],'itemtagscombinationRes[i]');
|
||||
|
||||
|
||||
currentComb = itemtagscombinationRes[i];
|
||||
$('.productname').html(itemtagscombinationRes[i].itemname);
|
||||
location.hash = itemtagscombinationRes[i].itemname.trim();
|
||||
$('#skudetailitem').val(itemtagscombinationRes[i].sku)
|
||||
$('.price').html(itemtagscombinationRes[i].pricelist)
|
||||
appendSpecs(itemtagscombinationRes[i].itemid)
|
||||
|
||||
// $('.productname').html(itemtagscombinationRes[i].itemname);
|
||||
// $('#skudetailitem').val(itemtagscombinationRes[i].sku)
|
||||
// $('.price').html(itemtagscombinationRes[i].pricelist)
|
||||
// debugger;
|
||||
// appendSpecs(itemtagscombinationRes[i].itemid);
|
||||
// $('.des_productdes').html(itemtagscombinationRes[i].itemdescription);
|
||||
|
||||
updateDetailsByObj(itemtagscombinationRes[i]);
|
||||
|
||||
|
||||
|
||||
isGo = false;
|
||||
let {tagnames,tagids,pricelist} = itemtagscombinationRes[i];
|
||||
tagids = tagids.split('|');
|
||||
@@ -387,12 +406,18 @@ function startDetails(){
|
||||
tagnames = tagnames.split('|');
|
||||
$('.optiontaganwi').removeClass('borderselector');
|
||||
currentComb = itemtagscombinationRes[0];
|
||||
|
||||
|
||||
for(let i=0;i<tagids.length;i++){
|
||||
|
||||
$(`[data-type="${tagids[i]}-${tagnames[i]}"]`).addClass('borderselector');
|
||||
}
|
||||
|
||||
$('.price').html(pricelist);
|
||||
// $('.price').html(pricelist);
|
||||
// $('.des_productdes').html(itemtagscombinationRes[0].itemdescription);
|
||||
// appendSpecs(itemtagscombinationRes[0].itemid);
|
||||
|
||||
updateDetailsByObj(itemtagscombinationRes[0]);
|
||||
//console.log(childIds);
|
||||
//
|
||||
|
||||
|
||||
+2
@@ -4,6 +4,8 @@ function initSelectDevlivery() {
|
||||
let currencyId = null;
|
||||
let billingInfo = null;
|
||||
let userName = null;
|
||||
|
||||
$('.mianselectdelivery').removeClass('d-none');
|
||||
|
||||
let orderBtnAction = {
|
||||
removeOrdernowBtn() {
|
||||
|
||||
@@ -563,6 +563,7 @@
|
||||
<script src="./libs/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="./dist/js/jquery.min.js"></script>
|
||||
<script src="./libs/owlcarousel/js/owl.carousel.min.js"></script>
|
||||
<script src="./dist/js/shoppingcart/addtocart.js"></script>
|
||||
<script src="./dist/js/auth/apiservice.js"></script>
|
||||
<script src="./libs/cookies.min.js"></script>
|
||||
<script src="./libs/axios.min.js"></script>
|
||||
|
||||
+9
-11
@@ -97,10 +97,8 @@
|
||||
<input type="hidden" name="" id="skudetailitem">
|
||||
<h5 class="productname">ORA3, M.2 NVMe SSD </h5>
|
||||
</div>
|
||||
<div class="small-font">Improve your system's responsiveness, run apps faster and multitask
|
||||
with ease. Compatibility assurance when using the Crucial System Scanner or Crucial
|
||||
Advisor Tool</div>
|
||||
<div>₹<span class="price">3000</span></div>
|
||||
<div class="small-font des_productdes"></div>
|
||||
<div>₹<span class="price"></span></div>
|
||||
<div class="text-danger msgErrorDetailsItem d-none">Product out of stock</div>
|
||||
</div>
|
||||
|
||||
@@ -258,9 +256,9 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<hr class="d-none">
|
||||
<div>
|
||||
<ul>
|
||||
<ul class="d-none">
|
||||
<li class="small-font">No Cost EMI Available <a class="learnMoreA" href="">Learn
|
||||
More</a></li>
|
||||
<li class="small-font">Buy Anwi Extended Warranty 1 Year at ₹2,699 <a class="learnMoreA"
|
||||
@@ -302,18 +300,18 @@
|
||||
|
||||
<div class="col-lg-12 ">
|
||||
<div class="dec-review-topbar no-transition nav mb-65 productdetailstabs d-flex gap-4" role="tablist">
|
||||
<a class="active font-1-5 no-transition" data-bs-toggle="tab" href="#des-details1" aria-selected="true" role="tab">Description</a>
|
||||
<!-- <a class="active font-1-5 no-transition" data-bs-toggle="tab" href="#des-details1" aria-selected="true" role="tab">Description</a> -->
|
||||
|
||||
<a data-bs-toggle="tab" href="#des-details2" aria-selected="false" role="tab" class="font-1-5 no-transition" tabindex="-1">Specification</a>
|
||||
<a data-bs-toggle="tab" href="#des-details2" aria-selected="false" role="tab" class="active font-1-5 no-transition" tabindex="-1">Specification</a>
|
||||
|
||||
</div>
|
||||
<div class="tab-content dec-review-bottom">
|
||||
<div id="des-details1" class="tab-pane active show" role="tabpanel">
|
||||
<!-- <div id="des-details1" class="tab-pane active show" role="tabpanel">
|
||||
<div class="description-wrap wrap-content-product-tabs">
|
||||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Suscipit, recusandae! Alias tempore, molestias, architecto provident excepturi voluptate non repellendus, repellat a quis iusto consequuntur quas beatae fugit nisi totam ratione nesciunt reiciendis quod? Quae, consequuntur quasi. Laudantium, doloribus aliquam incidunt error qui itaque aperiam quia ducimus cupiditate, magnam aliquid iste molestiae eveniet? Eaque veniam illo hic, possimus dolorum quaerat ratione in ex voluptas itaque ullam, maiores iusto illum blanditiis sequi. Ex, ab nemo vero libero pariatur architecto culpa! Recusandae at fugiat itaque libero amet corporis exercitationem dolorum? Tenetur repellat tempora perspiciatis quibusdam maxime facilis necessitatibus eius sint corporis nihil! Accusantium.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="des-details2" class="tab-pane" role="tabpanel">
|
||||
</div> -->
|
||||
<div id="des-details2" class="tab-pane active show" role="tabpanel">
|
||||
<div class="specification-wrap table-responsive">
|
||||
<table class="table table-bordered wrap-content-product-tabs">
|
||||
<tbody class="append-specs">
|
||||
|
||||
+4
-28
@@ -36,12 +36,13 @@
|
||||
<div id="navbar-head"></div>
|
||||
<!-- end-navbar -->
|
||||
<!-- main-body -->
|
||||
<div class="pt-5 mianselectdelivery">
|
||||
<auth-loader payment="rtyui"></auth-loader>
|
||||
<div class="pt-5 mianselectdelivery d-none">
|
||||
<div class="pt-5 container">
|
||||
<div class="row">
|
||||
<div class="col-sm-8">
|
||||
<div>
|
||||
<auth-loader payment="rtyui"></auth-loader>
|
||||
|
||||
<div class="card">
|
||||
<div class=" p-3 gap-3 d-flex align-items-center ">
|
||||
<div class="info-numberbox">1</div>
|
||||
@@ -197,32 +198,7 @@
|
||||
<div class="card p-3 gap-3">
|
||||
<div>Your Order</div>
|
||||
<div class="orderlistcart">
|
||||
<div class="align-items-center d-flex justify-content-between">
|
||||
<div style="max-width: 100px;" class="">
|
||||
<img class="w-100" src="./dist/assets/imgs/Navbar/Accessiories-1.png" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<div>Jeans with sequins</div>
|
||||
</div>
|
||||
<div>
|
||||
<span>7000</span> <span>x <span class="qtyitem">02</span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="align-items-center border-top d-flex justify-content-between border-top">
|
||||
<div style="max-width: 100px;" class="">
|
||||
<img class="w-100" src="./dist/assets/imgs/Navbar/Accessiories-1.png" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<div>
|
||||
<div>Jeans with sequins</div>
|
||||
</div>
|
||||
<div>
|
||||
<span>7000</span> <span>x <span class="qtyitem">02</span></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- list goes here -->
|
||||
</div>
|
||||
<div class="border-top d-flex flex-column gap-1">
|
||||
<div class="d-flex justify-content-between">
|
||||
|
||||
Reference in New Issue
Block a user