$product = {"id":7876121952355,"title":"iPhone 14 Pro Mod NX 奧樂雞 OLOGY 金手入魂","handle":"iphone-14-pro-mod-nx-printable-eb77","description":null,"published_at":"2025-09-04T09:39:04+08:00","created_at":"2025-09-03T12:06:46+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":43675498807395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EB77","requires_shipping":true,"taxable":true,"featured_image":{"id":34416461578339,"product_id":7876121952355,"position":5,"created_at":"2025-09-03T12:06:52+08:00","updated_at":"2025-09-03T12:06:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fa1feb325ae3dd6c9e19aa6eca8799e37c008c9.webp?v=1756872415","variant_ids":[43675498807395]},"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-EB77","featured_media":{"alt":null,"id":25988735893603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fa1feb325ae3dd6c9e19aa6eca8799e37c008c9.webp?v=1756872415"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675498971235,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EB77","requires_shipping":true,"taxable":true,"featured_image":{"id":34416460234851,"product_id":7876121952355,"position":1,"created_at":"2025-09-03T12:06:50+08:00","updated_at":"2025-09-03T12:06:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fe8c97d9ec68c1b344298bec8e8640a3ced2b4.webp?v=1756872412","variant_ids":[43675498971235]},"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-EB77","featured_media":{"alt":null,"id":25988734320739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fe8c97d9ec68c1b344298bec8e8640a3ced2b4.webp?v=1756872412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675499069539,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EB77","requires_shipping":true,"taxable":true,"featured_image":{"id":34416460628067,"product_id":7876121952355,"position":2,"created_at":"2025-09-03T12:06:50+08:00","updated_at":"2025-09-03T12:06:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/833b820df0574cae370c09805666b850a3508905.webp?v=1756872413","variant_ids":[43675499069539]},"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-EB77","featured_media":{"alt":null,"id":25988734943331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/833b820df0574cae370c09805666b850a3508905.webp?v=1756872413"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fe8c97d9ec68c1b344298bec8e8640a3ced2b4.webp?v=1756872412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/833b820df0574cae370c09805666b850a3508905.webp?v=1756872413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2911ec4f5559b9732db2d33d6221c9a69deab9c.webp?v=1756872413","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5abe961a432942f31d2e363e99414790aede4165.webp?v=1756872414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fa1feb325ae3dd6c9e19aa6eca8799e37c008c9.webp?v=1756872415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff3cde9b4de8f95cca8f2c352a848c76c35fd73d.webp?v=1756872415","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a843c02d3f55a030b2fa4f98d38d210cca21b6.webp?v=1756872416","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bb59bf1fb54b62323fae723a19412c40418340.webp?v=1756872417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fdfd6ac147bd76a42853dddd92f4bf9ea87ded4.webp?v=1756872418","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35de33d604acc3ab45c19178ac008309539f8b6.webp?v=1756872419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c70e4691dabe081931dbed4e2301db252b5358ea.webp?v=1756872420","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9510f837fd1e70dafc3b684e517f9e496375256.webp?v=1756872420"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fe8c97d9ec68c1b344298bec8e8640a3ced2b4.webp?v=1756872412","options":["color"],"media":[{"alt":null,"id":25988734320739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fe8c97d9ec68c1b344298bec8e8640a3ced2b4.webp?v=1756872412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fe8c97d9ec68c1b344298bec8e8640a3ced2b4.webp?v=1756872412","width":2000},{"alt":null,"id":25988734943331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/833b820df0574cae370c09805666b850a3508905.webp?v=1756872413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/833b820df0574cae370c09805666b850a3508905.webp?v=1756872413","width":2000},{"alt":null,"id":25988735303779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2911ec4f5559b9732db2d33d6221c9a69deab9c.webp?v=1756872413"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2911ec4f5559b9732db2d33d6221c9a69deab9c.webp?v=1756872413","width":2000},{"alt":null,"id":25988735598691,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5abe961a432942f31d2e363e99414790aede4165.webp?v=1756872414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5abe961a432942f31d2e363e99414790aede4165.webp?v=1756872414","width":2000},{"alt":null,"id":25988735893603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fa1feb325ae3dd6c9e19aa6eca8799e37c008c9.webp?v=1756872415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fa1feb325ae3dd6c9e19aa6eca8799e37c008c9.webp?v=1756872415","width":2000},{"alt":null,"id":25988736057443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff3cde9b4de8f95cca8f2c352a848c76c35fd73d.webp?v=1756872415"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff3cde9b4de8f95cca8f2c352a848c76c35fd73d.webp?v=1756872415","width":2000},{"alt":null,"id":25988736286819,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a843c02d3f55a030b2fa4f98d38d210cca21b6.webp?v=1756872416"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1a843c02d3f55a030b2fa4f98d38d210cca21b6.webp?v=1756872416","width":2000},{"alt":null,"id":25988736548963,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bb59bf1fb54b62323fae723a19412c40418340.webp?v=1756872417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b1bb59bf1fb54b62323fae723a19412c40418340.webp?v=1756872417","width":2000},{"alt":null,"id":25988736712803,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fdfd6ac147bd76a42853dddd92f4bf9ea87ded4.webp?v=1756872418"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4fdfd6ac147bd76a42853dddd92f4bf9ea87ded4.webp?v=1756872418","width":2000},{"alt":null,"id":25988736909411,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35de33d604acc3ab45c19178ac008309539f8b6.webp?v=1756872419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a35de33d604acc3ab45c19178ac008309539f8b6.webp?v=1756872419","width":2000},{"alt":null,"id":25988737204323,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c70e4691dabe081931dbed4e2301db252b5358ea.webp?v=1756872420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c70e4691dabe081931dbed4e2301db252b5358ea.webp?v=1756872420","width":2000},{"alt":null,"id":25988737400931,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9510f837fd1e70dafc3b684e517f9e496375256.webp?v=1756872420"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e9510f837fd1e70dafc3b684e517f9e496375256.webp?v=1756872420","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43675498807395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EB77","requires_shipping":true,"taxable":true,"featured_image":{"id":34416461578339,"product_id":7876121952355,"position":5,"created_at":"2025-09-03T12:06:52+08:00","updated_at":"2025-09-03T12:06:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fa1feb325ae3dd6c9e19aa6eca8799e37c008c9.webp?v=1756872415","variant_ids":[43675498807395]},"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-EB77","featured_media":{"alt":null,"id":25988735893603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fa1feb325ae3dd6c9e19aa6eca8799e37c008c9.webp?v=1756872415"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675498971235,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-EB77","requires_shipping":true,"taxable":true,"featured_image":{"id":34416460234851,"product_id":7876121952355,"position":1,"created_at":"2025-09-03T12:06:50+08:00","updated_at":"2025-09-03T12:06:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fe8c97d9ec68c1b344298bec8e8640a3ced2b4.webp?v=1756872412","variant_ids":[43675498971235]},"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-EB77","featured_media":{"alt":null,"id":25988734320739,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fe8c97d9ec68c1b344298bec8e8640a3ced2b4.webp?v=1756872412"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675499069539,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-EB77","requires_shipping":true,"taxable":true,"featured_image":{"id":34416460628067,"product_id":7876121952355,"position":2,"created_at":"2025-09-03T12:06:50+08:00","updated_at":"2025-09-03T12:06:53+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/833b820df0574cae370c09805666b850a3508905.webp?v=1756872413","variant_ids":[43675499069539]},"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-EB77","featured_media":{"alt":null,"id":25988734943331,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/833b820df0574cae370c09805666b850a3508905.webp?v=1756872413"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43675498807395,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-EB77","requires_shipping":true,"taxable":true,"featured_image":{"id":34416461578339,"product_id":7876121952355,"position":5,"created_at":"2025-09-03T12:06:52+08:00","updated_at":"2025-09-03T12:06:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fa1feb325ae3dd6c9e19aa6eca8799e37c008c9.webp?v=1756872415","variant_ids":[43675498807395]},"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-EB77","featured_media":{"alt":null,"id":25988735893603,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6fa1feb325ae3dd6c9e19aa6eca8799e37c008c9.webp?v=1756872415"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}