$product = {"id":7888446390371,"title":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 生日派對","handle":"iphone-14-pro-mod-nx-printable-es01","description":null,"published_at":"2025-09-23T09:17:43+08:00","created_at":"2025-09-22T15:45:36+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-annnbrownie","device-iPhone 14 Pro","merge","reseller-annnbrownie"],"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":43743148867683,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":34514450940003,"product_id":7888446390371,"position":1,"created_at":"2025-09-22T15:45:40+08:00","updated_at":"2025-09-22T15:45:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdcac3588a6057a7225495729bcee5763ca3f7f.webp?v=1758527142","variant_ids":[43743148867683]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 生日派對 - 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-ES01","featured_media":{"alt":null,"id":26084893458531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdcac3588a6057a7225495729bcee5763ca3f7f.webp?v=1758527142"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743148900451,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":34514452480099,"product_id":7888446390371,"position":9,"created_at":"2025-09-22T15:45:44+08:00","updated_at":"2025-09-22T15:45:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac74e296d0c29b65c92fc3a7b46e1b1af2943645.webp?v=1758527146","variant_ids":[43743148900451]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 生日派對 - 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-ES01","featured_media":{"alt":null,"id":26084894998627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac74e296d0c29b65c92fc3a7b46e1b1af2943645.webp?v=1758527146"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743149031523,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":34514451660899,"product_id":7888446390371,"position":5,"created_at":"2025-09-22T15:45:42+08:00","updated_at":"2025-09-22T15:45:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f054ce5c6c5c900653d3c6ab7ddb63109f391ad.webp?v=1758527144","variant_ids":[43743149031523]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 生日派對 - 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-ES01","featured_media":{"alt":null,"id":26084894146659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f054ce5c6c5c900653d3c6ab7ddb63109f391ad.webp?v=1758527144"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdcac3588a6057a7225495729bcee5763ca3f7f.webp?v=1758527142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cb039b15fd16c700d2387f25264f1dd212a1fce.webp?v=1758527142","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ededa2e0007972f5829408ce1dc3144be16a486e.webp?v=1758527143","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5260cf2fbf56264f8beb2a88c5aaf71126ab470a.webp?v=1758527143","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f054ce5c6c5c900653d3c6ab7ddb63109f391ad.webp?v=1758527144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45fb51df221d9fb830fe174dd6b3e3be84f75877.webp?v=1758527144","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac4685d93a98ce7d9089b0fc494db3165cb5a888.webp?v=1758527145","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19daf4b9903d85830e1be384811ee96ecee97796.webp?v=1758527145","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac74e296d0c29b65c92fc3a7b46e1b1af2943645.webp?v=1758527146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b1bf85aa1ad7e65e6879072e30e39e95e1f12fe.webp?v=1758527146","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36d7f1acf7bf1b20b0e3d4b99cf2e3c2192e256d.webp?v=1758527147","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/220de265bd1a49450416050b0c252c4c44f65e52.webp?v=1758527148"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdcac3588a6057a7225495729bcee5763ca3f7f.webp?v=1758527142","options":["color"],"media":[{"alt":null,"id":26084893458531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdcac3588a6057a7225495729bcee5763ca3f7f.webp?v=1758527142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdcac3588a6057a7225495729bcee5763ca3f7f.webp?v=1758527142","width":2000},{"alt":null,"id":26084893622371,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cb039b15fd16c700d2387f25264f1dd212a1fce.webp?v=1758527142"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3cb039b15fd16c700d2387f25264f1dd212a1fce.webp?v=1758527142","width":2000},{"alt":null,"id":26084893884515,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ededa2e0007972f5829408ce1dc3144be16a486e.webp?v=1758527143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ededa2e0007972f5829408ce1dc3144be16a486e.webp?v=1758527143","width":2000},{"alt":null,"id":26084893982819,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5260cf2fbf56264f8beb2a88c5aaf71126ab470a.webp?v=1758527143"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5260cf2fbf56264f8beb2a88c5aaf71126ab470a.webp?v=1758527143","width":2000},{"alt":null,"id":26084894146659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f054ce5c6c5c900653d3c6ab7ddb63109f391ad.webp?v=1758527144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f054ce5c6c5c900653d3c6ab7ddb63109f391ad.webp?v=1758527144","width":2000},{"alt":null,"id":26084894376035,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45fb51df221d9fb830fe174dd6b3e3be84f75877.webp?v=1758527144"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/45fb51df221d9fb830fe174dd6b3e3be84f75877.webp?v=1758527144","width":2000},{"alt":null,"id":26084894605411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac4685d93a98ce7d9089b0fc494db3165cb5a888.webp?v=1758527145"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac4685d93a98ce7d9089b0fc494db3165cb5a888.webp?v=1758527145","width":2000},{"alt":null,"id":26084894802019,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19daf4b9903d85830e1be384811ee96ecee97796.webp?v=1758527145"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19daf4b9903d85830e1be384811ee96ecee97796.webp?v=1758527145","width":2000},{"alt":null,"id":26084894998627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac74e296d0c29b65c92fc3a7b46e1b1af2943645.webp?v=1758527146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac74e296d0c29b65c92fc3a7b46e1b1af2943645.webp?v=1758527146","width":2000},{"alt":null,"id":26084895162467,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b1bf85aa1ad7e65e6879072e30e39e95e1f12fe.webp?v=1758527146"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9b1bf85aa1ad7e65e6879072e30e39e95e1f12fe.webp?v=1758527146","width":2000},{"alt":null,"id":26084895260771,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36d7f1acf7bf1b20b0e3d4b99cf2e3c2192e256d.webp?v=1758527147"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/36d7f1acf7bf1b20b0e3d4b99cf2e3c2192e256d.webp?v=1758527147","width":2000},{"alt":null,"id":26084895391843,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/220de265bd1a49450416050b0c252c4c44f65e52.webp?v=1758527148"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/220de265bd1a49450416050b0c252c4c44f65e52.webp?v=1758527148","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43743148867683,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":34514450940003,"product_id":7888446390371,"position":1,"created_at":"2025-09-22T15:45:40+08:00","updated_at":"2025-09-22T15:45:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdcac3588a6057a7225495729bcee5763ca3f7f.webp?v=1758527142","variant_ids":[43743148867683]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 生日派對 - 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-ES01","featured_media":{"alt":null,"id":26084893458531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdcac3588a6057a7225495729bcee5763ca3f7f.webp?v=1758527142"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743148900451,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":34514452480099,"product_id":7888446390371,"position":9,"created_at":"2025-09-22T15:45:44+08:00","updated_at":"2025-09-22T15:45:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac74e296d0c29b65c92fc3a7b46e1b1af2943645.webp?v=1758527146","variant_ids":[43743148900451]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 生日派對 - 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-ES01","featured_media":{"alt":null,"id":26084894998627,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ac74e296d0c29b65c92fc3a7b46e1b1af2943645.webp?v=1758527146"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743149031523,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":34514451660899,"product_id":7888446390371,"position":5,"created_at":"2025-09-22T15:45:42+08:00","updated_at":"2025-09-22T15:45:44+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f054ce5c6c5c900653d3c6ab7ddb63109f391ad.webp?v=1758527144","variant_ids":[43743149031523]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 生日派對 - 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-ES01","featured_media":{"alt":null,"id":26084894146659,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f054ce5c6c5c900653d3c6ab7ddb63109f391ad.webp?v=1758527144"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43743148867683,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-ES01","requires_shipping":true,"taxable":true,"featured_image":{"id":34514450940003,"product_id":7888446390371,"position":1,"created_at":"2025-09-22T15:45:40+08:00","updated_at":"2025-09-22T15:45:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdcac3588a6057a7225495729bcee5763ca3f7f.webp?v=1758527142","variant_ids":[43743148867683]},"available":true,"name":"iPhone 14 Pro Mod NX 布朗尼 annnbrownie 生日派對 - 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-ES01","featured_media":{"alt":null,"id":26084893458531,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bfdcac3588a6057a7225495729bcee5763ca3f7f.webp?v=1758527142"}},"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: "停產"
}