قیمت خرید گوشی سامسونگ SM-A515F کد7572

Uncategorized

‘ +
”;
}
else if(key == “totalPrice”)
{
$shoppingCardTotals +=

‘+

‘+
‘+
‘جمع کل: ‘+
val +
‘ تومان ‘+

‘;
}
});

$shoppingCardItems += ”;
}
else
{
$shoppingCardItems = ‘

سبد خرید شما خالی است

‘;
$shoppingCardTotals = “http://www.bprshop.com/”;
}

$(‘.sale-basket’).each(function()
{
if($saleBasketItemsCount > 2)
{
$(this).find(“.sale-basket-panel .sale-basket-items”).css({overflow:”auto”});
$(this).find(“.sale-basket-panel-control .badge”).css({display:”inline-flex”});
}
else
{
$(this).find(“.sale-basket-panel .sale-basket-items”).css({overflow:”visible”});
$(this).find(“.sale-basket-panel-control .badge”).css({display:”none”});
}
$(this).find(“.sale-basket-panel .sale-basket-items”).html($shoppingCardItems);
$(this).find(“.sale-basket-panel .sale-basket-totals”).html($shoppingCardTotals);
$(this).find(“.sale-basket-panel-control .badge”).text(data2[“totalQuantity”]);
});

$(‘.sale-basket’).each(function()
{
$(this).find(“.btn-delete-sale-basket-item”).click(function()
{
var $id = $(this).attr(“data-itemID”);
var $btn = $(this);

$(“div#ajax-cover”).removeClass(“fade_zoomout_animation”).show(0).addClass(“fade_zoom_animation”);

$.ajax({
url: “functions/boxes_programs/shopping_cart/ajax.php?deleteFromShoppingCartProccess”,
data:{
ShoppingCartItem: $id
},
success: function(data)
{
$(“div#ajax-cover”).removeClass(“fade_zoom_animation”).addClass(“fade_zoomout_animation”);
window.setTimeout(
function()
{
$(“div#ajax-cover”).hide(0);
},500
);

if(data == “deleted”)
{
refresh_saleBasket();
if(refresh_saleBasket_page())
{
refresh_saleBasket_page();
}
}
else
{

}
},
error: function(error)
{
console.log(error);
}
});
});

// decrease count of product in shopping cart
$(this).find(“.fa-minus-square”).click(function()
{
var $id = $(this).attr(“data-itemID”);
var $btn = $(this);

$(“div#ajax-cover”).removeClass(“fade_zoomout_animation”).show(0).addClass(“fade_zoom_animation”);

$.ajax({
url: “functions/boxes_programs/shopping_cart/ajax.php?decreaseFromShoppingCartProccess”,
data:{
ShoppingCartItem: $id
},
success: function(data)
{
if(data == “decreased”)
{
$(“div#ajax-cover”).removeClass(“fade_zoom_animation”).addClass(“fade_zoomout_animation”);

window.setTimeout(
function()
{
$(“div#ajax-cover”).hide(0);
},500
);

refresh_saleBasket();
if(refresh_saleBasket_page())
{
refresh_saleBasket_page();
}
}
else
{

}
},
error: function(error)
{
console.log(error);
}
});
});

// increase count of product in shopping cart
$(this).find(“.fa-plus-square”).click(function()
{
var $id = $(this).attr(“data-itemID”);
var $btn = $(this);

$(“div#ajax-cover”).removeClass(“fade_zoomout_animation”).show(0).addClass(“fade_zoom_animation”);

$.ajax({
url: “functions/boxes_programs/shopping_cart/ajax.php?increaseFromShoppingCartProccess”,
data:{
ShoppingCartItem: $id
},
success: function(data)
{
if(data == “increased”)
{
$(“div#ajax-cover”).removeClass(“fade_zoom_animation”).addClass(“fade_zoomout_animation”);

window.setTimeout(
function()
{
$(“div#ajax-cover”).hide(0);
},500
);

refresh_saleBasket();
if(refresh_saleBasket_page())
{
refresh_saleBasket_page();
}
}
else
{

}
},
error: function(error)
{
console.log(error);
}
});
});
});

$(‘[data-toggle=”tooltip”]’).tooltip();
}
,
error: function(error)
{
console.log(error);
}
});
}

$(document).ready(
function()
{
refresh_saleBasket();

$(“body”).on(“click”,”.addToShoppingCard”,function(event)
{
event.preventDefault();

/* begin for product detail */
var find = ‘sq_’;
var re = new RegExp(find, ‘g’);
var name = “http://www.bprshop.com/”;
var $product_params = “http://www.bprshop.com/”;//[];
var empty_param_count = 0;
var ajaxData = [];
var beginAjaxflag = false;

if($(“[name *= ‘sq’]”).length > 0)
{
$product_params = “http://www.bprshop.com/”;//[];

$(“[name *= ‘sq’]”).each(
function(index)
{

name = $(this).attr(“name”).replace(re, “http://www.bprshop.com/”);

if($(this).val() == “http://www.bprshop.com/”)
{
empty_param_count++;
$(this).parents(“div:first”).addClass(“has-error”);
$(“.listOfSellerQuestions-alert”).show(0,function()
{
$(this).stop(false,false).animate({“opacity”:1.0},1000);
});

setTimeout(function()
{
$(“.listOfSellerQuestions-alert”).fadeOut(“slow”,function()
{
$(this).hide();
});
},3000);
}
else
{
$(this).parents(“div:first”).addClass(“has-success”).removeClass(“has-error”);
}

//name = “sq_” + name;

$product_params += ( name + “:” + $(this).val() + “_*_”);
}
);
}
/* end for product detail */

/* ajax add item to shopping card */
var $addToShoppingCart = $(this).attr(“shoppingCartProductID”);
var $productName = $(this).attr(“shoppingCartProductName”);
$product_params += “product_id:” + $addToShoppingCart;

if($(“[name *= ‘sq’]”).length > 0)
{
ajaxData = {
productparams : $product_params
};

if(empty_param_count == 0)
{
beginAjaxflag = true;
}
}
else
{
ajaxData = {
productparams : $product_params
};
beginAjaxflag = true;
}

//console.log(ajaxData);

if(beginAjaxflag == true)
{
$(“div#ajax-cover”).removeClass(“fade_zoomout_animation”).show(0).addClass(“fade_zoom_animation”);

$.ajax({
//dataType: “json”,
url: “functions/boxes_programs/shopping_cart/ajax.php?addToShoppingCartProccess”,
data:ajaxData,
success: function(data)
{
//alert(data);
//console.log(data);
if(data == “added”)
{
refresh_saleBasket();

$(“#addToShoppingCard4579”).find(“.shoppingCart_addedItemName”).text($productName);
$(“#addToShoppingCard4579”).modal(
{
show:true,
backdrop:false
});
}
$(“div#ajax-cover”).removeClass(“fade_zoom_animation”).addClass(“fade_zoomout_animation”);
window.setTimeout(
function()
{
$(“div#ajax-cover”).hide(0);
},500
);
}
,
error: function(error)
{
console.log(error);
}
});
}
});

$(“.sale-basket-close”).each(function()
{
$(this).click(function()
{
$(this).parents(“.sale-basket:first”).find(“.sale-basket-panel-control”).trigger(“click”);
});
});

}
);

به سبد خرید شما افزوده شد. ◄ با تایید این گزینه کالاهای موجود در سبد شما ثبت و رزرو نخواهد شد، برای ثبت سفارش مراحل بعدی را تکمیل کنید.

Source

Sharing is caring!

Leave a Reply