add new changes
Bu işleme şunda yer alıyor:
Sağlanmış
+9
-9
@@ -120,7 +120,7 @@ function initAddToCart(){
|
||||
|
||||
cartObj[$('#skudetailitem').val()] = {
|
||||
name:$('.productname').html(),
|
||||
price:$('.price').html(),
|
||||
price:$('.price').data('price'),
|
||||
quantity:$('#quantity').val(),
|
||||
img:$('.productDetailsMain img').attr('src'),
|
||||
sku:$('#skudetailitem').val(),
|
||||
@@ -137,7 +137,7 @@ function initAddToCart(){
|
||||
}else{
|
||||
//if(!data[id]) data['length']++;
|
||||
let name = $('.productname').html();
|
||||
let price = $('.price').html();
|
||||
let price = $('.price').data('price');
|
||||
let quantity = $('#quantity').val();
|
||||
let img = $('.productDetailsMain img').attr('src');
|
||||
let sku = $('#skudetailitem').val();
|
||||
@@ -180,7 +180,7 @@ function initAddToCart(){
|
||||
$('#addtocart').html('Add to cart');
|
||||
$('#addtocart').removeAttr('gotocart');
|
||||
$('#addtocart').off('click').click((e)=>{
|
||||
|
||||
debugger
|
||||
$('.insufficientqty').addClass('d-none');
|
||||
const qty = parseInt($('#addtocart').data('qty'));
|
||||
|
||||
@@ -188,18 +188,18 @@ function initAddToCart(){
|
||||
$('.insufficientqty').removeClass('d-none');
|
||||
return;
|
||||
}
|
||||
// $('#addtocart').off().click(function (el){
|
||||
// window.location.href = '/shopping-cart.html';
|
||||
$('#addtocart').off().click(function (el){
|
||||
window.location.href = '/shopping-cart.html';
|
||||
|
||||
// });
|
||||
});
|
||||
|
||||
addToCartFun();
|
||||
|
||||
toasterHelper('success',"Item added to cart","toast-top-right");
|
||||
|
||||
// $('#addtocart').html('Go to cart');
|
||||
// debugger;
|
||||
// $('#addtocart').attr('gotocart',1);
|
||||
$('#addtocart').html('Go to cart');
|
||||
|
||||
$('#addtocart').attr('gotocart',1);
|
||||
});
|
||||
|
||||
// $('.quantityHTML #quantity').off('change').change(function (e){
|
||||
|
||||
Sağlanmış
@@ -501,6 +501,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
|
||||
payload['OrderItems'] = orderItems;
|
||||
|
||||
debugger;
|
||||
|
||||
try {
|
||||
const res = await API_SERVICES_ACTIONS.postAPIService(`apis/v4/bizgaze/integrations/salesorder/save`,payload);
|
||||
console.log(res.response.result);;
|
||||
|
||||
Sağlanmış
+8
-7
@@ -211,24 +211,25 @@ function shoppingCartInit() {
|
||||
|
||||
<div class=" inputcartaddmore d-flex gap-2 ${value >= 5 ? '' : 'd-none'}">
|
||||
<input min="1" class="form-control" style="max-width:100px" value="${value <= 5 ? '5' : value}" type="number" />
|
||||
<button class="btn border-none bg-info">Add</button>
|
||||
<button class="bg-gradient-anwi border-none btn text-white">Add</button>
|
||||
</div>
|
||||
<div class="text-danger pt-2 insufficientqty d-none">Insufficient quantity</div>
|
||||
</div>`
|
||||
}
|
||||
|
||||
function shoppingCartDesktopHTML({ id, img, name, price, description, quantity, total, totalQty, productid, itemid }) {
|
||||
const [currencySymbol, amt] = getCurrencySymbol(price);
|
||||
const [currencySymbol, amount] = getCurrencySymbol(price);
|
||||
debugger;
|
||||
let tamt = 0;
|
||||
{
|
||||
const [currencySymbol, amt] = getCurrencySymbol(total);
|
||||
tamt = amt;
|
||||
const [currencySymbol, amount] = getCurrencySymbol(total);
|
||||
tamt = amount;
|
||||
}
|
||||
return `
|
||||
<div class="d-none d-md-block">
|
||||
|
||||
<div class="row bg-white border-bottom py-4 d-flex justify-content-center align-items-center">
|
||||
<div class="col-md-2 text-center"><img src="https://appassets.bizgaze.app/_files/documents/663/5f6dc634-ffba-47d3-90d2-63004d9d41b6/LAPTOP_DDR5_32GB.jpeg" alt="${name}" class="img-fluid"></div>
|
||||
<div class="col-md-2 text-center"><img src="${img}" alt="${name}" class="img-fluid"></div>
|
||||
<div class="col-md-4 ">
|
||||
|
||||
<a class="text-decoration-none text-blue fw-600 cursor-pointer" href="productdetails.html?productId=${productid}#itemid=${itemid}">${name}</a>
|
||||
@@ -236,7 +237,7 @@ function shoppingCartInit() {
|
||||
<span class="badge d-none text-bg-warning">8 Offers ></span>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<p class="text-right m-0"><span>${currencySymbol}</span> ${amt}</p>
|
||||
<p class="text-right m-0"><span>${currencySymbol}</span> ${amount}</p>
|
||||
</div>
|
||||
<div class="col-md-2 ">
|
||||
|
||||
@@ -256,7 +257,7 @@ function shoppingCartInit() {
|
||||
<div class="row d-block d-md-none smallcart py-3">
|
||||
<div class="row bg-white py-5 m-0">
|
||||
<div class="col-4 text-center">
|
||||
<img src="https://appassets.bizgaze.app/_files/documents/663/5f6dc634-ffba-47d3-90d2-63004d9d41b6/LAPTOP_DDR5_32GB.jpeg" alt="${name}" class="img-fluid">
|
||||
<img src="${img}" alt="${name}" class="img-fluid">
|
||||
</div>
|
||||
<div class="col-8 position-relative d-flex flex-column gap-1">
|
||||
|
||||
|
||||
Yeni konuda referans
Bir kullanıcı engelle