Selamat dan nikmati salah satu platform resmi rajabandot terbesar di tahun 2026. Dan gunakan akses toto macau slot, slot 4d, togel online rajabandot, dan nikmati serunya macau togel sekarang juga.
6984851
";
var varselect = 'selected';
var varunselect = 'unselected';
function getMeta(url, elem) {
var img = new Image();
img.src = url;
img.onload = function () {
//var apr = this.width/this.height;
var apr = this.width / this.height;
var calc_padd = (1 / apr) * 100;
calc_padd = calc_padd + '%';
var calc_height = Math.ceil(973 / apr);
elem.attr('height', calc_height);
elem.parent().css('padding-top', calc_padd);
}
}
$(document).ready(function () {
//quantity input textbox-server error issue - fix
$("#prodQuantity").keyup("input", function (event) {
if (event.keyCode === 13) {
event.preventDefault();
event.target.blur();
}
});
$("#prodQuantity").on("change", function (event) {
resetErrors();
});
var prodList = localStorage.getItem("product-click");
// localStorage.removeItem("product-click");
var prevPage = document.referrer;
if (prevPage.includes("collections")) {
prevPage = "PLP :: " + formatString(prevPage.split("/")[prevPage.split("/").length - 1]);
} else if (prevPage.includes("pages")) {
prevPage = prevPage.split("/")[prevPage.split("/").length - 1] + "_page";
} else if (prevPage.includes("search")) {
prevPage = "Search Results"
} else if (prevPage.includes("products")) {
var arr = prevPage.split("/");
prevPage = arr[arr.length - 1].split("?")[0] + "_pdp";
} else if (prevPage.includes("cart")) {
var pageName = window.location.href;
var arr = prevPage.split("/");
prevPage = "Cart Page";
} else {
prevPage = "home_page"
}
if (prodList) {
document.getElementById("product_list").setAttribute('value', prodList);
} else {
localStorage.setItem("product-click", prevPage);
document.getElementById("product_list").setAttribute('value', prevPage);
}
$(".product__info-container .product__accordion").each(function (index, item) {
if (index == 0) {
$(item).find("details").attr("open", "open");
}
});
var product_price = $("#price-element").find(".actual_price_bold").text();
document.getElementById("product_price").setAttribute('value', product_price);
var prod_option = [];
var checked_value1 = [];
var prod_option1 = [];
var prod_option2 = [];
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "256GB" : "256GB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "256GB" + "Storage" : "256GB" + "Storage";
prod_option2.push("256GB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "true";
prod_option.push({
variant_id: "44064217465012",
option: product_opt1,
option_new: product_opt2,
product_opt1: "true",
available: "true",
url: "13-inch-ipad-pro-m5-mdyj4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdyj4zp-a",
id: "44064217465012",
product_id: "7997228220596",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi 256GB Standard Glass - Space Black (M5)",
product_type: "iPad",
product_price: "1,999.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "256GB" : "256GB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "256GB" + "Storage" : "256GB" + "Storage";
prod_option2.push("256GB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "true";
prod_option.push({
variant_id: "44064215007412",
option: product_opt1,
option_new: product_opt2,
product_opt1: "true",
available: "true",
url: "13-inch-ipad-pro-m5-mdyk4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdyk4zp-a",
id: "44064215007412",
product_id: "7997227008180",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi 256GB Standard Glass - Silver (M5)",
product_type: "iPad",
product_price: "1,999.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "512GB" : "512GB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "512GB" + "Storage" : "512GB" + "Storage";
prod_option2.push("512GB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064215302324",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-mdyl4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdyl4zp-a",
id: "44064215302324",
product_id: "7997227172020",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi 512GB Standard Glass - Space Black (M5)",
product_type: "iPad",
product_price: "2,299.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "1TB" : "1TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "1TB" + "Storage" : "1TB" + "Storage";
prod_option2.push("1TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064216842420",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-mdyn4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdyn4zp-a",
id: "44064216842420",
product_id: "7997227958452",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi 1TB Standard Glass - Space Black (M5)",
product_type: "iPad",
product_price: "2,899.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "512GB" : "512GB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "512GB" + "Storage" : "512GB" + "Storage";
prod_option2.push("512GB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064215728308",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-mdym4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdym4zp-a",
id: "44064215728308",
product_id: "7997227401396",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi 512GB Standard Glass - Silver (M5)",
product_type: "iPad",
product_price: "2,299.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "2TB" : "2TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "2TB" + "Storage" : "2TB" + "Storage";
prod_option2.push("2TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064218054836",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me8k4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me8k4zp-a",
id: "44064218054836",
product_id: "7997228548276",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 2TB Standard Glass - Silver (M5)",
product_type: "iPad",
product_price: "3,799.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "2TB" : "2TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "2TB" + "Storage" : "2TB" + "Storage";
prod_option2.push("2TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Nano-texture glass" : "Nano-texture glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Nano-texture glass" + "Glass Type" : "Nano-texture glass" + "Glass Type";
prod_option2.push("Nano-texture glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064217694388",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me8n4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me8n4zp-a",
id: "44064217694388",
product_id: "7997228351668",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 2TB Nano-texture glass - Silver (M5)",
product_type: "iPad",
product_price: "3,949.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "1TB" : "1TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "1TB" + "Storage" : "1TB" + "Storage";
prod_option2.push("1TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064217432244",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me8f4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me8f4zp-a",
id: "44064217432244",
product_id: "7997228253364",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 1TB Standard Glass - Silver (M5)",
product_type: "iPad",
product_price: "3,199.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "1TB" : "1TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "1TB" + "Storage" : "1TB" + "Storage";
prod_option2.push("1TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Nano-texture glass" : "Nano-texture glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Nano-texture glass" + "Glass Type" : "Nano-texture glass" + "Glass Type";
prod_option2.push("Nano-texture glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064217268404",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me8g4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me8g4zp-a",
id: "44064217268404",
product_id: "7997228155060",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 1TB Nano-texture glass - Space Black (M5)",
product_type: "iPad",
product_price: "3,349.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "2TB" : "2TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "2TB" + "Storage" : "2TB" + "Storage";
prod_option2.push("2TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Nano-texture glass" : "Nano-texture glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Nano-texture glass" + "Glass Type" : "Nano-texture glass" + "Glass Type";
prod_option2.push("Nano-texture glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064217170100",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-mdyw4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdyw4zp-a",
id: "44064217170100",
product_id: "7997228122292",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi 2TB Nano-texture glass - Silver (M5)",
product_type: "iPad",
product_price: "3,649.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "2TB" : "2TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "2TB" + "Storage" : "2TB" + "Storage";
prod_option2.push("2TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064217137332",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-mdyu4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdyu4zp-a",
id: "44064217137332",
product_id: "7997228089524",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi 2TB Standard Glass - Silver (M5)",
product_type: "iPad",
product_price: "3,499.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "512GB" : "512GB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "512GB" + "Storage" : "512GB" + "Storage";
prod_option2.push("512GB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064216973492",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me8c4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me8c4zp-a",
id: "44064216973492",
product_id: "7997227991220",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 512GB Standard Glass - Silver (M5)",
product_type: "iPad",
product_price: "2,599.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "2TB" : "2TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "2TB" + "Storage" : "2TB" + "Storage";
prod_option2.push("2TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Nano-texture glass" : "Nano-texture glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Nano-texture glass" + "Glass Type" : "Nano-texture glass" + "Glass Type";
prod_option2.push("Nano-texture glass" + "option4");
prod_option1[product_opt1] = "true";
prod_option.push({
variant_id: "44064216711348",
option: product_opt1,
option_new: product_opt2,
product_opt1: "true",
available: "true",
url: "13-inch-ipad-pro-m5-mdyv4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdyv4zp-a",
id: "44064216711348",
product_id: "7997227892916",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi 2TB Nano-texture glass - Space Black (M5)",
product_type: "iPad",
product_price: "3,649.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "1TB" : "1TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "1TB" + "Storage" : "1TB" + "Storage";
prod_option2.push("1TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064216023220",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-mdyp4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdyp4zp-a",
id: "44064216023220",
product_id: "7997227532468",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi 1TB Standard Glass - Silver (M5)",
product_type: "iPad",
product_price: "2,899.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "1TB" : "1TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "1TB" + "Storage" : "1TB" + "Storage";
prod_option2.push("1TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Nano-texture glass" : "Nano-texture glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Nano-texture glass" + "Glass Type" : "Nano-texture glass" + "Glass Type";
prod_option2.push("Nano-texture glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064215531700",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me8h4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me8h4zp-a",
id: "44064215531700",
product_id: "7997227303092",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 1TB Nano-texture glass - Silver (M5)",
product_type: "iPad",
product_price: "3,349.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "1TB" : "1TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "1TB" + "Storage" : "1TB" + "Storage";
prod_option2.push("1TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064215367860",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me8d4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me8d4zp-a",
id: "44064215367860",
product_id: "7997227204788",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 1TB Standard Glass - Space Black (M5)",
product_type: "iPad",
product_price: "3,199.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "2TB" : "2TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "2TB" + "Storage" : "2TB" + "Storage";
prod_option2.push("2TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064215236788",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me8j4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me8j4zp-a",
id: "44064215236788",
product_id: "7997227139252",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 2TB Standard Glass - Space Black (M5)",
product_type: "iPad",
product_price: "3,799.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "1TB" : "1TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "1TB" + "Storage" : "1TB" + "Storage";
prod_option2.push("1TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Nano-texture glass" : "Nano-texture glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Nano-texture glass" + "Glass Type" : "Nano-texture glass" + "Glass Type";
prod_option2.push("Nano-texture glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064215040180",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-mdyr4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdyr4zp-a",
id: "44064215040180",
product_id: "7997227040948",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi 1TB Nano-texture glass - Silver (M5)",
product_type: "iPad",
product_price: "3,049.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "256GB" : "256GB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "256GB" + "Storage" : "256GB" + "Storage";
prod_option2.push("256GB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064214778036",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me7w4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me7w4zp-a",
id: "44064214778036",
product_id: "7997226909876",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 256GB Standard Glass - Space Black (M5)",
product_type: "iPad",
product_price: "2,299.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "2TB" : "2TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "2TB" + "Storage" : "2TB" + "Storage";
prod_option2.push("2TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "true";
prod_option.push({
variant_id: "44064214581428",
option: product_opt1,
option_new: product_opt2,
product_opt1: "true",
available: "true",
url: "13-inch-ipad-pro-m5-mdyt4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdyt4zp-a",
id: "44064214581428",
product_id: "7997226811572",
product_sku: "BACOT/A",
product_title: "Viral! RAJABANDOT LOGIN 🛩️ Hadir Bersama Toto Macau Slot Togel Online #2026",
product_type: "iPad",
product_price: "3,499.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "512GB" : "512GB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "512GB" + "Storage" : "512GB" + "Storage";
prod_option2.push("512GB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064214417588",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me7y4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me7y4zp-a",
id: "44064214417588",
product_id: "7997226713268",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 512GB Standard Glass - Space Black (M5)",
product_type: "iPad",
product_price: "2,599.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "2TB" : "2TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "2TB" + "Storage" : "2TB" + "Storage";
prod_option2.push("2TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Nano-texture glass" : "Nano-texture glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Nano-texture glass" + "Glass Type" : "Nano-texture glass" + "Glass Type";
prod_option2.push("Nano-texture glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064213991604",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me8m4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me8m4zp-a",
id: "44064213991604",
product_id: "7997226516660",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 2TB Nano-texture glass - Space Black (M5)",
product_type: "iPad",
product_price: "3,949.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Space Black" : "Space Black";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Space Black" + "Color" : "Space Black" + "Color";
prod_option2.push("Space Black" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "1TB" : "1TB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "1TB" + "Storage" : "1TB" + "Storage";
prod_option2.push("1TB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi" : "Wi-Fi";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi" + "Connectivity" : "Wi-Fi" + "Connectivity";
prod_option2.push("Wi-Fi" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Nano-texture glass" : "Nano-texture glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Nano-texture glass" + "Glass Type" : "Nano-texture glass" + "Glass Type";
prod_option2.push("Nano-texture glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064213827764",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-mdyq4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-mdyq4zp-a",
id: "44064213827764",
product_id: "7997226451124",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi 1TB Nano-texture glass - Space Black (M5)",
product_type: "iPad",
product_price: "3,049.00",
productcomPrice: ""
});
var product_opt1 = "";
var product_opt2 = "";
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Silver" : "Silver";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Silver" + "Color" : "Silver" + "Color";
prod_option2.push("Silver" + "option1");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "256GB" : "256GB";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "256GB" + "Storage" : "256GB" + "Storage";
prod_option2.push("256GB" + "option2");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Wi-Fi + Cellular" : "Wi-Fi + Cellular";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Wi-Fi + Cellular" + "Connectivity" : "Wi-Fi + Cellular" + "Connectivity";
prod_option2.push("Wi-Fi + Cellular" + "option3");
product_opt1 = product_opt1 != '' ? product_opt1 + "|!" + "Standard Glass" : "Standard Glass";
product_opt2 = product_opt2 != '' ? product_opt2 + "|!" + "Standard Glass" + "Glass Type" : "Standard Glass" + "Glass Type";
prod_option2.push("Standard Glass" + "option4");
prod_option1[product_opt1] = "false";
prod_option.push({
variant_id: "44064213860532",
option: product_opt1,
option_new: product_opt2,
product_opt1: "false",
available: "false",
url: "13-inch-ipad-pro-m5-me7x4zp-a",
full_url: "/products/13-inch-ipad-pro-m5-me7x4zp-a",
id: "44064213860532",
product_id: "7997226418356",
product_sku: "BACOT/A",
product_title: "13-inch iPad Pro Wi-Fi + Cellular 256GB Standard Glass - Silver (M5)",
product_type: "iPad",
product_price: "2,299.00",
productcomPrice: ""
});
var option_values = $('input[type=radio].smart_radio');
var compareArray = [];
$(option_values).each(function (i) {
compareArray.push($(this).val() + $(this).data('label_name'))
});
var compareIndex = {};
compareArray.forEach(function (item, index) {
compareIndex[item] = index;
});
prod_option.sort(function (a, b) {
var a_parts = a.option_new.split('|!');
var b_parts = b.option_new.split('|!');
for (var i = 0; i b_index) {
return 1;
}
} else if (a_index !== undefined) {
return -1;
} else if (b_index !== undefined) {
return 1;
}
}
return a_parts.length - b_parts.length;
});
var color_trans = "Color";
var case_color_trans = "Case Finish";
var band_color_trans = "Band Color";
var $featuresValue = document.querySelector('.js-features-value') || null;
if ($featuresValue) {
updateFeaturesMarkup($featuresValue);
}
$(document).on('change', '.product-form__input:not(.product-form__input--trade-in) input[type=radio]', function () {
var this_clicked = $(this);
var option = this_clicked.siblings("label:first").attr("data-option");
var selectedColor = $(this).closest("fieldset").attr("data-selectedColor");
var curr_color = $('input[type=radio][name="' + color_trans + '"].smart_radio:checked').val();
var band_curr_color = $('input[type=radio][name="' + band_color_trans + '"].smart_radio:checked').val();
$(this).closest("fieldset").attr("data-selectedColor", curr_color);
//option == color_trans
var check_value = [];
$('input[type=radio].smart_radio').removeClass('disabled');
$('input[type=radio].smart_radio').removeAttr('disabled');
$('input[type=radio].smart_radio').removeClass('disabled-strike');
$('input[type=radio].smart_radio').removeClass('disabled-cursor');
$('input[type=radio].smart_radio').removeClass('disabled-cursor-checked');
var v = $('input[type=radio].smart_radio:checked');
let stitched_data = "";
$(v).each(function (i) {
check_value.push($(this).val());
if (check_value[i]) {
stitched_data = stitched_data != '' ? stitched_data + "|!" + check_value[i] : check_value[i];
}
});
// console.log(stitched_data);
let entry = prod_option.find(e => e.option === stitched_data);
$(".product-custom-media").css("opacity", "0.3");
$(".product__media-list").css("opacity", "0.3");
if (entry) {
var prod_hadle = entry.url;
var variant_id = entry.variant_id;
var prod_available = entry.available;
var product_id = entry.product_id;
var product_sku = entry.product_sku;
var product_title = entry.product_title;
var product_type = entry.product_type;
var product_price = entry.product_price;
var productcomPrice = entry.productcomPrice;
var viewurl = entry.full_url;
var unavailableOptionTxt = $('.unavailableOptionTxt');
if (unavailableOptionTxt) unavailableOptionTxt.remove();
if (prod_available == 'true') {
changeVariantAjax(viewurl, product_id, product_sku, product_title, product_type, product_price, productcomPrice, this_clicked);
showCart();
} else {
changeVariantAjax(viewurl, product_id, product_sku, product_title, product_type, product_price, productcomPrice, this_clicked);
hideCart();
}
} else {
unavailable(this_clicked);
// checkAvailability();
}
});
function unavailable(this_clicked) {
var label_name = this_clicked.data('label_name');
var option_name = this_clicked.data('option_name');
var inputString = this_clicked.val() + label_name;
var totalvarients = $('fieldset.product-form__input').length;
var isFirstTrue = false;
var true_prod = "true";
var v = $('input[type=radio].smart_radio:checked');
if (prod_option.filter(option_new => option_new.option_new.includes(inputString))) {
var filteredProducts = prod_option.filter(option_new => option_new.option_new.includes(inputString));
}
if (filteredProducts.some(product_opt1 => product_opt1.product_opt1.includes(true_prod))) {
filteredProducts = filteredProducts.filter(product_opt1 => product_opt1.product_opt1.includes(true_prod));
}
var filteredResults = filteredProducts;
$('input[type=radio].smart_radio:checked').each(function (i) {
var value = $(this).val() + $(this).data('label_name');
if (filteredResults.some(option_new => option_new.option_new.includes(value))) {
filteredResults = filteredResults.filter(option_new => option_new.option_new.includes(value));
}
if (filteredResults.some(product_opt1 => product_opt1.product_opt1.includes(true_prod))) {
filteredResults = filteredResults.filter(product_opt1 => product_opt1.product_opt1.includes(true_prod));
}
});
if (filteredResults.length > 0) {
filteredProducts = filteredResults;
}
var optionNewValue = filteredProducts[0].option_new;
$('.product-form__input input[type=radio]').each(function () {
var labelName = $(this).val() + $(this).data('label_name');
if (optionNewValue.includes(labelName)) {
if (!$(this).prop('checked')) {
$(this).prop('checked', true);
}
}
});
//$(this).parent().append(unavailable_msg);
var parentElement = $(this_clicked).parent('.js-product-option-form');
const unavailableMessaging = document.querySelectorAll('.unavailableOptionTxt') || [];
if (parentElement) {
if (unavailableMessaging?.length > 0) {
[...unavailableMessaging].forEach((item) => {
item.remove();
});
}
// append unavailable message if not already appended
if (parentElement.find('.unavailableOptionTxt').length == 0) {
parentElement.append(unavailable_msg);
}
}
var prod_hadle = filteredProducts[0].url;
var variant_id = filteredProducts[0].variant_id;
var prod_available = filteredProducts[0].available;
var product_id = filteredProducts[0].product_id;
var product_sku = filteredProducts[0].product_sku;
var product_title = filteredProducts[0].product_title;
var product_type = filteredProducts[0].product_type;
var product_price = filteredProducts[0].product_price;
var productcomPrice = filteredProducts[0].productcomPrice;
var viewurl = filteredProducts[0].full_url;
changeVariantAjax(viewurl, product_id, product_sku, product_title, product_type, product_price, productcomPrice, this_clicked);
if (filteredProducts[0].available == 'true') {
showCart();
} else {
hideCart();
}
}
function showCart() {
$(".show_atc a").show();
$(".show_buy a").show();
$(".hide---atc a").hide();
$(".hide---atc span").hide();
$(".free_shipping_msg").show();
$(".free_shipping_msg_2").show();
$("pickup-availability").css("display", "block");
$(".four-buynow").addClass("four-atc");
$(".applyforFinancing").show();
$(".sticky-container").removeClass("outofstock_sc");
}
function hideCart() {
$(".hide---atc a").show();
$(".hide---atc span").show();
$(".show_atc a").hide();
$(".show_buy a").hide();
$(".free_shipping_msg").hide();
$(".free_shipping_msg_2").hide();
$("pickup-availability").css("display", "none");
$(".four-buynow").removeClass("four-atc");
$(".applyforFinancing").hide();
$(".sticky-container").addClass("outofstock_sc");
}
var shop_url = "https://www.istudiosg.com";
function changeVariantAjax(viewurl, product_id, product_sku, product_title, product_type, product_price, productcomPrice, this_clicked) {
var option1 = this_clicked.siblings("label:first").attr("data-option");
var option_color = this_clicked.attr("data-color_present");
var productRecommendationsCurrentId = '#frequent-list_current-product';
var productRecommendationsCurrentEl = $(productRecommendationsCurrentId);
var productRecommendationsView = 'product-recommendations-view';
resetErrors();
var sectionIds = ['template--17605519376564__main', 'product-ajax-data'];
$('.js-collapsecon').each(function () {
var sectionId = $(this).attr('id')?.split('shopify-section-')[1] || null;
if (sectionId) {
sectionIds.push(sectionId);
}
});
$.ajax({
type: 'GET',
url: viewurl + `?sections=${sectionIds.join(',')}`,
beforeSend: function () {
$('variant-radios1').addClass('var_radio_point_none');
// $('.loader_pdp_variant_switch').addClass('active');
$("pickup-availability").each(function (index, item) {
item.renderLoading();
});
},
success: function (resp) {
var itemData = Object.values(resp).join('');
// remove the store locator from the response so it doesn't fetch the API each time jQuery is called
var itemDataNode = new DOMParser().parseFromString(itemData, 'text/html');
var newStoreLocator = itemDataNode.querySelector('my-store-locator');
if (newStoreLocator) {
newStoreLocator.remove();
}
itemData = itemDataNode;
var newPickupAvailability = $(itemData).find('pickup-availability').first();
var productId = newPickupAvailability.attr("data-product-id");
var selectedOptions = newPickupAvailability.attr("data-selected-options");
var nmpTest = document.querySelector('.js-nmp-test-mode') || null;
var nmpTrigger = itemData?.querySelector('.js-net-monthly-pricing-pdp-trigger') || null;
$("pickup-availability").attr("data-product-id", productId);
$("pickup-availability").attr("data-selected-options", selectedOptions);
$(".js-store-locator-product-info").html($(itemData).find('.js-store-locator-product-info').html());
// init store locator again with new variant details
var storeLocator = document.querySelector('my-store-locator');
if (storeLocator) {
storeLocator.init();
}
if (nmpTrigger && nmpTest) {
var { product: productHandle } = nmpTrigger.dataset || {};
if (productHandle) {
// init nmp test mode with new variant details
nmpTest.getNMPTerms(productHandle);
}
}
// update old product tag html to new product tag html
var newProductTag = $(itemData).find('.product_tag_display_container').first();
$('.product_tag_display_container').each(function (index, item) {
if (newProductTag) {
$(item).html(newProductTag.html().trim());
} else {
$(item).html('');
}
});
$(document).attr('title', $(itemData).find('#page_title').val());
window.history.replaceState("", "", viewurl);
//var product_list = $("#product_list").val();
$(".product__title").html($(itemData).find('.product__title').html());
$(".color-name").html($(itemData).find('.color-name').html());
$(".band-color-name").html($(itemData).find('.band-color-name').html());
$(".skuAndBarcode").html($(itemData).find('.skuAndBarcode').html());
$(".product__preorder-message").html($(itemData).find('.product__preorder-message').html());
$(".pricestyle").html($(itemData).find('.pricestyle').html());
$(itemData).find(".product__info-container .product__accordion").each(function (index, item) {
// var isOpen=$(".product__info-container").find(".product__accordion").eq(index).find("details").attr("open");
if (index == 0) {
$(item).find("details").attr("open", "open");
}
$(".product__info-container").find(".product__accordion").eq(index).html($(item).html());
});
$(".product-custom-media").html($(itemData).find('.product-custom-media').html());
$(".product-media-modal__content").html($(itemData).find('.product-media-modal__content').html());
$('.product__media-gallery').prepend('
');
$('.slider_media').html('');
// $("#product_list").val(product_list);
$(".common_medias").each(function () {
var data = $(this).find('.product__media').html()
$('.slider_media').append('
' + data + ' ');
});
$('.slider_media').slick({
prevArrow: `
Previous
`,
nextArrow: `
Next
`
});
$('.slider_media').on('beforeChange', function (event, slick, currentSlide, nextSlide) {
$('video').each(function () {
$(this).get(0).pause();
});
});
$('.slider_media').on('afterChange', function (event, slick, currentSlide, nextSlide) {
if ($('.slick-current').find('video').length !== 0) {
$(".slider_media .slick-current video")[0].play();
}
});
// Remove aria-describedby from slick slides for desktop
setTimeout(() => {
const slickSlides = $('.slider_media').find('.slick-list .slick-slide');
adaFormatSlickSlides(slickSlides);
}, 250);
$(".main-accordions").html($(itemData).find('.main-accordions').html());
$(".product-form").html($(itemData).find('.product-form').html());
$(".one-pickup").html($(itemData).find('.one-pickup').html());
$(".two-price").html($(itemData).find('.two-price').html());
$('#pdp_monthly_price_taxfree_true').html($(itemData).find('#pdp_monthly_price_taxfree_true').html());
$('#pdp_monthly_price_taxfree_false').html($(itemData).find('#pdp_monthly_price_taxfree_false').html());
$('#pdp_monthly_price_taxfree_true_2').html($(itemData).find('#pdp_monthly_price_taxfree_true_2').html());
$(".applecare-replace").html($(itemData).find('.applecare-replace').html());
$(".secWarranty-replace").html($(itemData).find('.secWarranty-replace').html());
$(".js-gwp-replace").html($(itemData).find('.js-gwp-replace').html());
$(".learn_more_sw").html($(itemData).find('.learn_more_sw').html());
$(".learn_more_apple").html($(itemData).find('.learn_more_apple').html());
$(".js-sticky-atc").html($(itemData).find('.js-sticky-atc').html());
$('#stickybar_monthlyprice_1').html($(itemData).find('#stickybar_monthlyprice_1').html());
$('#stickybar_monthlyprice_2').html($(itemData).find('#stickybar_monthlyprice_2').html());
$('#stickybar_monthlyprice_3').html($(itemData).find('#stickybar_monthlyprice_3').html());
$('#url').val($(itemData).find('#url').val());
setTimeout(function () {
$('variant-radios1').removeClass('var_radio_point_none');
//$('.loader_pdp_variant_switch').removeClass('active');
Shopify?.PaymentButton?.init()
}, 1000);
// $('.share-button').html($(itemData).find('.share-button').html());
callOptGa(product_id, product_sku, product_title, product_type, product_price, productcomPrice);
checkAvailability();
$(".product-custom-media").css("opacity", "1");
$(".product__media-list").css("opacity", "1");
function isEmpty(el) {
return !$.trim(el.html());
}
let all_are_hidden1 = true;
let all_are_hidden2 = true;
$('#tblNodes').each(function () {
if (($(this).css('display') !== 'none') || ($('#tblNodes').html() != "")) {
all_are_hidden1 = false;
return false;
}
});
if (all_are_hidden1 == true) {
$(".overviewAccordion").css("display", "none");
} else {
$(".overviewAccordion").css("display", "block");
}
$('#tblNodes2').each(function () {
if (($(this).css('display') !== 'none') || ($('#tblNodes2').html() != "")) {
all_are_hidden2 = false;
return false;
}
});
if (all_are_hidden2 == true) {
$(".specificationAccordion").css("display", "none");
} else {
$(".specificationAccordion").css("display", "block");
}
if (isEmpty($('#tblNodes'))) {
$(".overviewAccordion").css("display", "none");
}
if (isEmpty($('#tblNodes2'))) {
$(".specificationAccordion").css("display", "none");
}
if (all_are_hidden1 == true && all_are_hidden2 == true || $('.specificationAccordion').css('display') == "none" && $('.overviewAccordion').css('display') == "none") {
$(".container_X").css("display", "none");
} else {
$(".container_X").css("display", "block");
}
$(".overviewAccordion").trigger("click");
$("#tradeIn").html($(itemData).find('#tradeIn').html());
$('.js-net-monthly-pricing-pdp-trigger').on('click', function () {
if ($('.js-net-monthly-pricing-modal-trigger').length) {
$('.js-net-monthly-pricing-modal-trigger')[0].click();
}
});
$('#adobeAnalyticsProductData').html($(itemData).find('#adobeAnalyticsProductData').html());
window.refreshModals();
if (window.refreshTradeInModal) window.refreshTradeInModal();
if (window.initTradeInModals) window.initTradeInModals();
var $featuresValue = document.querySelector('.js-features-value') || null;
if ($featuresValue) {
updateFeaturesMarkup($featuresValue);
}
}
});
// Set first product in 'Product recommendations' section to current product
if (productRecommendationsCurrentEl) {
var viewTemplate = $(productRecommendationsCurrentId)?.data(productRecommendationsView);
var productRecommendationsUrl = `${viewurl}?view=${viewTemplate}`;
$.ajax({
type: 'GET',
url: productRecommendationsUrl,
success: function (itemData) {
setCurrentProduct(productRecommendationsCurrentEl, itemData);
}
});
}
}
$(document).on("click", ".accordion1", function () {
this.classList.toggle("active_1");
this.classList.toggle("headerBlu");
var panel1 = this.nextElementSibling;
$(panel1.style.maxHeight);
if (panel1.style.maxHeight) {
panel1.style.maxHeight = null;
$(this).find('span').removeClass("svgrotate_2");
} else {
panel1.style.maxHeight = panel1.scrollHeight + "px";
$(this).find('span').addClass("svgrotate_2");
}
});
checkAvailability();
var color_sw_array = [];
$('.smart_radio').each(function () {
color_sw_array.push($(this).val() + $(this).data('option_count'));
});
var diff = $(color_sw_array).not(prod_option2).get();
for (var i = 0; i (match.toLowerCase()))
.replace(/^[^ ]/g, match => (match.toUpperCase()));
}
var productPrice = Number(product_price.replace(/[^0-9.-]+/g, ""));
var value_price = productPrice * parseInt(prodQuant);
var value_price1 = parseFloat(value_price);
var productPrice1 = parseFloat(productPrice);
document.getElementById("product_list")?.setAttribute('value', item_list_name);
if ((prevPage.includes("search")) && (item_list_name == "Search Results")) {
dataLayer.push({ 'ecommerce': null });
dataLayer.push({
'event': 'select_item',
'search_term': search_value,
'ecommerce': {
'items': [{
'item_id': product_sku,
'item_name': product_title,
'item_category': product_type,
'item_list_name': item_list_name,
'price': productPrice,
'quantity': 1
}]
}
});
}
dataLayer.push({ 'ecommerce': null });
dataLayer.push({
'event': 'view_item',
'search_term': search_value,
'currency': productCurrency,
'value': value_price1,
'ecommerce': {
'items': [{
'item_id': product_sku,
'item_name': product_title,
'item_category': product_type,
'item_list_name': item_list_name,
'price': productPrice,
'quantity': 1
}]
}
});
}
$(".infocircle").click(function () {
$(".infocircle").removeClass("tooltip-active");
$(this).addClass("tooltip-active");
$(".infocircle .inf1").addClass("inf3");
$(".infocircle .inf2").addClass("inf3");
});
// Set the current product as the first item in the 'Product recommendations' section
function setCurrentProduct($el, data) {
$el.html(data);
}
function mediaSize_1(className) {
if (window.matchMedia('(max-width: 1024px)').matches) {
$(className).css("display", "block");
} else {
$(className).css("display", "flex");
}
}
function mediaSize_2(className) {
if (window.matchMedia('(max-width: 1024px)').matches) {
$(className).css("display", "block");
} else {
$(className).css("display", "inline-flex");
}
}
$('.product__media-gallery').prepend('
');
// Remove aria-describedby from slick slides for mobile
setTimeout(() => {
const slickSlides = $('.mobile_media_slider .slider_media').find('.slick-list .slick-slide');
adaFormatSlickSlides(slickSlides);
}, 250);
$('.variant-meta-image').each(function () {
var elem = $(this).find('img');
var img_src = $(this).find('img').attr('data-src');
if (elem.length) {
getMeta(img_src, elem);
}
});
$('.video').parent().click(function () {
if ($(this).children(".video").get(0).paused) {
$(this).children(".video").get(0).play();
} else {
$(this).children(".video").get(0).pause();
}
});
var videos = document.querySelectorAll('video');
for (var i = 0; i 0 && !videos[i].paused) {
videos[i].pause();
}
}
}
$('.variant-all-image').each(function () {
$(this).css("display", "none");
});
$('.variant-meta-image').each(function () {
$(this).css("display", "none");
});
$('.is-active').css("display", "block");
$('.product-media-modal__content img').each(function () {
$(this).hide();
});
$('.product-media-modal__content video').each(function () {
$(this).hide();
});
$('.product-media-modal__content deferred-media').each(function () {
$(this).hide();
});
$('.product-media-modal__content deferred-media video').each(function () {
$(this).hide();
});
var c1 = parseInt($(".variant-listed-image-44064214581428").length);
var c2 = 0;
var c3 = c1 + c2;
var c3 = 0;
if (c3 == 0) {
$(".common_medias").each(function () {
$(this).css("display", "block");
});
$(".variant-meta-image").each(function () {
$(this).css("display", "none");
});
//$('.slider_media').slick('unslick');
$('.slider_media').html('');
$(".common_medias").each(function () {
var data = $(this).find('.product__media').html()
$('.slider_media').append('
' + data + ' ');
})
$('.slider_media').slick({
prevArrow: `
Previous
`,
nextArrow: `
Next
`
});
$('.slider_media').on('beforeChange', function (event, slick, currentSlide, nextSlide) {
$('video').each(function () {
$(this).get(0).pause();
});
});
$('.slider_media').on('afterChange', function (event, slick, currentSlide, nextSlide) {
if ($('.slick-current').find('video').length !== 0) {
$(".slider_media .slick-current video")[0].play();
}
});
$('.product-media-modal__content img').not('.custom_media_images').each(function () {
$(this).show();
});
$('.product-media-modal__content deferred-media').each(function () {
$(this).show();
});
$('.product-media-modal__content deferred-media video').each(function () {
$(this).show();
});
return;
}
$('body').on('click', '.frequent-products-checkbox', function () {
if ($(this).is(':checked')) {
$(this).siblings('label').html(varselect);
} else {
$(this).siblings('label').html(varunselect);
}
});
function resetErrors() {
var errorMessage = document?.querySelector('.js-qty-error') || null;
var qtyInput = document?.querySelector('.js-qty-input') || null;
// reset error messaging
if (errorMessage) {
errorMessage.classList.add('hidden');
}
if (qtyInput) {
qtyInput.classList.remove('quantity--error');
}
}
function updateFeaturesMarkup(val) {
var $container = document.querySelector('.overviewPanel');
var $list = document.createElement('ul');
var $content = val.innerHTML;
if ($content && $content?.length > 0) {
// Split the content by
tag
var $items = $content.split(/
/i);
if ($items?.length > 0) {
$items = $items.map((item) => {
var $listItem = document.createElement('li');
$listItem.innerHTML = item;
// add li to $list
$list.appendChild($listItem);
});
// Clear the existing content
val.innerHTML = '';
val.appendChild($list);
if ($container && $container?.style?.maxHeight) {
// update the max height of the container to account for the new content
$container.style.maxHeight = $container.scrollHeight + 'px';
}
}
}
}
});
Choosing a selection results in a full page refresh.
Opens in a new window.
MARKET RAJABANDOT
TOTO MACAU
Color:
Space Black
Storage:
2TB
Connectivity:
Wi-Fi
Glass Type:
Standard Glass
Please fill this out
Use my current location
Filter stores by distance
All stores
5
miles
10
miles
30
miles
50
miles
100
miles
Learn More
How does Financing work?
Get what you want now, pay for it later!
Shopping online made so much more accessible now with PayLater by Grab.
Explore options