$product = {"id":7892121059427,"title":"iPhone 14 Plus Mod NX 咻咻熊 Always With You","handle":"iphone-14-plus-mod-nx-printable-fw59","description":null,"published_at":"2025-10-01T12:20:42+08:00","created_at":"2025-10-01T09:36:04+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiuxiubear","device-iPhone 14 Plus","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":43754565927011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FW59","requires_shipping":true,"taxable":true,"featured_image":{"id":34540845400163,"product_id":7892121059427,"position":4,"created_at":"2025-10-01T09:36:10+08:00","updated_at":"2025-10-01T09:36:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fbaad5a5ca07105c89f535a95beeaf329fae8ae.webp?v=1759282573","variant_ids":[43754565927011]},"available":true,"name":"iPhone 14 Plus Mod NX 咻咻熊 Always With You - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-FW59","featured_media":{"alt":null,"id":26110612537443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fbaad5a5ca07105c89f535a95beeaf329fae8ae.webp?v=1759282573"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7543baa07487b9e2920e1a3fbf4054c5154d5a4.webp?v=1759282571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f997d2ebb9a0a3d6022191172a6e8e311b790da4.webp?v=1759282572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00122b9e432498e26a0b9fae553f3a2c54b425dc.webp?v=1759282572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fbaad5a5ca07105c89f535a95beeaf329fae8ae.webp?v=1759282573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e54fb1a3cefa8f4168249af88eac2df57b5e7230.webp?v=1759282573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fde7c35cd3c72f1e6f90d1465b1d0c487493edcb.webp?v=1759282574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ccaf95e197e5c2092f2f73e456cf817f89e0db.webp?v=1759282574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038c1a0d8300311354c49f64c71c7bb38054557a.webp?v=1759282575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfeb2721674d3bc9422e274abeb3b0d6098dcaed.webp?v=1759282575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84f4101d94ad6a5cf527e9415d0f8b59b5a83d99.webp?v=1759282576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fe5b46f007f2d2bc5925b1f1cd021417a5f7052.webp?v=1759282576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62dad7cb67856458c43d2a17e35b038ab44c15f8.webp?v=1759282576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b2f482399e02d466c2059dcd7c56f87ec9b07a.webp?v=1759282577"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7543baa07487b9e2920e1a3fbf4054c5154d5a4.webp?v=1759282571","options":["color"],"media":[{"alt":null,"id":26110611685475,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7543baa07487b9e2920e1a3fbf4054c5154d5a4.webp?v=1759282571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e7543baa07487b9e2920e1a3fbf4054c5154d5a4.webp?v=1759282571","width":2000},{"alt":null,"id":26110612013155,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f997d2ebb9a0a3d6022191172a6e8e311b790da4.webp?v=1759282572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f997d2ebb9a0a3d6022191172a6e8e311b790da4.webp?v=1759282572","width":2000},{"alt":null,"id":26110612242531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00122b9e432498e26a0b9fae553f3a2c54b425dc.webp?v=1759282572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00122b9e432498e26a0b9fae553f3a2c54b425dc.webp?v=1759282572","width":2000},{"alt":null,"id":26110612537443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fbaad5a5ca07105c89f535a95beeaf329fae8ae.webp?v=1759282573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fbaad5a5ca07105c89f535a95beeaf329fae8ae.webp?v=1759282573","width":2000},{"alt":null,"id":26110612766819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e54fb1a3cefa8f4168249af88eac2df57b5e7230.webp?v=1759282573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e54fb1a3cefa8f4168249af88eac2df57b5e7230.webp?v=1759282573","width":2000},{"alt":null,"id":26110612963427,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fde7c35cd3c72f1e6f90d1465b1d0c487493edcb.webp?v=1759282574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fde7c35cd3c72f1e6f90d1465b1d0c487493edcb.webp?v=1759282574","width":2000},{"alt":null,"id":26110613127267,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ccaf95e197e5c2092f2f73e456cf817f89e0db.webp?v=1759282574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2ccaf95e197e5c2092f2f73e456cf817f89e0db.webp?v=1759282574","width":2000},{"alt":null,"id":26110613323875,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038c1a0d8300311354c49f64c71c7bb38054557a.webp?v=1759282575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/038c1a0d8300311354c49f64c71c7bb38054557a.webp?v=1759282575","width":2000},{"alt":null,"id":26110613487715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfeb2721674d3bc9422e274abeb3b0d6098dcaed.webp?v=1759282575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfeb2721674d3bc9422e274abeb3b0d6098dcaed.webp?v=1759282575","width":2000},{"alt":null,"id":26110613684323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84f4101d94ad6a5cf527e9415d0f8b59b5a83d99.webp?v=1759282576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/84f4101d94ad6a5cf527e9415d0f8b59b5a83d99.webp?v=1759282576","width":2000},{"alt":null,"id":26110613880931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fe5b46f007f2d2bc5925b1f1cd021417a5f7052.webp?v=1759282576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fe5b46f007f2d2bc5925b1f1cd021417a5f7052.webp?v=1759282576","width":2000},{"alt":null,"id":26110614044771,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62dad7cb67856458c43d2a17e35b038ab44c15f8.webp?v=1759282576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/62dad7cb67856458c43d2a17e35b038ab44c15f8.webp?v=1759282576","width":2000},{"alt":null,"id":26110614241379,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b2f482399e02d466c2059dcd7c56f87ec9b07a.webp?v=1759282577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8b2f482399e02d466c2059dcd7c56f87ec9b07a.webp?v=1759282577","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43754565927011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FW59","requires_shipping":true,"taxable":true,"featured_image":{"id":34540845400163,"product_id":7892121059427,"position":4,"created_at":"2025-10-01T09:36:10+08:00","updated_at":"2025-10-01T09:36:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fbaad5a5ca07105c89f535a95beeaf329fae8ae.webp?v=1759282573","variant_ids":[43754565927011]},"available":true,"name":"iPhone 14 Plus Mod NX 咻咻熊 Always With You - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-FW59","featured_media":{"alt":null,"id":26110612537443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fbaad5a5ca07105c89f535a95beeaf329fae8ae.webp?v=1759282573"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43754565927011,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-FW59","requires_shipping":true,"taxable":true,"featured_image":{"id":34540845400163,"product_id":7892121059427,"position":4,"created_at":"2025-10-01T09:36:10+08:00","updated_at":"2025-10-01T09:36:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fbaad5a5ca07105c89f535a95beeaf329fae8ae.webp?v=1759282573","variant_ids":[43754565927011]},"available":true,"name":"iPhone 14 Plus Mod NX 咻咻熊 Always With You - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0126124-FW59","featured_media":{"alt":null,"id":26110612537443,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fbaad5a5ca07105c89f535a95beeaf329fae8ae.webp?v=1759282573"}},"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: "停產"
}