$product = {"id":7942085345379,"title":"iPhone 14 Plus Mod NX Nyangsongi 我的靈魂食物","handle":"iphone-14-plus-mod-nx-nya08","description":null,"published_at":"2025-12-23T10:00:48+08:00","created_at":"2025-12-22T12:12:05+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-nyangsongi","device-iPhone 14 Plus","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":43903437635683,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-NYA08","requires_shipping":true,"taxable":true,"featured_image":{"id":34986094035043,"product_id":7942085345379,"position":12,"created_at":"2025-12-22T12:12:51+08:00","updated_at":"2025-12-22T12:12:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e081bcec6dee6d25cb2b0a76b446ca1e5775095.webp?v=1766376773","variant_ids":[43903437635683]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-NYA08","featured_media":{"alt":null,"id":26547167461475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e081bcec6dee6d25cb2b0a76b446ca1e5775095.webp?v=1766376773"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b38ff0edfa5857d581cf67cb104b2b91a316d747.webp?v=1766376767","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/928c263d0ce4f8613451304d9ae617b8478d275c.webp?v=1766376768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03764e2a5d4f71d32ffdfc49e007453f73c39f96.webp?v=1766376768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0973bb4d1f36612a2f7349818867888655ba07.webp?v=1766376769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58fa2c6028889a14e4eba62132532cbbdab2e77.webp?v=1766376769","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cae17d3d4f558bf90c90170dd1da23de7811ee2.webp?v=1766376770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e94b2f20c2321fe5c82648474a30702d01b0cea8.webp?v=1766376770","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652c8456e5abe361c028f6b49d78d0bbbf5ebf4a.webp?v=1766376771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24fe29860ee25315b94cac5f1289a20b56975159.webp?v=1766376771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1e58bcc3748c85af8a4d26c80b01f3e18d2b6a.webp?v=1766376772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee7ca5fd3cec783a24d1f74823f9f44d77a74d36.webp?v=1766376772","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e081bcec6dee6d25cb2b0a76b446ca1e5775095.webp?v=1766376773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5887ed29571bdf7e1736bd291d8f883481c7626c.webp?v=1766376773"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b38ff0edfa5857d581cf67cb104b2b91a316d747.webp?v=1766376767","options":["color"],"media":[{"alt":null,"id":26547166740579,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b38ff0edfa5857d581cf67cb104b2b91a316d747.webp?v=1766376767"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b38ff0edfa5857d581cf67cb104b2b91a316d747.webp?v=1766376767","width":2000},{"alt":null,"id":26547166773347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/928c263d0ce4f8613451304d9ae617b8478d275c.webp?v=1766376768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/928c263d0ce4f8613451304d9ae617b8478d275c.webp?v=1766376768","width":2000},{"alt":null,"id":26547166838883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03764e2a5d4f71d32ffdfc49e007453f73c39f96.webp?v=1766376768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03764e2a5d4f71d32ffdfc49e007453f73c39f96.webp?v=1766376768","width":2000},{"alt":null,"id":26547166904419,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0973bb4d1f36612a2f7349818867888655ba07.webp?v=1766376769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd0973bb4d1f36612a2f7349818867888655ba07.webp?v=1766376769","width":2000},{"alt":null,"id":26547166969955,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58fa2c6028889a14e4eba62132532cbbdab2e77.webp?v=1766376769"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b58fa2c6028889a14e4eba62132532cbbdab2e77.webp?v=1766376769","width":2000},{"alt":null,"id":26547167035491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cae17d3d4f558bf90c90170dd1da23de7811ee2.webp?v=1766376770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cae17d3d4f558bf90c90170dd1da23de7811ee2.webp?v=1766376770","width":2000},{"alt":null,"id":26547167068259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e94b2f20c2321fe5c82648474a30702d01b0cea8.webp?v=1766376770"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e94b2f20c2321fe5c82648474a30702d01b0cea8.webp?v=1766376770","width":2000},{"alt":null,"id":26547167133795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652c8456e5abe361c028f6b49d78d0bbbf5ebf4a.webp?v=1766376771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/652c8456e5abe361c028f6b49d78d0bbbf5ebf4a.webp?v=1766376771","width":2000},{"alt":null,"id":26547167199331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24fe29860ee25315b94cac5f1289a20b56975159.webp?v=1766376771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/24fe29860ee25315b94cac5f1289a20b56975159.webp?v=1766376771","width":2000},{"alt":null,"id":26547167264867,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1e58bcc3748c85af8a4d26c80b01f3e18d2b6a.webp?v=1766376772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa1e58bcc3748c85af8a4d26c80b01f3e18d2b6a.webp?v=1766376772","width":2000},{"alt":null,"id":26547167330403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee7ca5fd3cec783a24d1f74823f9f44d77a74d36.webp?v=1766376772"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ee7ca5fd3cec783a24d1f74823f9f44d77a74d36.webp?v=1766376772","width":2000},{"alt":null,"id":26547167461475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e081bcec6dee6d25cb2b0a76b446ca1e5775095.webp?v=1766376773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e081bcec6dee6d25cb2b0a76b446ca1e5775095.webp?v=1766376773","width":2000},{"alt":null,"id":26547167559779,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5887ed29571bdf7e1736bd291d8f883481c7626c.webp?v=1766376773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5887ed29571bdf7e1736bd291d8f883481c7626c.webp?v=1766376773","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43903437635683,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-NYA08","requires_shipping":true,"taxable":true,"featured_image":{"id":34986094035043,"product_id":7942085345379,"position":12,"created_at":"2025-12-22T12:12:51+08:00","updated_at":"2025-12-22T12:12:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e081bcec6dee6d25cb2b0a76b446ca1e5775095.webp?v=1766376773","variant_ids":[43903437635683]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-NYA08","featured_media":{"alt":null,"id":26547167461475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e081bcec6dee6d25cb2b0a76b446ca1e5775095.webp?v=1766376773"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43903437635683,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-NYA08","requires_shipping":true,"taxable":true,"featured_image":{"id":34986094035043,"product_id":7942085345379,"position":12,"created_at":"2025-12-22T12:12:51+08:00","updated_at":"2025-12-22T12:12:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e081bcec6dee6d25cb2b0a76b446ca1e5775095.webp?v=1766376773","variant_ids":[43903437635683]},"available":true,"name":"iPhone 14 Plus 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":"NPB0126124-NYA08","featured_media":{"alt":null,"id":26547167461475,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e081bcec6dee6d25cb2b0a76b446ca1e5775095.webp?v=1766376773"}},"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: "停產"
}