$product = {"id":7931272757347,"title":"iPhone 14 Pro Mod NX 白白日記 By Darylhochi OOOPS!!","handle":"iphone-14-pro-mod-nx-ei80","description":null,"published_at":"2025-11-28T11:03:57+08:00","created_at":"2025-11-28T09:57:10+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-darylhochi","device-iPhone 14 Pro","merge","reseller-darylhochi"],"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":43860820852835,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861410320483,"product_id":7931272757347,"position":3,"created_at":"2025-11-28T09:57:15+08:00","updated_at":"2025-11-28T09:57:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9602a1e8cd86ca520e9a9b8650b12854ba107f4.webp?v=1764295037","variant_ids":[43860820852835]},"available":true,"name":"iPhone 14 Pro Mod NX 白白日記 By Darylhochi OOOPS!! - 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-EI80","featured_media":{"alt":null,"id":26425829982307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9602a1e8cd86ca520e9a9b8650b12854ba107f4.webp?v=1764295037"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860821016675,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861411565667,"product_id":7931272757347,"position":6,"created_at":"2025-11-28T09:57:27+08:00","updated_at":"2025-11-28T09:57:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e35c3c3169f8c013c134b0906befad90d0e0ff.webp?v=1764295048","variant_ids":[43860821016675]},"available":true,"name":"iPhone 14 Pro Mod NX 白白日記 By Darylhochi OOOPS!! - 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-EI80","featured_media":{"alt":null,"id":26425831227491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e35c3c3169f8c013c134b0906befad90d0e0ff.webp?v=1764295048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860821049443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861411893347,"product_id":7931272757347,"position":9,"created_at":"2025-11-28T09:57:36+08:00","updated_at":"2025-11-28T09:57:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe40da4f6fee5eacaee7033eacc665870fb1d7fa.webp?v=1764295058","variant_ids":[43860821049443]},"available":true,"name":"iPhone 14 Pro Mod NX 白白日記 By Darylhochi OOOPS!! - 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-EI80","featured_media":{"alt":null,"id":26425831522403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe40da4f6fee5eacaee7033eacc665870fb1d7fa.webp?v=1764295058"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b110899904962b8c46e8024b18aface2871631.webp?v=1764295036","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecee5ef048e605633ddfc27bb1612024f56cfc5.webp?v=1764295037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9602a1e8cd86ca520e9a9b8650b12854ba107f4.webp?v=1764295037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9835e0c922b463264ecadf9e32b9a8eecff9ffb6.webp?v=1764295043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0a0140e2c8812f517746dfe0055c9bb003f372.webp?v=1764295047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e35c3c3169f8c013c134b0906befad90d0e0ff.webp?v=1764295048","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/687adaf743d5e5b14eff9f8ccfd9f0e0e27de6d4.webp?v=1764295049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a752fee893543c3ea5543b1351cecdad29484b97.webp?v=1764295056","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe40da4f6fee5eacaee7033eacc665870fb1d7fa.webp?v=1764295058","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0546788d848a8ac7487e67cf98b719222d6c207.webp?v=1764295069","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b643c4fa0b3db6cb41320a7df85a5bd16caa5bfa.webp?v=1764295070"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b110899904962b8c46e8024b18aface2871631.webp?v=1764295036","options":["color"],"media":[{"alt":null,"id":26425829589091,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b110899904962b8c46e8024b18aface2871631.webp?v=1764295036"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/94b110899904962b8c46e8024b18aface2871631.webp?v=1764295036","width":2000},{"alt":null,"id":26425829654627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecee5ef048e605633ddfc27bb1612024f56cfc5.webp?v=1764295037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ecee5ef048e605633ddfc27bb1612024f56cfc5.webp?v=1764295037","width":2000},{"alt":null,"id":26425829982307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9602a1e8cd86ca520e9a9b8650b12854ba107f4.webp?v=1764295037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9602a1e8cd86ca520e9a9b8650b12854ba107f4.webp?v=1764295037","width":2000},{"alt":null,"id":26425830473827,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9835e0c922b463264ecadf9e32b9a8eecff9ffb6.webp?v=1764295043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9835e0c922b463264ecadf9e32b9a8eecff9ffb6.webp?v=1764295043","width":2000},{"alt":null,"id":26425830932579,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0a0140e2c8812f517746dfe0055c9bb003f372.webp?v=1764295047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc0a0140e2c8812f517746dfe0055c9bb003f372.webp?v=1764295047","width":2000},{"alt":null,"id":26425831227491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e35c3c3169f8c013c134b0906befad90d0e0ff.webp?v=1764295048"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e35c3c3169f8c013c134b0906befad90d0e0ff.webp?v=1764295048","width":2000},{"alt":null,"id":26425831260259,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/687adaf743d5e5b14eff9f8ccfd9f0e0e27de6d4.webp?v=1764295049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/687adaf743d5e5b14eff9f8ccfd9f0e0e27de6d4.webp?v=1764295049","width":2000},{"alt":null,"id":26425831456867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a752fee893543c3ea5543b1351cecdad29484b97.webp?v=1764295056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a752fee893543c3ea5543b1351cecdad29484b97.webp?v=1764295056","width":2000},{"alt":null,"id":26425831522403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe40da4f6fee5eacaee7033eacc665870fb1d7fa.webp?v=1764295058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe40da4f6fee5eacaee7033eacc665870fb1d7fa.webp?v=1764295058","width":2000},{"alt":null,"id":26425831817315,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0546788d848a8ac7487e67cf98b719222d6c207.webp?v=1764295069"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b0546788d848a8ac7487e67cf98b719222d6c207.webp?v=1764295069","width":2000},{"alt":null,"id":26425831850083,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b643c4fa0b3db6cb41320a7df85a5bd16caa5bfa.webp?v=1764295070"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b643c4fa0b3db6cb41320a7df85a5bd16caa5bfa.webp?v=1764295070","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43860820852835,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861410320483,"product_id":7931272757347,"position":3,"created_at":"2025-11-28T09:57:15+08:00","updated_at":"2025-11-28T09:57:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9602a1e8cd86ca520e9a9b8650b12854ba107f4.webp?v=1764295037","variant_ids":[43860820852835]},"available":true,"name":"iPhone 14 Pro Mod NX 白白日記 By Darylhochi OOOPS!! - 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-EI80","featured_media":{"alt":null,"id":26425829982307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9602a1e8cd86ca520e9a9b8650b12854ba107f4.webp?v=1764295037"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860821016675,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861411565667,"product_id":7931272757347,"position":6,"created_at":"2025-11-28T09:57:27+08:00","updated_at":"2025-11-28T09:57:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e35c3c3169f8c013c134b0906befad90d0e0ff.webp?v=1764295048","variant_ids":[43860821016675]},"available":true,"name":"iPhone 14 Pro Mod NX 白白日記 By Darylhochi OOOPS!! - 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-EI80","featured_media":{"alt":null,"id":26425831227491,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6e35c3c3169f8c013c134b0906befad90d0e0ff.webp?v=1764295048"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43860821049443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861411893347,"product_id":7931272757347,"position":9,"created_at":"2025-11-28T09:57:36+08:00","updated_at":"2025-11-28T09:57:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe40da4f6fee5eacaee7033eacc665870fb1d7fa.webp?v=1764295058","variant_ids":[43860821049443]},"available":true,"name":"iPhone 14 Pro Mod NX 白白日記 By Darylhochi OOOPS!! - 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-EI80","featured_media":{"alt":null,"id":26425831522403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe40da4f6fee5eacaee7033eacc665870fb1d7fa.webp?v=1764295058"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43860820852835,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EI80","requires_shipping":true,"taxable":true,"featured_image":{"id":34861410320483,"product_id":7931272757347,"position":3,"created_at":"2025-11-28T09:57:15+08:00","updated_at":"2025-11-28T09:57:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9602a1e8cd86ca520e9a9b8650b12854ba107f4.webp?v=1764295037","variant_ids":[43860820852835]},"available":true,"name":"iPhone 14 Pro Mod NX 白白日記 By Darylhochi OOOPS!! - 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-EI80","featured_media":{"alt":null,"id":26425829982307,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c9602a1e8cd86ca520e9a9b8650b12854ba107f4.webp?v=1764295037"}},"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: "停產"
}