$product = {"id":7888640704611,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓 KUNG FU","handle":"iphone-14-pro-mod-nx-magsafe-printable-dm05","description":null,"published_at":"2025-09-23T09:00:00+08:00","created_at":"2025-09-22T16:56:20+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":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":43743878873187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515859996771,"product_id":7888640704611,"position":9,"created_at":"2025-09-22T16:56:29+08:00","updated_at":"2025-09-22T16:56:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbd4220455c5e4db17522d6c28f356bb4c9027a4.webp?v=1758531391","variant_ids":[43743878873187]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086297862243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbd4220455c5e4db17522d6c28f356bb4c9027a4.webp?v=1758531391"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743878905955,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515859800163,"product_id":7888640704611,"position":7,"created_at":"2025-09-22T16:56:28+08:00","updated_at":"2025-09-22T16:56:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a84fa1a003f9c8a686583c53401362fb0c05431.webp?v=1758531389","variant_ids":[43743878905955]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086297534563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a84fa1a003f9c8a686583c53401362fb0c05431.webp?v=1758531389"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743878971491,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515860062307,"product_id":7888640704611,"position":10,"created_at":"2025-09-22T16:56:29+08:00","updated_at":"2025-09-22T16:56:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac4b4813ac8d25f4616327057fd97fe058c6b90.webp?v=1758531391","variant_ids":[43743878971491]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086297927779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac4b4813ac8d25f4616327057fd97fe058c6b90.webp?v=1758531391"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943b543fe8c30c8663de09effde9194d70529acf.webp?v=1758531386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3216e6f11332d684b59fb8d09d566fa3a186eeca.webp?v=1758531387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f8ba904ac73eaeb518a76cd4e2da26424efb224.webp?v=1758531387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aceac4761756850d18ca25ceb68615da0ec7d319.webp?v=1758531388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8393641e516b1b40baf673039e3bd4cd88570051.webp?v=1758531388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d18faf9b52fb0e4a3a3cd5c47919a935c5b1388.webp?v=1758531389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a84fa1a003f9c8a686583c53401362fb0c05431.webp?v=1758531389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a5bffd2ce6c4ce6c25d444dd52f4a8380d737a.webp?v=1758531390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbd4220455c5e4db17522d6c28f356bb4c9027a4.webp?v=1758531391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac4b4813ac8d25f4616327057fd97fe058c6b90.webp?v=1758531391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc50efb5670ea45cbd60d39a94c44b2a8352c747.webp?v=1758531392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c728e61fcdef14b85d17ab0383416fd42beea.webp?v=1758531392"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943b543fe8c30c8663de09effde9194d70529acf.webp?v=1758531386","options":["color"],"media":[{"alt":null,"id":26086296223843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943b543fe8c30c8663de09effde9194d70529acf.webp?v=1758531386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/943b543fe8c30c8663de09effde9194d70529acf.webp?v=1758531386","width":2000},{"alt":null,"id":26086296485987,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3216e6f11332d684b59fb8d09d566fa3a186eeca.webp?v=1758531387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3216e6f11332d684b59fb8d09d566fa3a186eeca.webp?v=1758531387","width":2000},{"alt":null,"id":26086296780899,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f8ba904ac73eaeb518a76cd4e2da26424efb224.webp?v=1758531387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2f8ba904ac73eaeb518a76cd4e2da26424efb224.webp?v=1758531387","width":2000},{"alt":null,"id":26086296977507,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aceac4761756850d18ca25ceb68615da0ec7d319.webp?v=1758531388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aceac4761756850d18ca25ceb68615da0ec7d319.webp?v=1758531388","width":2000},{"alt":null,"id":26086297108579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8393641e516b1b40baf673039e3bd4cd88570051.webp?v=1758531388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8393641e516b1b40baf673039e3bd4cd88570051.webp?v=1758531388","width":2000},{"alt":null,"id":26086297272419,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d18faf9b52fb0e4a3a3cd5c47919a935c5b1388.webp?v=1758531389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4d18faf9b52fb0e4a3a3cd5c47919a935c5b1388.webp?v=1758531389","width":2000},{"alt":null,"id":26086297534563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a84fa1a003f9c8a686583c53401362fb0c05431.webp?v=1758531389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a84fa1a003f9c8a686583c53401362fb0c05431.webp?v=1758531389","width":2000},{"alt":null,"id":26086297763939,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a5bffd2ce6c4ce6c25d444dd52f4a8380d737a.webp?v=1758531390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70a5bffd2ce6c4ce6c25d444dd52f4a8380d737a.webp?v=1758531390","width":2000},{"alt":null,"id":26086297862243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbd4220455c5e4db17522d6c28f356bb4c9027a4.webp?v=1758531391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbd4220455c5e4db17522d6c28f356bb4c9027a4.webp?v=1758531391","width":2000},{"alt":null,"id":26086297927779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac4b4813ac8d25f4616327057fd97fe058c6b90.webp?v=1758531391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac4b4813ac8d25f4616327057fd97fe058c6b90.webp?v=1758531391","width":2000},{"alt":null,"id":26086298058851,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc50efb5670ea45cbd60d39a94c44b2a8352c747.webp?v=1758531392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc50efb5670ea45cbd60d39a94c44b2a8352c747.webp?v=1758531392","width":2000},{"alt":null,"id":26086298288227,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c728e61fcdef14b85d17ab0383416fd42beea.webp?v=1758531392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/773c728e61fcdef14b85d17ab0383416fd42beea.webp?v=1758531392","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43743878873187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515859996771,"product_id":7888640704611,"position":9,"created_at":"2025-09-22T16:56:29+08:00","updated_at":"2025-09-22T16:56:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbd4220455c5e4db17522d6c28f356bb4c9027a4.webp?v=1758531391","variant_ids":[43743878873187]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086297862243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbd4220455c5e4db17522d6c28f356bb4c9027a4.webp?v=1758531391"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743878905955,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515859800163,"product_id":7888640704611,"position":7,"created_at":"2025-09-22T16:56:28+08:00","updated_at":"2025-09-22T16:56:29+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a84fa1a003f9c8a686583c53401362fb0c05431.webp?v=1758531389","variant_ids":[43743878905955]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086297534563,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a84fa1a003f9c8a686583c53401362fb0c05431.webp?v=1758531389"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743878971491,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515860062307,"product_id":7888640704611,"position":10,"created_at":"2025-09-22T16:56:29+08:00","updated_at":"2025-09-22T16:56:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac4b4813ac8d25f4616327057fd97fe058c6b90.webp?v=1758531391","variant_ids":[43743878971491]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086297927779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ac4b4813ac8d25f4616327057fd97fe058c6b90.webp?v=1758531391"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43743878873187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-DM05","requires_shipping":true,"taxable":true,"featured_image":{"id":34515859996771,"product_id":7888640704611,"position":9,"created_at":"2025-09-22T16:56:29+08:00","updated_at":"2025-09-22T16:56:31+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbd4220455c5e4db17522d6c28f356bb4c9027a4.webp?v=1758531391","variant_ids":[43743878873187]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 餃貓FAMILY 餃貓 KUNG FU - 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-DM05","featured_media":{"alt":null,"id":26086297862243,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbd4220455c5e4db17522d6c28f356bb4c9027a4.webp?v=1758531391"}},"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: "停產"
}