$product = {"id":7942094815331,"title":"iPhone 14 Pro Mod NX Nyangsongi 我的靈魂食物","handle":"iphone-14-pro-mod-nx-nya08","description":null,"published_at":"2025-12-23T09:59:11+08:00","created_at":"2025-12-22T12:25:47+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nyangsongi","device-iPhone 14 Pro","merge","reseller-nyangsongi"],"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":43903494226019,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-NYA08","requires_shipping":true,"taxable":true,"featured_image":{"id":34986162028643,"product_id":7942094815331,"position":5,"created_at":"2025-12-22T12:26:22+08:00","updated_at":"2025-12-22T12:26:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6acc6eeaf2f316ae981f240620da353e5ae00e.webp?v=1766377584","variant_ids":[43903494226019]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 我的靈魂食物 - 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-NYA08","featured_media":{"alt":null,"id":26547234603107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6acc6eeaf2f316ae981f240620da353e5ae00e.webp?v=1766377584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903494258787,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-NYA08","requires_shipping":true,"taxable":true,"featured_image":{"id":34986161930339,"product_id":7942094815331,"position":2,"created_at":"2025-12-22T12:26:20+08:00","updated_at":"2025-12-22T12:26:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8906d9a581d40675605b16fbf5832e72e4bc1f70.webp?v=1766377582","variant_ids":[43903494258787]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 我的靈魂食物 - 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-NYA08","featured_media":{"alt":null,"id":26547234504803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8906d9a581d40675605b16fbf5832e72e4bc1f70.webp?v=1766377582"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903494455395,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-NYA08","requires_shipping":true,"taxable":true,"featured_image":{"id":34986162225251,"product_id":7942094815331,"position":11,"created_at":"2025-12-22T12:26:26+08:00","updated_at":"2025-12-22T12:26:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c2be42fdb625490192dbdb2169eb8f39f0d60a.webp?v=1766377588","variant_ids":[43903494455395]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 我的靈魂食物 - 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-NYA08","featured_media":{"alt":null,"id":26547234898019,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c2be42fdb625490192dbdb2169eb8f39f0d60a.webp?v=1766377588"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2f6eae3bb59f56facd7982140329f47f3d83f.webp?v=1766377582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8906d9a581d40675605b16fbf5832e72e4bc1f70.webp?v=1766377582","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e468f6273a84410875511352f00cd0cb7832c64.webp?v=1766377583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cba612b6611456102d8a657fc56650a96994a7e.webp?v=1766377583","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6acc6eeaf2f316ae981f240620da353e5ae00e.webp?v=1766377584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dc041f1ac016a236e5269d17cc1b86d944c9a81.webp?v=1766377584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279b45d903c4adb2b1cbafd36cfd61199dc8d2a5.webp?v=1766377585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9508e9d5a56dd680edbba52b7f71ecbae4a258f5.webp?v=1766377585","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd068340064d5db6d4893cff4999f2b5e378c85.webp?v=1766377586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab85733d1927b15b7189d2ca4389ae205a88ebf.webp?v=1766377586","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c2be42fdb625490192dbdb2169eb8f39f0d60a.webp?v=1766377588"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2f6eae3bb59f56facd7982140329f47f3d83f.webp?v=1766377582","options":["color"],"media":[{"alt":null,"id":26547234472035,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2f6eae3bb59f56facd7982140329f47f3d83f.webp?v=1766377582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/75b2f6eae3bb59f56facd7982140329f47f3d83f.webp?v=1766377582","width":2000},{"alt":null,"id":26547234504803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8906d9a581d40675605b16fbf5832e72e4bc1f70.webp?v=1766377582"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8906d9a581d40675605b16fbf5832e72e4bc1f70.webp?v=1766377582","width":2000},{"alt":null,"id":26547234537571,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e468f6273a84410875511352f00cd0cb7832c64.webp?v=1766377583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e468f6273a84410875511352f00cd0cb7832c64.webp?v=1766377583","width":2000},{"alt":null,"id":26547234570339,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cba612b6611456102d8a657fc56650a96994a7e.webp?v=1766377583"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7cba612b6611456102d8a657fc56650a96994a7e.webp?v=1766377583","width":2000},{"alt":null,"id":26547234603107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6acc6eeaf2f316ae981f240620da353e5ae00e.webp?v=1766377584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6acc6eeaf2f316ae981f240620da353e5ae00e.webp?v=1766377584","width":2000},{"alt":null,"id":26547234635875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dc041f1ac016a236e5269d17cc1b86d944c9a81.webp?v=1766377584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4dc041f1ac016a236e5269d17cc1b86d944c9a81.webp?v=1766377584","width":2000},{"alt":null,"id":26547234668643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279b45d903c4adb2b1cbafd36cfd61199dc8d2a5.webp?v=1766377585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279b45d903c4adb2b1cbafd36cfd61199dc8d2a5.webp?v=1766377585","width":2000},{"alt":null,"id":26547234701411,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9508e9d5a56dd680edbba52b7f71ecbae4a258f5.webp?v=1766377585"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9508e9d5a56dd680edbba52b7f71ecbae4a258f5.webp?v=1766377585","width":2000},{"alt":null,"id":26547234734179,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd068340064d5db6d4893cff4999f2b5e378c85.webp?v=1766377586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bdd068340064d5db6d4893cff4999f2b5e378c85.webp?v=1766377586","width":2000},{"alt":null,"id":26547234766947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab85733d1927b15b7189d2ca4389ae205a88ebf.webp?v=1766377586"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ab85733d1927b15b7189d2ca4389ae205a88ebf.webp?v=1766377586","width":2000},{"alt":null,"id":26547234898019,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c2be42fdb625490192dbdb2169eb8f39f0d60a.webp?v=1766377588"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c2be42fdb625490192dbdb2169eb8f39f0d60a.webp?v=1766377588","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43903494226019,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-NYA08","requires_shipping":true,"taxable":true,"featured_image":{"id":34986162028643,"product_id":7942094815331,"position":5,"created_at":"2025-12-22T12:26:22+08:00","updated_at":"2025-12-22T12:26:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6acc6eeaf2f316ae981f240620da353e5ae00e.webp?v=1766377584","variant_ids":[43903494226019]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 我的靈魂食物 - 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-NYA08","featured_media":{"alt":null,"id":26547234603107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6acc6eeaf2f316ae981f240620da353e5ae00e.webp?v=1766377584"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903494258787,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-NYA08","requires_shipping":true,"taxable":true,"featured_image":{"id":34986161930339,"product_id":7942094815331,"position":2,"created_at":"2025-12-22T12:26:20+08:00","updated_at":"2025-12-22T12:26:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8906d9a581d40675605b16fbf5832e72e4bc1f70.webp?v=1766377582","variant_ids":[43903494258787]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 我的靈魂食物 - 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-NYA08","featured_media":{"alt":null,"id":26547234504803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8906d9a581d40675605b16fbf5832e72e4bc1f70.webp?v=1766377582"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43903494455395,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-NYA08","requires_shipping":true,"taxable":true,"featured_image":{"id":34986162225251,"product_id":7942094815331,"position":11,"created_at":"2025-12-22T12:26:26+08:00","updated_at":"2025-12-22T12:26:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c2be42fdb625490192dbdb2169eb8f39f0d60a.webp?v=1766377588","variant_ids":[43903494455395]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 我的靈魂食物 - 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-NYA08","featured_media":{"alt":null,"id":26547234898019,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0c2be42fdb625490192dbdb2169eb8f39f0d60a.webp?v=1766377588"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43903494226019,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-NYA08","requires_shipping":true,"taxable":true,"featured_image":{"id":34986162028643,"product_id":7942094815331,"position":5,"created_at":"2025-12-22T12:26:22+08:00","updated_at":"2025-12-22T12:26:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6acc6eeaf2f316ae981f240620da353e5ae00e.webp?v=1766377584","variant_ids":[43903494226019]},"available":true,"name":"iPhone 14 Pro Mod NX Nyangsongi 我的靈魂食物 - 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-NYA08","featured_media":{"alt":null,"id":26547234603107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6acc6eeaf2f316ae981f240620da353e5ae00e.webp?v=1766377584"}},"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: "停產"
}