$product = {"id":7408538517603,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - Batman - 復古漫畫插圖","handle":"iphone-12-pro-max-mod-nx-printable-sb08","description":null,"published_at":"2024-06-11T16:40:04+08:00","created_at":"2024-05-03T15:46:14+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":41886628184163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31472532684899,"product_id":7408538517603,"position":3,"created_at":"2024-05-03T15:46:21+08:00","updated_at":"2024-05-03T15:46:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f148e55d729e083c963d062c4c97430e7511e06e_845720cd-773d-47d4-9c50-5db567773a88.webp?v=1714722381","variant_ids":[41886628184163]},"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-SB08","featured_media":{"alt":null,"id":23877450006627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f148e55d729e083c963d062c4c97430e7511e06e_845720cd-773d-47d4-9c50-5db567773a88.webp?v=1714722381"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c6efee7ddb59c902f6c43afd50f274bb5985cc4_65b5c4be-9d00-420d-aea3-3ac30210d4c6.webp?v=1714722376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7184a875ae0757b2a5e8f022d9978499268d14_282ee6a5-e860-4f68-a974-e659f0d59eeb.webp?v=1714722379","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f148e55d729e083c963d062c4c97430e7511e06e_845720cd-773d-47d4-9c50-5db567773a88.webp?v=1714722381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6807d203914e655a460cd80c57e2fad0c375bba_29c564dd-07c1-48f1-8e60-debec97fab2e.webp?v=1714722384","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd2ca911c4ae40c7bcabd9536843360ca4d6efbe_250e042f-da89-4a39-9ba0-ba85760d117f.webp?v=1714722386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c62463d844c0ed392bc5eca6d3cfb99e8cbacaa_d60e35a6-09b3-4520-a198-f4aacef45aeb.webp?v=1714722389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81e9fc4b0c1e9872874af8b8cd2eba5a4089cb54_308c537b-93f9-458a-ade7-b2fb9a1148ae.webp?v=1714722391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e458cf890bdc801dbb92695bc71d355bf5bbb9_793d2171-d8e4-467a-860f-39e4162d162a.webp?v=1714722393","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ed2bc255d01fe96d946313734be00af7b1cf8b_7299157c-0ab4-4642-bbe7-0bce65c56b2e.webp?v=1714722396","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8107de88226cbe7df6c4b0a2a5db58f1c8d94971_b796e5ea-6dff-43b1-a3e7-03ac71410644.webp?v=1714722398"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c6efee7ddb59c902f6c43afd50f274bb5985cc4_65b5c4be-9d00-420d-aea3-3ac30210d4c6.webp?v=1714722376","options":["color"],"media":[{"alt":null,"id":23877449056355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c6efee7ddb59c902f6c43afd50f274bb5985cc4_65b5c4be-9d00-420d-aea3-3ac30210d4c6.webp?v=1714722376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c6efee7ddb59c902f6c43afd50f274bb5985cc4_65b5c4be-9d00-420d-aea3-3ac30210d4c6.webp?v=1714722376","width":2000},{"alt":null,"id":23877449580643,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7184a875ae0757b2a5e8f022d9978499268d14_282ee6a5-e860-4f68-a974-e659f0d59eeb.webp?v=1714722379"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e7184a875ae0757b2a5e8f022d9978499268d14_282ee6a5-e860-4f68-a974-e659f0d59eeb.webp?v=1714722379","width":2000},{"alt":null,"id":23877450006627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f148e55d729e083c963d062c4c97430e7511e06e_845720cd-773d-47d4-9c50-5db567773a88.webp?v=1714722381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f148e55d729e083c963d062c4c97430e7511e06e_845720cd-773d-47d4-9c50-5db567773a88.webp?v=1714722381","width":2000},{"alt":null,"id":23877450465379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6807d203914e655a460cd80c57e2fad0c375bba_29c564dd-07c1-48f1-8e60-debec97fab2e.webp?v=1714722384"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6807d203914e655a460cd80c57e2fad0c375bba_29c564dd-07c1-48f1-8e60-debec97fab2e.webp?v=1714722384","width":2000},{"alt":null,"id":23877451120739,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd2ca911c4ae40c7bcabd9536843360ca4d6efbe_250e042f-da89-4a39-9ba0-ba85760d117f.webp?v=1714722386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd2ca911c4ae40c7bcabd9536843360ca4d6efbe_250e042f-da89-4a39-9ba0-ba85760d117f.webp?v=1714722386","width":2000},{"alt":null,"id":23877451415651,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c62463d844c0ed392bc5eca6d3cfb99e8cbacaa_d60e35a6-09b3-4520-a198-f4aacef45aeb.webp?v=1714722389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c62463d844c0ed392bc5eca6d3cfb99e8cbacaa_d60e35a6-09b3-4520-a198-f4aacef45aeb.webp?v=1714722389","width":2000},{"alt":null,"id":23877452071011,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81e9fc4b0c1e9872874af8b8cd2eba5a4089cb54_308c537b-93f9-458a-ade7-b2fb9a1148ae.webp?v=1714722391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/81e9fc4b0c1e9872874af8b8cd2eba5a4089cb54_308c537b-93f9-458a-ade7-b2fb9a1148ae.webp?v=1714722391","width":2000},{"alt":null,"id":23877452398691,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e458cf890bdc801dbb92695bc71d355bf5bbb9_793d2171-d8e4-467a-860f-39e4162d162a.webp?v=1714722393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3e458cf890bdc801dbb92695bc71d355bf5bbb9_793d2171-d8e4-467a-860f-39e4162d162a.webp?v=1714722393","width":2000},{"alt":null,"id":23877452922979,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ed2bc255d01fe96d946313734be00af7b1cf8b_7299157c-0ab4-4642-bbe7-0bce65c56b2e.webp?v=1714722396"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ed2bc255d01fe96d946313734be00af7b1cf8b_7299157c-0ab4-4642-bbe7-0bce65c56b2e.webp?v=1714722396","width":2000},{"alt":null,"id":23877453348963,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8107de88226cbe7df6c4b0a2a5db58f1c8d94971_b796e5ea-6dff-43b1-a3e7-03ac71410644.webp?v=1714722398"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8107de88226cbe7df6c4b0a2a5db58f1c8d94971_b796e5ea-6dff-43b1-a3e7-03ac71410644.webp?v=1714722398","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886628184163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31472532684899,"product_id":7408538517603,"position":3,"created_at":"2024-05-03T15:46:21+08:00","updated_at":"2024-05-03T15:46:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f148e55d729e083c963d062c4c97430e7511e06e_845720cd-773d-47d4-9c50-5db567773a88.webp?v=1714722381","variant_ids":[41886628184163]},"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-SB08","featured_media":{"alt":null,"id":23877450006627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f148e55d729e083c963d062c4c97430e7511e06e_845720cd-773d-47d4-9c50-5db567773a88.webp?v=1714722381"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886628184163,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-SB08","requires_shipping":true,"taxable":true,"featured_image":{"id":31472532684899,"product_id":7408538517603,"position":3,"created_at":"2024-05-03T15:46:21+08:00","updated_at":"2024-05-03T15:46:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f148e55d729e083c963d062c4c97430e7511e06e_845720cd-773d-47d4-9c50-5db567773a88.webp?v=1714722381","variant_ids":[41886628184163]},"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-SB08","featured_media":{"alt":null,"id":23877450006627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f148e55d729e083c963d062c4c97430e7511e06e_845720cd-773d-47d4-9c50-5db567773a88.webp?v=1714722381"}},"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: "停產"
}