$product = {"id":7931307720803,"title":"iPhone 14 Plus Mod NX 白白日記 By Darylhochi Um...","handle":"iphone-14-plus-mod-nx-ei82","description":null,"published_at":"2025-11-28T10:58:29+08:00","created_at":"2025-11-28T10:27:49+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-darylhochi","device-iPhone 14 Plus","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":43860960313443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861785251939,"product_id":7931307720803,"position":1,"created_at":"2025-11-28T10:29:05+08:00","updated_at":"2025-11-28T10:29:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5010ee3eeac2e7d0b4586edc577459b238a787ae.webp?v=1764296947","variant_ids":[43860960313443]},"available":true,"name":"iPhone 14 Plus Mod NX 白白日記 By Darylhochi Um... - 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-EI82","featured_media":{"alt":null,"id":26426204684387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5010ee3eeac2e7d0b4586edc577459b238a787ae.webp?v=1764296947"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5010ee3eeac2e7d0b4586edc577459b238a787ae.webp?v=1764296947","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d48bd9c5ae77efe66261fdcfc8f814b1c3ac9b7.webp?v=1764296948","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bf8d13392acfa34e0f5d9babea0e20b906c75.webp?v=1764296950","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffad1dcdb749e89aa64ce745cc95fc8f60ca80d.webp?v=1764296951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/540945bc79221e05de45a8651310fad3d9159533.webp?v=1764296951","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c8ef1a830fb7af3972d04d700b1e5f36294865.webp?v=1764296952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28be44549e2d20cadd68f36c4e0c0b8ac41cacf.webp?v=1764296952","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/723b3d5dcb4fd2a4dd468b8ba70ca00e6e60dbfe.webp?v=1764296954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3036b72c8b299d7da8dc16a82e947d88afa8723d.webp?v=1764296954","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bf53043f71b805bc117e26dffba6a39cfea581.webp?v=1764296957","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92d2bf942c220276dab630826226e840cae020c_2630da5c-bb99-4050-b103-9dc41be8923f.webp?v=1764296960","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03ecdeafb0879bdbbdbe37c47bf3bfd949ea89fe_57f85497-cc08-4453-a7fe-c4febbb0a502.webp?v=1764296960","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca284834d66b80fb9b5cb58b17e0de6818cc2af_9ed2bc8f-9bcb-4a4e-82b0-05efb3f4cfa8.webp?v=1764296961"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5010ee3eeac2e7d0b4586edc577459b238a787ae.webp?v=1764296947","options":["color"],"media":[{"alt":null,"id":26426204684387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5010ee3eeac2e7d0b4586edc577459b238a787ae.webp?v=1764296947"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5010ee3eeac2e7d0b4586edc577459b238a787ae.webp?v=1764296947","width":2000},{"alt":null,"id":26426204946531,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d48bd9c5ae77efe66261fdcfc8f814b1c3ac9b7.webp?v=1764296948"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d48bd9c5ae77efe66261fdcfc8f814b1c3ac9b7.webp?v=1764296948","width":2000},{"alt":null,"id":26426206879843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bf8d13392acfa34e0f5d9babea0e20b906c75.webp?v=1764296950"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/737bf8d13392acfa34e0f5d9babea0e20b906c75.webp?v=1764296950","width":2000},{"alt":null,"id":26426206978147,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffad1dcdb749e89aa64ce745cc95fc8f60ca80d.webp?v=1764296951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dffad1dcdb749e89aa64ce745cc95fc8f60ca80d.webp?v=1764296951","width":2000},{"alt":null,"id":26426207109219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/540945bc79221e05de45a8651310fad3d9159533.webp?v=1764296951"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/540945bc79221e05de45a8651310fad3d9159533.webp?v=1764296951","width":2000},{"alt":null,"id":26426207371363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c8ef1a830fb7af3972d04d700b1e5f36294865.webp?v=1764296952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c6c8ef1a830fb7af3972d04d700b1e5f36294865.webp?v=1764296952","width":2000},{"alt":null,"id":26426207436899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28be44549e2d20cadd68f36c4e0c0b8ac41cacf.webp?v=1764296952"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28be44549e2d20cadd68f36c4e0c0b8ac41cacf.webp?v=1764296952","width":2000},{"alt":null,"id":26426208452707,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/723b3d5dcb4fd2a4dd468b8ba70ca00e6e60dbfe.webp?v=1764296954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/723b3d5dcb4fd2a4dd468b8ba70ca00e6e60dbfe.webp?v=1764296954","width":2000},{"alt":null,"id":26426208485475,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3036b72c8b299d7da8dc16a82e947d88afa8723d.webp?v=1764296954"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3036b72c8b299d7da8dc16a82e947d88afa8723d.webp?v=1764296954","width":2000},{"alt":null,"id":26426211795043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bf53043f71b805bc117e26dffba6a39cfea581.webp?v=1764296957"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/51bf53043f71b805bc117e26dffba6a39cfea581.webp?v=1764296957","width":2000},{"alt":null,"id":26426212778083,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92d2bf942c220276dab630826226e840cae020c_2630da5c-bb99-4050-b103-9dc41be8923f.webp?v=1764296960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c92d2bf942c220276dab630826226e840cae020c_2630da5c-bb99-4050-b103-9dc41be8923f.webp?v=1764296960","width":2000},{"alt":null,"id":26426213138531,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03ecdeafb0879bdbbdbe37c47bf3bfd949ea89fe_57f85497-cc08-4453-a7fe-c4febbb0a502.webp?v=1764296960"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03ecdeafb0879bdbbdbe37c47bf3bfd949ea89fe_57f85497-cc08-4453-a7fe-c4febbb0a502.webp?v=1764296960","width":2000},{"alt":null,"id":26426213564515,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca284834d66b80fb9b5cb58b17e0de6818cc2af_9ed2bc8f-9bcb-4a4e-82b0-05efb3f4cfa8.webp?v=1764296961"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5ca284834d66b80fb9b5cb58b17e0de6818cc2af_9ed2bc8f-9bcb-4a4e-82b0-05efb3f4cfa8.webp?v=1764296961","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43860960313443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861785251939,"product_id":7931307720803,"position":1,"created_at":"2025-11-28T10:29:05+08:00","updated_at":"2025-11-28T10:29:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5010ee3eeac2e7d0b4586edc577459b238a787ae.webp?v=1764296947","variant_ids":[43860960313443]},"available":true,"name":"iPhone 14 Plus Mod NX 白白日記 By Darylhochi Um... - 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-EI82","featured_media":{"alt":null,"id":26426204684387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5010ee3eeac2e7d0b4586edc577459b238a787ae.webp?v=1764296947"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43860960313443,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EI82","requires_shipping":true,"taxable":true,"featured_image":{"id":34861785251939,"product_id":7931307720803,"position":1,"created_at":"2025-11-28T10:29:05+08:00","updated_at":"2025-11-28T10:29:07+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5010ee3eeac2e7d0b4586edc577459b238a787ae.webp?v=1764296947","variant_ids":[43860960313443]},"available":true,"name":"iPhone 14 Plus Mod NX 白白日記 By Darylhochi Um... - 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-EI82","featured_media":{"alt":null,"id":26426204684387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5010ee3eeac2e7d0b4586edc577459b238a787ae.webp?v=1764296947"}},"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: "停產"
}