$product = {"id":7892169031779,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 咻咻熊 睡午覺","handle":"iphone-14-pro-mod-nx-magsafe-printable-fw60","description":null,"published_at":"2025-10-01T12:08:58+08:00","created_at":"2025-10-01T09:45:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiuxiubear","device-iPhone 14 Pro","merge","reseller-xiuxiubear"],"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":43754745495651,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":34541039091811,"product_id":7892169031779,"position":5,"created_at":"2025-10-01T09:46:01+08:00","updated_at":"2025-10-01T09:46:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5991718a77c17fad83bc6d2deb55641973f9d8a.webp?v=1759283163","variant_ids":[43754745495651]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 咻咻熊 睡午覺 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-FW60","featured_media":{"alt":null,"id":26110806229091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5991718a77c17fad83bc6d2deb55641973f9d8a.webp?v=1759283163"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754745659491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":34541039616099,"product_id":7892169031779,"position":8,"created_at":"2025-10-01T09:46:02+08:00","updated_at":"2025-10-01T09:46:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d57c96bab3ebc4b053d6c339bc2c67cb8f63176.webp?v=1759283164","variant_ids":[43754745659491]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 咻咻熊 睡午覺 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-FW60","featured_media":{"alt":null,"id":26110806753379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d57c96bab3ebc4b053d6c339bc2c67cb8f63176.webp?v=1759283164"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754745725027,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":34541040173155,"product_id":7892169031779,"position":12,"created_at":"2025-10-01T09:46:06+08:00","updated_at":"2025-10-01T09:46:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8cfd6a7f9faaa70bc760b426a7d8eda41a26562.webp?v=1759283168","variant_ids":[43754745725027]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 咻咻熊 睡午覺 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-FW60","featured_media":{"alt":null,"id":26110807310435,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8cfd6a7f9faaa70bc760b426a7d8eda41a26562.webp?v=1759283168"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610883f817dc05fbf7ce6c1b33bcbc43c6bad0ab.webp?v=1759283161","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d3825bc5faa186bf441beeb5407cbcf95ff54b.webp?v=1759283162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd5e78a47dca24de06cb725d540b8e47622f4cbf.webp?v=1759283162","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72d18197d712b8a05aa17e8885cbc6227200889e.webp?v=1759283163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5991718a77c17fad83bc6d2deb55641973f9d8a.webp?v=1759283163","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/222c6c1151acc85eab454985c84187fd92652e3a.webp?v=1759283164","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3ec3a5ddff09a97d6a1257e0e79f8c0746887f4.webp?v=1759283164","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d57c96bab3ebc4b053d6c339bc2c67cb8f63176.webp?v=1759283164","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d5f5d38d081ab31152671aa1fe6b78dd9ccae5.webp?v=1759283165","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e979dba78c3d358b42bf5d48872b624a3838a088.webp?v=1759283165","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a2702579c5c20ed2b0d2aa56bc8f2d06a0dc70.webp?v=1759283167","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8cfd6a7f9faaa70bc760b426a7d8eda41a26562.webp?v=1759283168"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610883f817dc05fbf7ce6c1b33bcbc43c6bad0ab.webp?v=1759283161","options":["color"],"media":[{"alt":null,"id":26110805409891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610883f817dc05fbf7ce6c1b33bcbc43c6bad0ab.webp?v=1759283161"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/610883f817dc05fbf7ce6c1b33bcbc43c6bad0ab.webp?v=1759283161","width":2000},{"alt":null,"id":26110805573731,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d3825bc5faa186bf441beeb5407cbcf95ff54b.webp?v=1759283162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67d3825bc5faa186bf441beeb5407cbcf95ff54b.webp?v=1759283162","width":2000},{"alt":null,"id":26110805737571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd5e78a47dca24de06cb725d540b8e47622f4cbf.webp?v=1759283162"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd5e78a47dca24de06cb725d540b8e47622f4cbf.webp?v=1759283162","width":2000},{"alt":null,"id":26110805999715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72d18197d712b8a05aa17e8885cbc6227200889e.webp?v=1759283163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/72d18197d712b8a05aa17e8885cbc6227200889e.webp?v=1759283163","width":2000},{"alt":null,"id":26110806229091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5991718a77c17fad83bc6d2deb55641973f9d8a.webp?v=1759283163"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5991718a77c17fad83bc6d2deb55641973f9d8a.webp?v=1759283163","width":2000},{"alt":null,"id":26110806425699,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/222c6c1151acc85eab454985c84187fd92652e3a.webp?v=1759283164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/222c6c1151acc85eab454985c84187fd92652e3a.webp?v=1759283164","width":2000},{"alt":null,"id":26110806622307,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3ec3a5ddff09a97d6a1257e0e79f8c0746887f4.webp?v=1759283164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3ec3a5ddff09a97d6a1257e0e79f8c0746887f4.webp?v=1759283164","width":2000},{"alt":null,"id":26110806753379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d57c96bab3ebc4b053d6c339bc2c67cb8f63176.webp?v=1759283164"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d57c96bab3ebc4b053d6c339bc2c67cb8f63176.webp?v=1759283164","width":2000},{"alt":null,"id":26110806917219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d5f5d38d081ab31152671aa1fe6b78dd9ccae5.webp?v=1759283165"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a2d5f5d38d081ab31152671aa1fe6b78dd9ccae5.webp?v=1759283165","width":2000},{"alt":null,"id":26110807015523,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e979dba78c3d358b42bf5d48872b624a3838a088.webp?v=1759283165"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e979dba78c3d358b42bf5d48872b624a3838a088.webp?v=1759283165","width":2000},{"alt":null,"id":26110807244899,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a2702579c5c20ed2b0d2aa56bc8f2d06a0dc70.webp?v=1759283167"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8a2702579c5c20ed2b0d2aa56bc8f2d06a0dc70.webp?v=1759283167","width":2000},{"alt":null,"id":26110807310435,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8cfd6a7f9faaa70bc760b426a7d8eda41a26562.webp?v=1759283168"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8cfd6a7f9faaa70bc760b426a7d8eda41a26562.webp?v=1759283168","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43754745495651,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":34541039091811,"product_id":7892169031779,"position":5,"created_at":"2025-10-01T09:46:01+08:00","updated_at":"2025-10-01T09:46:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5991718a77c17fad83bc6d2deb55641973f9d8a.webp?v=1759283163","variant_ids":[43754745495651]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 咻咻熊 睡午覺 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-FW60","featured_media":{"alt":null,"id":26110806229091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5991718a77c17fad83bc6d2deb55641973f9d8a.webp?v=1759283163"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754745659491,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":34541039616099,"product_id":7892169031779,"position":8,"created_at":"2025-10-01T09:46:02+08:00","updated_at":"2025-10-01T09:46:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d57c96bab3ebc4b053d6c339bc2c67cb8f63176.webp?v=1759283164","variant_ids":[43754745659491]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 咻咻熊 睡午覺 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-FW60","featured_media":{"alt":null,"id":26110806753379,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d57c96bab3ebc4b053d6c339bc2c67cb8f63176.webp?v=1759283164"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754745725027,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":34541040173155,"product_id":7892169031779,"position":12,"created_at":"2025-10-01T09:46:06+08:00","updated_at":"2025-10-01T09:46:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8cfd6a7f9faaa70bc760b426a7d8eda41a26562.webp?v=1759283168","variant_ids":[43754745725027]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 咻咻熊 睡午覺 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-FW60","featured_media":{"alt":null,"id":26110807310435,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8cfd6a7f9faaa70bc760b426a7d8eda41a26562.webp?v=1759283168"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43754745495651,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-FW60","requires_shipping":true,"taxable":true,"featured_image":{"id":34541039091811,"product_id":7892169031779,"position":5,"created_at":"2025-10-01T09:46:01+08:00","updated_at":"2025-10-01T09:46:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5991718a77c17fad83bc6d2deb55641973f9d8a.webp?v=1759283163","variant_ids":[43754745495651]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 咻咻熊 睡午覺 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-FW60","featured_media":{"alt":null,"id":26110806229091,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5991718a77c17fad83bc6d2deb55641973f9d8a.webp?v=1759283163"}},"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: "停產"
}