code added

This commit is contained in:
2023-05-01 14:23:56 +05:30
parent 9a63b4dcdc
commit bf783a338b
15 changed files with 176 additions and 165 deletions
+10 -11
View File
@@ -25,7 +25,7 @@ function startDetails(){
}
let currentClick = null;
debugger;
if(productId){
loadingActions.addLoader();
updateProductId(productId);
@@ -45,7 +45,7 @@ function startDetails(){
let specification_wrap_action = {
remove(){
debugger;
$('.specification-wrap').addClass('d-none');
},
@@ -125,8 +125,7 @@ function startDetails(){
}
}
debugger;
$('.specContainerleft').html(leftHtml)
$('.specContainerRight').html(rightHtml)
@@ -162,7 +161,7 @@ function startDetails(){
$('.optiontaganwi').each(function (i,el){
$(el).click(function (e){
$('#quantity').val(1)
$(e.target).parent().find('.borderselector').removeClass('borderselector');
$(e.target).addClass('borderselector')
searchComb();
@@ -183,7 +182,7 @@ function startDetails(){
let defaultImg = obj.itemimageurl ? imgServerNameBuild(obj.itemimageurl): `./dist/assets/imgs/nophoto.png`;
console.log(obj.itemimageurl,'obj.itemimageurlobj.itemimageurlobj.itemimageurl');
debugger;
$('.productDetailsMain > img').attr('src',defaultImg);
updateItemId(obj.itemid);
@@ -244,7 +243,7 @@ debugger;
// $('.des_productdes').html(itemtagscombinationRes[i].itemdescription);
updateDetailsByObj(itemtagscombinationRes[i]);
}else{
debugger;
let name = itemtagscombinationRes[i].itemname.split('-')[0];
$('#addtocart').addClass('disabled');
let itemsName = name;
@@ -329,7 +328,7 @@ debugger;
async function getProductDetails(id){
debugger
// let res = await getStatAPIService(`${SERVERNAME}/apis/v4/bizgaze/integrations/products/productattributelist/productid/${id}`);
@@ -412,7 +411,7 @@ debugger;
let val = $(el).html();
valuesSelected.push(val.trim());
});
debugger;
let searchParams = window.location.search.split("&");
let skuId = window.location.hash.split('#')[1].split('=')[1];
// skuId = skuId.split('=')[1]
@@ -437,7 +436,7 @@ debugger;
}
if(isTrue){
debugger;
console.log(itemtagscombinationRes[i],'itemtagscombinationRes[i]');
@@ -447,7 +446,7 @@ debugger;
// $('.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);