$product = {"id":7888609411171,"title":"iPhone 14 Pro Mod NX 餃貓FAMILY LAZY DAY","handle":"iphone-14-pro-mod-nx-printable-dm02","description":null,"published_at":"2025-09-23T09:03:49+08:00","created_at":"2025-09-22T16:49:38+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":43743749111907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515714736227,"product_id":7888609411171,"position":11,"created_at":"2025-09-22T16:49:47+08:00","updated_at":"2025-09-22T16:49:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c78a7592eb3396e2427a51b6970e6fad8ea300.webp?v=1758530988","variant_ids":[43743749111907]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086152306787,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c78a7592eb3396e2427a51b6970e6fad8ea300.webp?v=1758530988"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743749144675,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515713523811,"product_id":7888609411171,"position":6,"created_at":"2025-09-22T16:49:44+08:00","updated_at":"2025-09-22T16:49:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8843a928b96c2d5f895fcb01a05bb7fa1060cfd5.webp?v=1758530986","variant_ids":[43743749144675]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086151389283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8843a928b96c2d5f895fcb01a05bb7fa1060cfd5.webp?v=1758530986"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743749210211,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515712114787,"product_id":7888609411171,"position":2,"created_at":"2025-09-22T16:49:42+08:00","updated_at":"2025-09-22T16:49:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccc6b865f0deac5a691397dc2a8ff3e6bbfbe0f.webp?v=1758530984","variant_ids":[43743749210211]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086149685347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccc6b865f0deac5a691397dc2a8ff3e6bbfbe0f.webp?v=1758530984"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5433fc740d9da616601acd6960cb9fd67651038.webp?v=1758530984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccc6b865f0deac5a691397dc2a8ff3e6bbfbe0f.webp?v=1758530984","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22ec5120052d79b9b6002d1674193a33e95136a.webp?v=1758530985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fb2e9f8991569bac259f9f6c9d478ebfd1ee28.webp?v=1758530985","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbde8480447470c2b582b637dfe017c67d46021f.webp?v=1758530986","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8843a928b96c2d5f895fcb01a05bb7fa1060cfd5.webp?v=1758530986","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebfdcc4b2cf529e8cfb049dea2909d4c8ef8457.webp?v=1758530987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c142c06c456a346087b7587ec569f3759373d31.webp?v=1758530987","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f27541033b29830e30431a15eca4c7cfc94a09.webp?v=1758530988","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6601edbaff980214034f6e11f70036ba61633f16.webp?v=1758530988","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c78a7592eb3396e2427a51b6970e6fad8ea300.webp?v=1758530988","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8086ad870977f99bff27c61f99ee9b71bbb4bae2.webp?v=1758530989"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5433fc740d9da616601acd6960cb9fd67651038.webp?v=1758530984","options":["color"],"media":[{"alt":null,"id":26086149259363,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5433fc740d9da616601acd6960cb9fd67651038.webp?v=1758530984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5433fc740d9da616601acd6960cb9fd67651038.webp?v=1758530984","width":2000},{"alt":null,"id":26086149685347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccc6b865f0deac5a691397dc2a8ff3e6bbfbe0f.webp?v=1758530984"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccc6b865f0deac5a691397dc2a8ff3e6bbfbe0f.webp?v=1758530984","width":2000},{"alt":null,"id":26086150078563,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22ec5120052d79b9b6002d1674193a33e95136a.webp?v=1758530985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a22ec5120052d79b9b6002d1674193a33e95136a.webp?v=1758530985","width":2000},{"alt":null,"id":26086150439011,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fb2e9f8991569bac259f9f6c9d478ebfd1ee28.webp?v=1758530985"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/00fb2e9f8991569bac259f9f6c9d478ebfd1ee28.webp?v=1758530985","width":2000},{"alt":null,"id":26086151094371,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbde8480447470c2b582b637dfe017c67d46021f.webp?v=1758530986"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dbde8480447470c2b582b637dfe017c67d46021f.webp?v=1758530986","width":2000},{"alt":null,"id":26086151389283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8843a928b96c2d5f895fcb01a05bb7fa1060cfd5.webp?v=1758530986"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8843a928b96c2d5f895fcb01a05bb7fa1060cfd5.webp?v=1758530986","width":2000},{"alt":null,"id":26086151618659,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebfdcc4b2cf529e8cfb049dea2909d4c8ef8457.webp?v=1758530987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ebfdcc4b2cf529e8cfb049dea2909d4c8ef8457.webp?v=1758530987","width":2000},{"alt":null,"id":26086151848035,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c142c06c456a346087b7587ec569f3759373d31.webp?v=1758530987"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c142c06c456a346087b7587ec569f3759373d31.webp?v=1758530987","width":2000},{"alt":null,"id":26086152044643,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f27541033b29830e30431a15eca4c7cfc94a09.webp?v=1758530988"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0f27541033b29830e30431a15eca4c7cfc94a09.webp?v=1758530988","width":2000},{"alt":null,"id":26086152175715,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6601edbaff980214034f6e11f70036ba61633f16.webp?v=1758530988"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6601edbaff980214034f6e11f70036ba61633f16.webp?v=1758530988","width":2000},{"alt":null,"id":26086152306787,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c78a7592eb3396e2427a51b6970e6fad8ea300.webp?v=1758530988"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c78a7592eb3396e2427a51b6970e6fad8ea300.webp?v=1758530988","width":2000},{"alt":null,"id":26086152437859,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8086ad870977f99bff27c61f99ee9b71bbb4bae2.webp?v=1758530989"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8086ad870977f99bff27c61f99ee9b71bbb4bae2.webp?v=1758530989","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43743749111907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515714736227,"product_id":7888609411171,"position":11,"created_at":"2025-09-22T16:49:47+08:00","updated_at":"2025-09-22T16:49:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c78a7592eb3396e2427a51b6970e6fad8ea300.webp?v=1758530988","variant_ids":[43743749111907]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086152306787,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c78a7592eb3396e2427a51b6970e6fad8ea300.webp?v=1758530988"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743749144675,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515713523811,"product_id":7888609411171,"position":6,"created_at":"2025-09-22T16:49:44+08:00","updated_at":"2025-09-22T16:49:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8843a928b96c2d5f895fcb01a05bb7fa1060cfd5.webp?v=1758530986","variant_ids":[43743749144675]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086151389283,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8843a928b96c2d5f895fcb01a05bb7fa1060cfd5.webp?v=1758530986"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743749210211,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515712114787,"product_id":7888609411171,"position":2,"created_at":"2025-09-22T16:49:42+08:00","updated_at":"2025-09-22T16:49:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccc6b865f0deac5a691397dc2a8ff3e6bbfbe0f.webp?v=1758530984","variant_ids":[43743749210211]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086149685347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ccc6b865f0deac5a691397dc2a8ff3e6bbfbe0f.webp?v=1758530984"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43743749111907,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-DM02","requires_shipping":true,"taxable":true,"featured_image":{"id":34515714736227,"product_id":7888609411171,"position":11,"created_at":"2025-09-22T16:49:47+08:00","updated_at":"2025-09-22T16:49:48+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c78a7592eb3396e2427a51b6970e6fad8ea300.webp?v=1758530988","variant_ids":[43743749111907]},"available":true,"name":"iPhone 14 Pro Mod NX 餃貓FAMILY LAZY DAY - 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-DM02","featured_media":{"alt":null,"id":26086152306787,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0c78a7592eb3396e2427a51b6970e6fad8ea300.webp?v=1758530988"}},"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: "停產"
}