$product = {"id":7414588768355,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pc10","description":null,"published_at":"2024-06-11T17:52:22+08:00","created_at":"2024-05-05T14:32:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"available":true,"price_varies":false,"compare_at_price":null,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":41907624575075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485843505251,"product_id":7414588768355,"position":10,"created_at":"2024-05-05T14:33:11+08:00","updated_at":"2024-05-05T14:33:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f821a2493ef86498075241303bf7e491a2a7ce_2faa5bca-b802-4d28-859a-846c59d1d971.webp?v=1714890791","variant_ids":[41907624575075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PC10","featured_media":{"alt":null,"id":23891178520675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f821a2493ef86498075241303bf7e491a2a7ce_2faa5bca-b802-4d28-859a-846c59d1d971.webp?v=1714890791"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907625033827,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485845045347,"product_id":7414588768355,"position":11,"created_at":"2024-05-05T14:33:14+08:00","updated_at":"2024-05-05T14:33:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95beada8c35c83f336aa5defa4d22516ca63c578_2aa36463-457f-4efd-9014-8d513432e33c.webp?v=1714890794","variant_ids":[41907625033827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PC10","featured_media":{"alt":null,"id":23891180290147,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95beada8c35c83f336aa5defa4d22516ca63c578_2aa36463-457f-4efd-9014-8d513432e33c.webp?v=1714890794"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b01336f16335efa3034a6fe8dd124c99436d2057_b8259504-907d-4aab-b20c-0b1cfbb606e7.webp?v=1714890770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf87de0c4e464414f7ad05031f079cc22dda77f_6b390d54-8235-416a-a7a8-7ebf47c2669e.webp?v=1714890772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08907b26bf27544eebdd5118d4bfc4c5ba94d63_900502a5-534e-406b-af7f-b9ab17642b7b.webp?v=1714890775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d278a59c5e9a0c45a6e2fc260da322bb219104a2_f4349f58-5ae8-477e-86d6-f47eb2ffce26.webp?v=1714890777","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7881d72b25d7a487764c3d7206bb3b6243536e4c_536a44c1-ce14-4835-b952-4d37109fe4ea.webp?v=1714890780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e66134c148ddfd236fe05cb653f24777ee6557_216a9888-ac95-4d47-ba67-b13990c075b9.webp?v=1714890782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72573add91fc743ef0b98a5e5759352531e86e98_75f25d49-6bed-4b50-ae9b-88fd78da2fec.webp?v=1714890785","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3ccaeed875d61602dd1a5ac45d18d870edd3992_477b9fc9-63f9-46fa-979f-dc75c3af7a98.webp?v=1714890787","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd1d5a24466cf900578669fec67e36a3a6eb643a_e79b6bb4-90d3-426e-be09-eeb6e846c7d8.webp?v=1714890789","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f821a2493ef86498075241303bf7e491a2a7ce_2faa5bca-b802-4d28-859a-846c59d1d971.webp?v=1714890791","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95beada8c35c83f336aa5defa4d22516ca63c578_2aa36463-457f-4efd-9014-8d513432e33c.webp?v=1714890794"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b01336f16335efa3034a6fe8dd124c99436d2057_b8259504-907d-4aab-b20c-0b1cfbb606e7.webp?v=1714890770","options":["color"],"media":[{"alt":null,"id":23891163938915,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b01336f16335efa3034a6fe8dd124c99436d2057_b8259504-907d-4aab-b20c-0b1cfbb606e7.webp?v=1714890770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b01336f16335efa3034a6fe8dd124c99436d2057_b8259504-907d-4aab-b20c-0b1cfbb606e7.webp?v=1714890770","width":2000},{"alt":null,"id":23891165970531,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf87de0c4e464414f7ad05031f079cc22dda77f_6b390d54-8235-416a-a7a8-7ebf47c2669e.webp?v=1714890772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cdf87de0c4e464414f7ad05031f079cc22dda77f_6b390d54-8235-416a-a7a8-7ebf47c2669e.webp?v=1714890772","width":2000},{"alt":null,"id":23891168198755,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08907b26bf27544eebdd5118d4bfc4c5ba94d63_900502a5-534e-406b-af7f-b9ab17642b7b.webp?v=1714890775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f08907b26bf27544eebdd5118d4bfc4c5ba94d63_900502a5-534e-406b-af7f-b9ab17642b7b.webp?v=1714890775","width":2000},{"alt":null,"id":23891170132067,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d278a59c5e9a0c45a6e2fc260da322bb219104a2_f4349f58-5ae8-477e-86d6-f47eb2ffce26.webp?v=1714890777"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d278a59c5e9a0c45a6e2fc260da322bb219104a2_f4349f58-5ae8-477e-86d6-f47eb2ffce26.webp?v=1714890777","width":2000},{"alt":null,"id":23891172294755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7881d72b25d7a487764c3d7206bb3b6243536e4c_536a44c1-ce14-4835-b952-4d37109fe4ea.webp?v=1714890780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7881d72b25d7a487764c3d7206bb3b6243536e4c_536a44c1-ce14-4835-b952-4d37109fe4ea.webp?v=1714890780","width":2000},{"alt":null,"id":23891173376099,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e66134c148ddfd236fe05cb653f24777ee6557_216a9888-ac95-4d47-ba67-b13990c075b9.webp?v=1714890782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90e66134c148ddfd236fe05cb653f24777ee6557_216a9888-ac95-4d47-ba67-b13990c075b9.webp?v=1714890782","width":2000},{"alt":null,"id":23891174752355,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72573add91fc743ef0b98a5e5759352531e86e98_75f25d49-6bed-4b50-ae9b-88fd78da2fec.webp?v=1714890785"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72573add91fc743ef0b98a5e5759352531e86e98_75f25d49-6bed-4b50-ae9b-88fd78da2fec.webp?v=1714890785","width":2000},{"alt":null,"id":23891175997539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3ccaeed875d61602dd1a5ac45d18d870edd3992_477b9fc9-63f9-46fa-979f-dc75c3af7a98.webp?v=1714890787"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3ccaeed875d61602dd1a5ac45d18d870edd3992_477b9fc9-63f9-46fa-979f-dc75c3af7a98.webp?v=1714890787","width":2000},{"alt":null,"id":23891177341027,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd1d5a24466cf900578669fec67e36a3a6eb643a_e79b6bb4-90d3-426e-be09-eeb6e846c7d8.webp?v=1714890789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd1d5a24466cf900578669fec67e36a3a6eb643a_e79b6bb4-90d3-426e-be09-eeb6e846c7d8.webp?v=1714890789","width":2000},{"alt":null,"id":23891178520675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f821a2493ef86498075241303bf7e491a2a7ce_2faa5bca-b802-4d28-859a-846c59d1d971.webp?v=1714890791"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f821a2493ef86498075241303bf7e491a2a7ce_2faa5bca-b802-4d28-859a-846c59d1d971.webp?v=1714890791","width":2000},{"alt":null,"id":23891180290147,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95beada8c35c83f336aa5defa4d22516ca63c578_2aa36463-457f-4efd-9014-8d513432e33c.webp?v=1714890794"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95beada8c35c83f336aa5defa4d22516ca63c578_2aa36463-457f-4efd-9014-8d513432e33c.webp?v=1714890794","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907624575075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485843505251,"product_id":7414588768355,"position":10,"created_at":"2024-05-05T14:33:11+08:00","updated_at":"2024-05-05T14:33:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f821a2493ef86498075241303bf7e491a2a7ce_2faa5bca-b802-4d28-859a-846c59d1d971.webp?v=1714890791","variant_ids":[41907624575075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PC10","featured_media":{"alt":null,"id":23891178520675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f821a2493ef86498075241303bf7e491a2a7ce_2faa5bca-b802-4d28-859a-846c59d1d971.webp?v=1714890791"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907625033827,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485845045347,"product_id":7414588768355,"position":11,"created_at":"2024-05-05T14:33:14+08:00","updated_at":"2024-05-05T14:33:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95beada8c35c83f336aa5defa4d22516ca63c578_2aa36463-457f-4efd-9014-8d513432e33c.webp?v=1714890794","variant_ids":[41907625033827]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PC10","featured_media":{"alt":null,"id":23891180290147,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95beada8c35c83f336aa5defa4d22516ca63c578_2aa36463-457f-4efd-9014-8d513432e33c.webp?v=1714890794"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907624575075,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC10","requires_shipping":true,"taxable":true,"featured_image":{"id":31485843505251,"product_id":7414588768355,"position":10,"created_at":"2024-05-05T14:33:11+08:00","updated_at":"2024-05-05T14:33:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f821a2493ef86498075241303bf7e491a2a7ce_2faa5bca-b802-4d28-859a-846c59d1d971.webp?v=1714890791","variant_ids":[41907624575075]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-氣球布置-幽默系列 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PC10","featured_media":{"alt":null,"id":23891178520675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f821a2493ef86498075241303bf7e491a2a7ce_2faa5bca-b802-4d28-859a-846c59d1d971.webp?v=1714890791"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(document).ready(function() {
var productImg = $product.images[0];
var bumperImg = window.getProductImageUrl($defaultVariant.sku.split('-')[0]);
var layers = ($type === 'mod-nx-backplate' || $type === 'mod-backplate')
? [productImg, bumperImg]
: [bumperImg, productImg];
window.mergeProductImages(layers).then(function (mergedImg) {
$('.merged-img').attr('src', mergedImg);
});
});
};
var sellingStatusData
window.fetchSellingStatus().then(data => {
try {
sellingStatusData = data;
} catch (error) {
sellingStatusData = null
console.error('Unable to parse selling status', error)
}
$(document).ready(function() {
handleSellingStatus($defaultVariant.sku);
});
})
function handleSellingStatus(currentSku) {
if (!sellingStatusData) {
console.error('No selling status available!')
return
}
const sellingStatusElement = document.getElementById('selling-status')
const addToCartButton = document.getElementById('AddToCart-product-template')
const currentProductSku = currentSku.replace(/-(.*)$/, '-')
if ($variants) {
const flattenedSellingStatus = [...sellingStatusData.pending, ...sellingStatusData.preorder]
const matchSellingStatusProduct = flattenedSellingStatus.filter(product => currentProductSku === product.sku)
if (matchSellingStatusProduct.length > 0) {
const isProductPending = matchSellingStatusProduct[0].status === 'pending'
const matchDate = matchSellingStatusProduct[0].date
sellingStatus = isProductPending
? "缺貨中"
: "預購完成出貨日:" + matchDate
sellingStatusElement.textContent = sellingStatus
if (sellingStatus.includes("缺貨中")){
addToCartButton.disabled ='true';
addToCartButton.textContent = "缺貨中無法加入購物車"
} else {
addToCartButton.textContent = "加到購物車"
}
} else {
sellingStatusElement.textContent = ''
addToCartButton.textContent = "加到購物車"
};
};
};
document.addEventListener('DOMContentLoaded', function () {
var currentVariantSelect = document.getElementById('SingleOptionSelector-0')
currentVariantSelect.addEventListener('change', function() {
var currentSku = $('#current_sku').text()
var skuElement = document.getElementById('current-sku')
skuElement.textContent = currentSku
handleSellingStatus(currentSku)
});
});
// Override default values of shop.strings for each template.
// Alternate product templates can change values of
// add to cart button, sold out, and unavailable states here.
theme.productStrings = {
addToCart: "加到購物車",
soldOut: "售完",
unavailable: "停產"
}