$product = {"id":7408535011427,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 蝙蝠車","handle":"iphone-12-pro-max-mod-nx-printable-sb05","description":null,"published_at":"2024-06-11T16:39:58+08:00","created_at":"2024-05-03T15:45:32+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 12 pro max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-batman","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41886589386851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472523411555,"product_id":7408535011427,"position":3,"created_at":"2024-05-03T15:45:39+08:00","updated_at":"2024-05-03T15:45:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3afb16b534e143f748da412e9052f559dc50a6c_eef7354a-e621-44a5-b774-f562293f27e0.webp?v=1714722339","variant_ids":[41886589386851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 蝙蝠車 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SB05","featured_media":{"alt":null,"id":23877440798819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3afb16b534e143f748da412e9052f559dc50a6c_eef7354a-e621-44a5-b774-f562293f27e0.webp?v=1714722339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee672d8bd3ef2b6529dabc7eacf84c393d2cd91e_679802ad-3326-4d54-8228-b8701dedf763.webp?v=1714722334","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec9e69b2096dd6fa88710e0cf03cc8b52f7c18ad_07b13611-99f5-4bc5-a8f4-b3f9fe03ef06.webp?v=1714722337","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3afb16b534e143f748da412e9052f559dc50a6c_eef7354a-e621-44a5-b774-f562293f27e0.webp?v=1714722339","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34295a0549c9bed90893a782bc82fa0b00a29b39_3377e985-120c-4a56-bffc-c93d463ab780.webp?v=1714722342","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e18276e14709c2344254a9f220c8923fd1c217d_079c8b5e-40e0-442e-8a7e-de6c16567795.webp?v=1714722344","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9398677f4bc577214ce3965a0efaab66d4a70212_ddcf7b65-20a3-44a2-a5a3-e7e097b91bad.webp?v=1714722347","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7d393645eda541f8c8f33d00d4754ff8759958b_e330628d-7c29-467f-86c4-3a9d06aa871c.webp?v=1714722350","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c968214a022d06154aed65908a7dd07b740ac7b9_6ee08bec-faf3-4ec2-bce0-5714d1eb866e.webp?v=1714722352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ced7d66020d3226f83888dff15e1cf33980bd3_37780918-fa30-409b-b647-d735d8713239.webp?v=1714722354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e46cb16ed099e660d8c0528cb31f83beb87b308e_fabebeba-6906-417a-8c2f-9bcab3eb5d38.webp?v=1714722357"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee672d8bd3ef2b6529dabc7eacf84c393d2cd91e_679802ad-3326-4d54-8228-b8701dedf763.webp?v=1714722334","options":["color"],"media":[{"alt":null,"id":23877439324259,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee672d8bd3ef2b6529dabc7eacf84c393d2cd91e_679802ad-3326-4d54-8228-b8701dedf763.webp?v=1714722334"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee672d8bd3ef2b6529dabc7eacf84c393d2cd91e_679802ad-3326-4d54-8228-b8701dedf763.webp?v=1714722334","width":2000},{"alt":null,"id":23877440143459,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec9e69b2096dd6fa88710e0cf03cc8b52f7c18ad_07b13611-99f5-4bc5-a8f4-b3f9fe03ef06.webp?v=1714722337"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec9e69b2096dd6fa88710e0cf03cc8b52f7c18ad_07b13611-99f5-4bc5-a8f4-b3f9fe03ef06.webp?v=1714722337","width":2000},{"alt":null,"id":23877440798819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3afb16b534e143f748da412e9052f559dc50a6c_eef7354a-e621-44a5-b774-f562293f27e0.webp?v=1714722339"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3afb16b534e143f748da412e9052f559dc50a6c_eef7354a-e621-44a5-b774-f562293f27e0.webp?v=1714722339","width":2000},{"alt":null,"id":23877441388643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34295a0549c9bed90893a782bc82fa0b00a29b39_3377e985-120c-4a56-bffc-c93d463ab780.webp?v=1714722342"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34295a0549c9bed90893a782bc82fa0b00a29b39_3377e985-120c-4a56-bffc-c93d463ab780.webp?v=1714722342","width":2000},{"alt":null,"id":23877441781859,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e18276e14709c2344254a9f220c8923fd1c217d_079c8b5e-40e0-442e-8a7e-de6c16567795.webp?v=1714722344"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e18276e14709c2344254a9f220c8923fd1c217d_079c8b5e-40e0-442e-8a7e-de6c16567795.webp?v=1714722344","width":2000},{"alt":null,"id":23877442240611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9398677f4bc577214ce3965a0efaab66d4a70212_ddcf7b65-20a3-44a2-a5a3-e7e097b91bad.webp?v=1714722347"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9398677f4bc577214ce3965a0efaab66d4a70212_ddcf7b65-20a3-44a2-a5a3-e7e097b91bad.webp?v=1714722347","width":2000},{"alt":null,"id":23877443027043,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7d393645eda541f8c8f33d00d4754ff8759958b_e330628d-7c29-467f-86c4-3a9d06aa871c.webp?v=1714722350"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f7d393645eda541f8c8f33d00d4754ff8759958b_e330628d-7c29-467f-86c4-3a9d06aa871c.webp?v=1714722350","width":2000},{"alt":null,"id":23877443453027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c968214a022d06154aed65908a7dd07b740ac7b9_6ee08bec-faf3-4ec2-bce0-5714d1eb866e.webp?v=1714722352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c968214a022d06154aed65908a7dd07b740ac7b9_6ee08bec-faf3-4ec2-bce0-5714d1eb866e.webp?v=1714722352","width":2000},{"alt":null,"id":23877443879011,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ced7d66020d3226f83888dff15e1cf33980bd3_37780918-fa30-409b-b647-d735d8713239.webp?v=1714722354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ced7d66020d3226f83888dff15e1cf33980bd3_37780918-fa30-409b-b647-d735d8713239.webp?v=1714722354","width":2000},{"alt":null,"id":23877444337763,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e46cb16ed099e660d8c0528cb31f83beb87b308e_fabebeba-6906-417a-8c2f-9bcab3eb5d38.webp?v=1714722357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e46cb16ed099e660d8c0528cb31f83beb87b308e_fabebeba-6906-417a-8c2f-9bcab3eb5d38.webp?v=1714722357","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886589386851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472523411555,"product_id":7408535011427,"position":3,"created_at":"2024-05-03T15:45:39+08:00","updated_at":"2024-05-03T15:45:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3afb16b534e143f748da412e9052f559dc50a6c_eef7354a-e621-44a5-b774-f562293f27e0.webp?v=1714722339","variant_ids":[41886589386851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 蝙蝠車 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SB05","featured_media":{"alt":null,"id":23877440798819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3afb16b534e143f748da412e9052f559dc50a6c_eef7354a-e621-44a5-b774-f562293f27e0.webp?v=1714722339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886589386851,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB05","requires_shipping":true,"taxable":true,"featured_image":{"id":31472523411555,"product_id":7408535011427,"position":3,"created_at":"2024-05-03T15:45:39+08:00","updated_at":"2024-05-03T15:45:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3afb16b534e143f748da412e9052f559dc50a6c_eef7354a-e621-44a5-b774-f562293f27e0.webp?v=1714722339","variant_ids":[41886589386851]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 蝙蝠車 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0118724-SB05","featured_media":{"alt":null,"id":23877440798819,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3afb16b534e143f748da412e9052f559dc50a6c_eef7354a-e621-44a5-b774-f562293f27e0.webp?v=1714722339"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$brand_handle = null;
$type = "";
var sellingStatus
// 只有設計款(SKU 含 '-')才需要合圖
if ($isMerge && $defaultVariant.sku.includes('-')) {
$(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: "停產"
}