$product = {"id":7876097671267,"title":"iPhone 14 Pro Mod NX 奧樂雞 OLOGY 戀愛成就","handle":"iphone-14-pro-mod-nx-printable-eb78","description":null,"published_at":"2025-09-04T09:50:12+08:00","created_at":"2025-09-03T11:59:56+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-byebyechuchu","device-iPhone 14 Pro","merge","reseller-byebyechuchu"],"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":43675392933987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416357572707,"product_id":7876097671267,"position":10,"created_at":"2025-09-03T12:00:18+08:00","updated_at":"2025-09-03T12:00:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbbc65202ef5cfb9d7b3d6f15e1c709fbb8e7038.webp?v=1756872020","variant_ids":[43675392933987]},"available":true,"name":"iPhone 14 Pro Mod NX 奧樂雞 OLOGY 戀愛成就 - 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-EB78","featured_media":{"alt":null,"id":25988632019043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbbc65202ef5cfb9d7b3d6f15e1c709fbb8e7038.webp?v=1756872020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675393097827,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416357474403,"product_id":7876097671267,"position":9,"created_at":"2025-09-03T12:00:17+08:00","updated_at":"2025-09-03T12:00:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801043b4a1959877a318015f8563c6c5729b7f74.webp?v=1756872020","variant_ids":[43675393097827]},"available":true,"name":"iPhone 14 Pro Mod NX 奧樂雞 OLOGY 戀愛成就 - 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-EB78","featured_media":{"alt":null,"id":25988631920739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801043b4a1959877a318015f8563c6c5729b7f74.webp?v=1756872020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675393196131,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416356360291,"product_id":7876097671267,"position":2,"created_at":"2025-09-03T12:00:07+08:00","updated_at":"2025-09-03T12:00:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa0e5d65a08a89b8728fc5a37d81fda3d510be51.webp?v=1756872010","variant_ids":[43675393196131]},"available":true,"name":"iPhone 14 Pro Mod NX 奧樂雞 OLOGY 戀愛成就 - 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-EB78","featured_media":{"alt":null,"id":25988630806627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa0e5d65a08a89b8728fc5a37d81fda3d510be51.webp?v=1756872010"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e6b32735456ecf72696595e4fa5e4ef42d00fe.webp?v=1756872007","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa0e5d65a08a89b8728fc5a37d81fda3d510be51.webp?v=1756872010","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f6d7775fdc3da4e1a37108fd6c0de78b8cf4c7.webp?v=1756872011","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa9270405562ca635d9e189a1543c525d18c5f8e.webp?v=1756872014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eacea8ca07b18f89481aea1ba69ad8195d3d25d.webp?v=1756872014","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5191124e13a895997c2bf6a6e99ff980ff623f.webp?v=1756872017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ed433b4fe9ebea04b072fca4432a9d3e73d64e6.webp?v=1756872017","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da5ad83d001d021bd293e5452b1d36f868eafdae.webp?v=1756872019","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801043b4a1959877a318015f8563c6c5729b7f74.webp?v=1756872020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbbc65202ef5cfb9d7b3d6f15e1c709fbb8e7038.webp?v=1756872020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa481c322a3fe7657dab7e65b923e037400f1701.webp?v=1756872021","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f75cfe08349bae2ad63c1a748f31e0a26a2a9d21.webp?v=1756872021"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e6b32735456ecf72696595e4fa5e4ef42d00fe.webp?v=1756872007","options":["color"],"media":[{"alt":null,"id":25988630511715,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e6b32735456ecf72696595e4fa5e4ef42d00fe.webp?v=1756872007"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4e6b32735456ecf72696595e4fa5e4ef42d00fe.webp?v=1756872007","width":2000},{"alt":null,"id":25988630806627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa0e5d65a08a89b8728fc5a37d81fda3d510be51.webp?v=1756872010"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa0e5d65a08a89b8728fc5a37d81fda3d510be51.webp?v=1756872010","width":2000},{"alt":null,"id":25988631068771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f6d7775fdc3da4e1a37108fd6c0de78b8cf4c7.webp?v=1756872011"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95f6d7775fdc3da4e1a37108fd6c0de78b8cf4c7.webp?v=1756872011","width":2000},{"alt":null,"id":25988631363683,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa9270405562ca635d9e189a1543c525d18c5f8e.webp?v=1756872014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa9270405562ca635d9e189a1543c525d18c5f8e.webp?v=1756872014","width":2000},{"alt":null,"id":25988631461987,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eacea8ca07b18f89481aea1ba69ad8195d3d25d.webp?v=1756872014"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0eacea8ca07b18f89481aea1ba69ad8195d3d25d.webp?v=1756872014","width":2000},{"alt":null,"id":25988631593059,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5191124e13a895997c2bf6a6e99ff980ff623f.webp?v=1756872017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b5191124e13a895997c2bf6a6e99ff980ff623f.webp?v=1756872017","width":2000},{"alt":null,"id":25988631756899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ed433b4fe9ebea04b072fca4432a9d3e73d64e6.webp?v=1756872017"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4ed433b4fe9ebea04b072fca4432a9d3e73d64e6.webp?v=1756872017","width":2000},{"alt":null,"id":25988631855203,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da5ad83d001d021bd293e5452b1d36f868eafdae.webp?v=1756872019"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da5ad83d001d021bd293e5452b1d36f868eafdae.webp?v=1756872019","width":2000},{"alt":null,"id":25988631920739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801043b4a1959877a318015f8563c6c5729b7f74.webp?v=1756872020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801043b4a1959877a318015f8563c6c5729b7f74.webp?v=1756872020","width":2000},{"alt":null,"id":25988632019043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbbc65202ef5cfb9d7b3d6f15e1c709fbb8e7038.webp?v=1756872020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbbc65202ef5cfb9d7b3d6f15e1c709fbb8e7038.webp?v=1756872020","width":2000},{"alt":null,"id":25988632150115,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa481c322a3fe7657dab7e65b923e037400f1701.webp?v=1756872021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aa481c322a3fe7657dab7e65b923e037400f1701.webp?v=1756872021","width":2000},{"alt":null,"id":25988632281187,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f75cfe08349bae2ad63c1a748f31e0a26a2a9d21.webp?v=1756872021"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f75cfe08349bae2ad63c1a748f31e0a26a2a9d21.webp?v=1756872021","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43675392933987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416357572707,"product_id":7876097671267,"position":10,"created_at":"2025-09-03T12:00:18+08:00","updated_at":"2025-09-03T12:00:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbbc65202ef5cfb9d7b3d6f15e1c709fbb8e7038.webp?v=1756872020","variant_ids":[43675392933987]},"available":true,"name":"iPhone 14 Pro Mod NX 奧樂雞 OLOGY 戀愛成就 - 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-EB78","featured_media":{"alt":null,"id":25988632019043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbbc65202ef5cfb9d7b3d6f15e1c709fbb8e7038.webp?v=1756872020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675393097827,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416357474403,"product_id":7876097671267,"position":9,"created_at":"2025-09-03T12:00:17+08:00","updated_at":"2025-09-03T12:00:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801043b4a1959877a318015f8563c6c5729b7f74.webp?v=1756872020","variant_ids":[43675393097827]},"available":true,"name":"iPhone 14 Pro Mod NX 奧樂雞 OLOGY 戀愛成就 - 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-EB78","featured_media":{"alt":null,"id":25988631920739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/801043b4a1959877a318015f8563c6c5729b7f74.webp?v=1756872020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675393196131,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416356360291,"product_id":7876097671267,"position":2,"created_at":"2025-09-03T12:00:07+08:00","updated_at":"2025-09-03T12:00:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa0e5d65a08a89b8728fc5a37d81fda3d510be51.webp?v=1756872010","variant_ids":[43675393196131]},"available":true,"name":"iPhone 14 Pro Mod NX 奧樂雞 OLOGY 戀愛成就 - 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-EB78","featured_media":{"alt":null,"id":25988630806627,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fa0e5d65a08a89b8728fc5a37d81fda3d510be51.webp?v=1756872010"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43675392933987,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EB78","requires_shipping":true,"taxable":true,"featured_image":{"id":34416357572707,"product_id":7876097671267,"position":10,"created_at":"2025-09-03T12:00:18+08:00","updated_at":"2025-09-03T12:00:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbbc65202ef5cfb9d7b3d6f15e1c709fbb8e7038.webp?v=1756872020","variant_ids":[43675392933987]},"available":true,"name":"iPhone 14 Pro Mod NX 奧樂雞 OLOGY 戀愛成就 - 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-EB78","featured_media":{"alt":null,"id":25988632019043,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bbbc65202ef5cfb9d7b3d6f15e1c709fbb8e7038.webp?v=1756872020"}},"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: "停產"
}