$product = {"id":7892164182115,"title":"iPhone 14 Pro Mod NX 咻咻熊 熊泥抱抱","handle":"iphone-14-pro-mod-nx-printable-fw54","description":null,"published_at":"2025-10-01T12:10:07+08:00","created_at":"2025-10-01T09:44:54+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":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":43754726588515,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW54","requires_shipping":true,"taxable":true,"featured_image":{"id":34541018873955,"product_id":7892164182115,"position":6,"created_at":"2025-10-01T09:45:00+08:00","updated_at":"2025-10-01T09:45:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03951fd9acdb3c71ea81204c50ec6ce5c6b3cac3.webp?v=1759283103","variant_ids":[43754726588515]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 熊泥抱抱 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-FW54","featured_media":{"alt":null,"id":26110786011235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03951fd9acdb3c71ea81204c50ec6ce5c6b3cac3.webp?v=1759283103"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754726752355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-FW54","requires_shipping":true,"taxable":true,"featured_image":{"id":34541019267171,"product_id":7892164182115,"position":10,"created_at":"2025-10-01T09:45:03+08:00","updated_at":"2025-10-01T09:45:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13b72f2db17c8bd86058a44f82f609a552e23f40.webp?v=1759283106","variant_ids":[43754726752355]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 熊泥抱抱 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-FW54","featured_media":{"alt":null,"id":26110786404451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13b72f2db17c8bd86058a44f82f609a552e23f40.webp?v=1759283106"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754726817891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-FW54","requires_shipping":true,"taxable":true,"featured_image":{"id":34541019463779,"product_id":7892164182115,"position":11,"created_at":"2025-10-01T09:45:04+08:00","updated_at":"2025-10-01T09:45:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342c348234dd315457ddf80d4b4f536cc2e155ed.webp?v=1759283106","variant_ids":[43754726817891]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 熊泥抱抱 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-FW54","featured_media":{"alt":null,"id":26110786601059,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342c348234dd315457ddf80d4b4f536cc2e155ed.webp?v=1759283106"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5cdf6db13fec4608568569804f9f0e04153032.webp?v=1759283099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcca38a34511bd997ac782e7d6d41704f8ed2ef3.webp?v=1759283100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737290a78e90be76a8e5fb7c45dbd41a91aa6cd1.webp?v=1759283100","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f276fdc3f63c5d8ad8c1ee28c139c4e0ef723c9.webp?v=1759283101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88f2abb74333704fe7c2894af83f8db34ac447e7.webp?v=1759283102","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03951fd9acdb3c71ea81204c50ec6ce5c6b3cac3.webp?v=1759283103","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fbd2e114bc68675590ac7d35e3b314347dbade.webp?v=1759283104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7923bea8b7a6928ce31c69c40caa6e0897353306.webp?v=1759283104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9889ce846b31697865247ae907ec3bf445031b3.webp?v=1759283104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13b72f2db17c8bd86058a44f82f609a552e23f40.webp?v=1759283106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342c348234dd315457ddf80d4b4f536cc2e155ed.webp?v=1759283106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd327cb0c5b73b449225ffc49299d516b369f9f1.webp?v=1759283106"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5cdf6db13fec4608568569804f9f0e04153032.webp?v=1759283099","options":["color"],"media":[{"alt":null,"id":26110785028195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5cdf6db13fec4608568569804f9f0e04153032.webp?v=1759283099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5cdf6db13fec4608568569804f9f0e04153032.webp?v=1759283099","width":2000},{"alt":null,"id":26110785323107,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcca38a34511bd997ac782e7d6d41704f8ed2ef3.webp?v=1759283100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bcca38a34511bd997ac782e7d6d41704f8ed2ef3.webp?v=1759283100","width":2000},{"alt":null,"id":26110785519715,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737290a78e90be76a8e5fb7c45dbd41a91aa6cd1.webp?v=1759283100"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737290a78e90be76a8e5fb7c45dbd41a91aa6cd1.webp?v=1759283100","width":2000},{"alt":null,"id":26110785650787,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f276fdc3f63c5d8ad8c1ee28c139c4e0ef723c9.webp?v=1759283101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f276fdc3f63c5d8ad8c1ee28c139c4e0ef723c9.webp?v=1759283101","width":2000},{"alt":null,"id":26110785814627,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88f2abb74333704fe7c2894af83f8db34ac447e7.webp?v=1759283102"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/88f2abb74333704fe7c2894af83f8db34ac447e7.webp?v=1759283102","width":2000},{"alt":null,"id":26110786011235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03951fd9acdb3c71ea81204c50ec6ce5c6b3cac3.webp?v=1759283103"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03951fd9acdb3c71ea81204c50ec6ce5c6b3cac3.webp?v=1759283103","width":2000},{"alt":null,"id":26110786109539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fbd2e114bc68675590ac7d35e3b314347dbade.webp?v=1759283104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09fbd2e114bc68675590ac7d35e3b314347dbade.webp?v=1759283104","width":2000},{"alt":null,"id":26110786240611,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7923bea8b7a6928ce31c69c40caa6e0897353306.webp?v=1759283104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7923bea8b7a6928ce31c69c40caa6e0897353306.webp?v=1759283104","width":2000},{"alt":null,"id":26110786306147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9889ce846b31697865247ae907ec3bf445031b3.webp?v=1759283104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9889ce846b31697865247ae907ec3bf445031b3.webp?v=1759283104","width":2000},{"alt":null,"id":26110786404451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13b72f2db17c8bd86058a44f82f609a552e23f40.webp?v=1759283106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13b72f2db17c8bd86058a44f82f609a552e23f40.webp?v=1759283106","width":2000},{"alt":null,"id":26110786601059,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342c348234dd315457ddf80d4b4f536cc2e155ed.webp?v=1759283106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342c348234dd315457ddf80d4b4f536cc2e155ed.webp?v=1759283106","width":2000},{"alt":null,"id":26110786797667,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd327cb0c5b73b449225ffc49299d516b369f9f1.webp?v=1759283106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd327cb0c5b73b449225ffc49299d516b369f9f1.webp?v=1759283106","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43754726588515,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW54","requires_shipping":true,"taxable":true,"featured_image":{"id":34541018873955,"product_id":7892164182115,"position":6,"created_at":"2025-10-01T09:45:00+08:00","updated_at":"2025-10-01T09:45:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03951fd9acdb3c71ea81204c50ec6ce5c6b3cac3.webp?v=1759283103","variant_ids":[43754726588515]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 熊泥抱抱 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-FW54","featured_media":{"alt":null,"id":26110786011235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03951fd9acdb3c71ea81204c50ec6ce5c6b3cac3.webp?v=1759283103"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754726752355,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-FW54","requires_shipping":true,"taxable":true,"featured_image":{"id":34541019267171,"product_id":7892164182115,"position":10,"created_at":"2025-10-01T09:45:03+08:00","updated_at":"2025-10-01T09:45:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13b72f2db17c8bd86058a44f82f609a552e23f40.webp?v=1759283106","variant_ids":[43754726752355]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 熊泥抱抱 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126224-FW54","featured_media":{"alt":null,"id":26110786404451,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13b72f2db17c8bd86058a44f82f609a552e23f40.webp?v=1759283106"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43754726817891,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-FW54","requires_shipping":true,"taxable":true,"featured_image":{"id":34541019463779,"product_id":7892164182115,"position":11,"created_at":"2025-10-01T09:45:04+08:00","updated_at":"2025-10-01T09:45:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342c348234dd315457ddf80d4b4f536cc2e155ed.webp?v=1759283106","variant_ids":[43754726817891]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 熊泥抱抱 - White","public_title":"White","options":["White"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126204-FW54","featured_media":{"alt":null,"id":26110786601059,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/342c348234dd315457ddf80d4b4f536cc2e155ed.webp?v=1759283106"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43754726588515,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-FW54","requires_shipping":true,"taxable":true,"featured_image":{"id":34541018873955,"product_id":7892164182115,"position":6,"created_at":"2025-10-01T09:45:00+08:00","updated_at":"2025-10-01T09:45:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03951fd9acdb3c71ea81204c50ec6ce5c6b3cac3.webp?v=1759283103","variant_ids":[43754726588515]},"available":true,"name":"iPhone 14 Pro Mod NX 咻咻熊 熊泥抱抱 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01262J5-FW54","featured_media":{"alt":null,"id":26110786011235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03951fd9acdb3c71ea81204c50ec6ce5c6b3cac3.webp?v=1759283103"}},"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: "停產"
}