$product = {"id":7888643752035,"title":"iPhone 14 Pro Mod NX 餃貓FAMILY 餃貓 KUNG FU","handle":"iphone-14-pro-mod-nx-printable-dm05","description":null,"published_at":"2025-09-23T08:59:41+08:00","created_at":"2025-09-22T16:57:00+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-dumplingcat","device-iPhone 14 Pro","merge","reseller-dumplingcat"],"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":43743891095651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515874775139,"product_id":7888643752035,"position":12,"created_at":"2025-09-22T16:57:09+08:00","updated_at":"2025-09-22T16:57:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9a9470dcc28a471388237e5984290d9de2c1a2.webp?v=1758531431","variant_ids":[43743891095651]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086312345699,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9a9470dcc28a471388237e5984290d9de2c1a2.webp?v=1758531431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743891128419,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515874152547,"product_id":7888643752035,"position":8,"created_at":"2025-09-22T16:57:07+08:00","updated_at":"2025-09-22T16:57:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22ed785e8f5ee286c7d424c2f93d3bc99dc7c5e.webp?v=1758531429","variant_ids":[43743891128419]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086311723107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22ed785e8f5ee286c7d424c2f93d3bc99dc7c5e.webp?v=1758531429"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743891193955,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515871924323,"product_id":7888643752035,"position":1,"created_at":"2025-09-22T16:57:04+08:00","updated_at":"2025-09-22T16:57:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1444df4d3fbc3168a0ac39e1cf3ef64c7a7c0435.webp?v=1758531426","variant_ids":[43743891193955]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086309593187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1444df4d3fbc3168a0ac39e1cf3ef64c7a7c0435.webp?v=1758531426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1444df4d3fbc3168a0ac39e1cf3ef64c7a7c0435.webp?v=1758531426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa46862e3245e579638d9a033b484966e666694.webp?v=1758531426","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/882bcaed5409318f77bf28dace0f515578708f74.webp?v=1758531427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f406d58902df4d4451ca5f5c82986109dc89f34.webp?v=1758531427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0d772d342268eb19ee3a2cce50c8d50c36a367.webp?v=1758531428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02fd29ef3d84e9c0d262cf85e34a9890b454c51f.webp?v=1758531428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1994228e5f493178c97ffda4608be2062801026.webp?v=1758531428","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22ed785e8f5ee286c7d424c2f93d3bc99dc7c5e.webp?v=1758531429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b12056e91f2403da88fc155e586cad40d7710641.webp?v=1758531429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9d404951411fc258b26e065da4c2184df7cb243.webp?v=1758531430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf5dbcaed4af3962aa45999bb6a5fb96485756e.webp?v=1758531430","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9a9470dcc28a471388237e5984290d9de2c1a2.webp?v=1758531431"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1444df4d3fbc3168a0ac39e1cf3ef64c7a7c0435.webp?v=1758531426","options":["color"],"media":[{"alt":null,"id":26086309593187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1444df4d3fbc3168a0ac39e1cf3ef64c7a7c0435.webp?v=1758531426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1444df4d3fbc3168a0ac39e1cf3ef64c7a7c0435.webp?v=1758531426","width":2000},{"alt":null,"id":26086309986403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa46862e3245e579638d9a033b484966e666694.webp?v=1758531426"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3aa46862e3245e579638d9a033b484966e666694.webp?v=1758531426","width":2000},{"alt":null,"id":26086310281315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/882bcaed5409318f77bf28dace0f515578708f74.webp?v=1758531427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/882bcaed5409318f77bf28dace0f515578708f74.webp?v=1758531427","width":2000},{"alt":null,"id":26086310576227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f406d58902df4d4451ca5f5c82986109dc89f34.webp?v=1758531427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f406d58902df4d4451ca5f5c82986109dc89f34.webp?v=1758531427","width":2000},{"alt":null,"id":26086310903907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0d772d342268eb19ee3a2cce50c8d50c36a367.webp?v=1758531428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff0d772d342268eb19ee3a2cce50c8d50c36a367.webp?v=1758531428","width":2000},{"alt":null,"id":26086311198819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02fd29ef3d84e9c0d262cf85e34a9890b454c51f.webp?v=1758531428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02fd29ef3d84e9c0d262cf85e34a9890b454c51f.webp?v=1758531428","width":2000},{"alt":null,"id":26086311428195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1994228e5f493178c97ffda4608be2062801026.webp?v=1758531428"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1994228e5f493178c97ffda4608be2062801026.webp?v=1758531428","width":2000},{"alt":null,"id":26086311723107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22ed785e8f5ee286c7d424c2f93d3bc99dc7c5e.webp?v=1758531429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22ed785e8f5ee286c7d424c2f93d3bc99dc7c5e.webp?v=1758531429","width":2000},{"alt":null,"id":26086311886947,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b12056e91f2403da88fc155e586cad40d7710641.webp?v=1758531429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b12056e91f2403da88fc155e586cad40d7710641.webp?v=1758531429","width":2000},{"alt":null,"id":26086312050787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9d404951411fc258b26e065da4c2184df7cb243.webp?v=1758531430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9d404951411fc258b26e065da4c2184df7cb243.webp?v=1758531430","width":2000},{"alt":null,"id":26086312280163,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf5dbcaed4af3962aa45999bb6a5fb96485756e.webp?v=1758531430"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cf5dbcaed4af3962aa45999bb6a5fb96485756e.webp?v=1758531430","width":2000},{"alt":null,"id":26086312345699,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9a9470dcc28a471388237e5984290d9de2c1a2.webp?v=1758531431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9a9470dcc28a471388237e5984290d9de2c1a2.webp?v=1758531431","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43743891095651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515874775139,"product_id":7888643752035,"position":12,"created_at":"2025-09-22T16:57:09+08:00","updated_at":"2025-09-22T16:57:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9a9470dcc28a471388237e5984290d9de2c1a2.webp?v=1758531431","variant_ids":[43743891095651]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086312345699,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9a9470dcc28a471388237e5984290d9de2c1a2.webp?v=1758531431"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743891128419,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515874152547,"product_id":7888643752035,"position":8,"created_at":"2025-09-22T16:57:07+08:00","updated_at":"2025-09-22T16:57:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22ed785e8f5ee286c7d424c2f93d3bc99dc7c5e.webp?v=1758531429","variant_ids":[43743891128419]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086311723107,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f22ed785e8f5ee286c7d424c2f93d3bc99dc7c5e.webp?v=1758531429"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743891193955,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515871924323,"product_id":7888643752035,"position":1,"created_at":"2025-09-22T16:57:04+08:00","updated_at":"2025-09-22T16:57:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1444df4d3fbc3168a0ac39e1cf3ef64c7a7c0435.webp?v=1758531426","variant_ids":[43743891193955]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086309593187,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1444df4d3fbc3168a0ac39e1cf3ef64c7a7c0435.webp?v=1758531426"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43743891095651,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515874775139,"product_id":7888643752035,"position":12,"created_at":"2025-09-22T16:57:09+08:00","updated_at":"2025-09-22T16:57:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9a9470dcc28a471388237e5984290d9de2c1a2.webp?v=1758531431","variant_ids":[43743891095651]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086312345699,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca9a9470dcc28a471388237e5984290d9de2c1a2.webp?v=1758531431"}},"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: "停產"
}