$product = {"id":7888415522915,"title":"iPhone 14 Pro Mod NX KINGJUN Hello BT !","handle":"iphone-14-pro-mod-nx-printable-iq03","description":null,"published_at":"2025-09-23T09:20:07+08:00","created_at":"2025-09-22T15:23:41+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-kingjun","device-iPhone 14 Pro","merge","reseller-kingjun"],"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":43743028412515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-IQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":34514320621667,"product_id":7888415522915,"position":1,"created_at":"2025-09-22T15:23:45+08:00","updated_at":"2025-09-22T15:23:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845340aecd8ac03d642cacb7d75c09b88772fa6.webp?v=1758525827","variant_ids":[43743028412515]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello BT ! - 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-IQ03","featured_media":{"alt":null,"id":26084763140195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845340aecd8ac03d642cacb7d75c09b88772fa6.webp?v=1758525827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743028609123,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-IQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":34514322456675,"product_id":7888415522915,"position":11,"created_at":"2025-09-22T15:23:50+08:00","updated_at":"2025-09-22T15:23:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4609897e91058e8fd18a6681b07bd7b5d706d486.webp?v=1758525832","variant_ids":[43743028609123]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello BT ! - 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-IQ03","featured_media":{"alt":null,"id":26084764975203,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4609897e91058e8fd18a6681b07bd7b5d706d486.webp?v=1758525832"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743028674659,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-IQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":34514321571939,"product_id":7888415522915,"position":6,"created_at":"2025-09-22T15:23:47+08:00","updated_at":"2025-09-22T15:23:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f2b16198b15fdb727496cd8d91c08fd4f4b0153.webp?v=1758525829","variant_ids":[43743028674659]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello BT ! - 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-IQ03","featured_media":{"alt":null,"id":26084764090467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f2b16198b15fdb727496cd8d91c08fd4f4b0153.webp?v=1758525829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845340aecd8ac03d642cacb7d75c09b88772fa6.webp?v=1758525827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1c5334d8b31d1e38c45ccc747ac9cb34fbb24d.webp?v=1758525828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818bb16c70f10a0462a649eabfd0cab6cacec12e.webp?v=1758525828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba521c5e415cd50ae80c2045025852811213415.webp?v=1758525828","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956f7fe03dffc70a4002991c2bf63baa6bd02a8.webp?v=1758525829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f2b16198b15fdb727496cd8d91c08fd4f4b0153.webp?v=1758525829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c3c023aec2a0340784d38b0b127e3d6e681484f.webp?v=1758525829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b28cd80a7dca3f21325d1166c1f533ce177631.webp?v=1758525830","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67434514774cceb771618408ac8e72f2cf2627b.webp?v=1758525831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8624f6313962628021f927258a5f8fbbc28845cf.webp?v=1758525831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4609897e91058e8fd18a6681b07bd7b5d706d486.webp?v=1758525832","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda5d9b27eb6e4e137bf32100653406131db4c1b.webp?v=1758525832"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845340aecd8ac03d642cacb7d75c09b88772fa6.webp?v=1758525827","options":["color"],"media":[{"alt":null,"id":26084763140195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845340aecd8ac03d642cacb7d75c09b88772fa6.webp?v=1758525827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845340aecd8ac03d642cacb7d75c09b88772fa6.webp?v=1758525827","width":2000},{"alt":null,"id":26084763336803,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1c5334d8b31d1e38c45ccc747ac9cb34fbb24d.webp?v=1758525828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1c5334d8b31d1e38c45ccc747ac9cb34fbb24d.webp?v=1758525828","width":2000},{"alt":null,"id":26084763500643,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818bb16c70f10a0462a649eabfd0cab6cacec12e.webp?v=1758525828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/818bb16c70f10a0462a649eabfd0cab6cacec12e.webp?v=1758525828","width":2000},{"alt":null,"id":26084763697251,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba521c5e415cd50ae80c2045025852811213415.webp?v=1758525828"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fba521c5e415cd50ae80c2045025852811213415.webp?v=1758525828","width":2000},{"alt":null,"id":26084763893859,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956f7fe03dffc70a4002991c2bf63baa6bd02a8.webp?v=1758525829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956f7fe03dffc70a4002991c2bf63baa6bd02a8.webp?v=1758525829","width":2000},{"alt":null,"id":26084764090467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f2b16198b15fdb727496cd8d91c08fd4f4b0153.webp?v=1758525829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f2b16198b15fdb727496cd8d91c08fd4f4b0153.webp?v=1758525829","width":2000},{"alt":null,"id":26084764287075,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c3c023aec2a0340784d38b0b127e3d6e681484f.webp?v=1758525829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c3c023aec2a0340784d38b0b127e3d6e681484f.webp?v=1758525829","width":2000},{"alt":null,"id":26084764450915,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b28cd80a7dca3f21325d1166c1f533ce177631.webp?v=1758525830"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/73b28cd80a7dca3f21325d1166c1f533ce177631.webp?v=1758525830","width":2000},{"alt":null,"id":26084764680291,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67434514774cceb771618408ac8e72f2cf2627b.webp?v=1758525831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f67434514774cceb771618408ac8e72f2cf2627b.webp?v=1758525831","width":2000},{"alt":null,"id":26084764876899,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8624f6313962628021f927258a5f8fbbc28845cf.webp?v=1758525831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8624f6313962628021f927258a5f8fbbc28845cf.webp?v=1758525831","width":2000},{"alt":null,"id":26084764975203,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4609897e91058e8fd18a6681b07bd7b5d706d486.webp?v=1758525832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4609897e91058e8fd18a6681b07bd7b5d706d486.webp?v=1758525832","width":2000},{"alt":null,"id":26084765139043,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda5d9b27eb6e4e137bf32100653406131db4c1b.webp?v=1758525832"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eda5d9b27eb6e4e137bf32100653406131db4c1b.webp?v=1758525832","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43743028412515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-IQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":34514320621667,"product_id":7888415522915,"position":1,"created_at":"2025-09-22T15:23:45+08:00","updated_at":"2025-09-22T15:23:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845340aecd8ac03d642cacb7d75c09b88772fa6.webp?v=1758525827","variant_ids":[43743028412515]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello BT ! - 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-IQ03","featured_media":{"alt":null,"id":26084763140195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845340aecd8ac03d642cacb7d75c09b88772fa6.webp?v=1758525827"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743028609123,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-IQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":34514322456675,"product_id":7888415522915,"position":11,"created_at":"2025-09-22T15:23:50+08:00","updated_at":"2025-09-22T15:23:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4609897e91058e8fd18a6681b07bd7b5d706d486.webp?v=1758525832","variant_ids":[43743028609123]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello BT ! - 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-IQ03","featured_media":{"alt":null,"id":26084764975203,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4609897e91058e8fd18a6681b07bd7b5d706d486.webp?v=1758525832"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43743028674659,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-IQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":34514321571939,"product_id":7888415522915,"position":6,"created_at":"2025-09-22T15:23:47+08:00","updated_at":"2025-09-22T15:23:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f2b16198b15fdb727496cd8d91c08fd4f4b0153.webp?v=1758525829","variant_ids":[43743028674659]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello BT ! - 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-IQ03","featured_media":{"alt":null,"id":26084764090467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f2b16198b15fdb727496cd8d91c08fd4f4b0153.webp?v=1758525829"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43743028412515,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-IQ03","requires_shipping":true,"taxable":true,"featured_image":{"id":34514320621667,"product_id":7888415522915,"position":1,"created_at":"2025-09-22T15:23:45+08:00","updated_at":"2025-09-22T15:23:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845340aecd8ac03d642cacb7d75c09b88772fa6.webp?v=1758525827","variant_ids":[43743028412515]},"available":true,"name":"iPhone 14 Pro Mod NX KINGJUN Hello BT ! - 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-IQ03","featured_media":{"alt":null,"id":26084763140195,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1845340aecd8ac03d642cacb7d75c09b88772fa6.webp?v=1758525827"}},"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: "停產"
}