$product = {"id":7873307541603,"title":"iPhone 14 Plus Mod NX Keigo Loudspeaker","handle":"iphone-14-plus-mod-nx-printable-kei03","description":null,"published_at":"2025-09-01T10:39:30+08:00","created_at":"2025-09-01T09:49:23+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 14 Plus","merge","reseller-keigo"],"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":43658700882019,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410049437795,"product_id":7873307541603,"position":10,"created_at":"2025-09-01T09:49:34+08:00","updated_at":"2025-09-01T09:49:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0142fb5084ce0300f8a987b03487210239ed776.webp?v=1756691377","variant_ids":[43658700882019]},"available":true,"name":"iPhone 14 Plus Mod NX Keigo Loudspeaker - 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-KEI03","featured_media":{"alt":null,"id":25982364483683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0142fb5084ce0300f8a987b03487210239ed776.webp?v=1756691377"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a738dc40cb2e8c8535909a5d837625823bd459e7.webp?v=1756691370","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd23b403d496cf5b5a65be78daec78365c03593.webp?v=1756691371","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1881a5664b62e135ac7e0660b504948e86236f68.webp?v=1756691372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb377c870cbf045ae4304c7afece251d366ca73.webp?v=1756691373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16de522a9c04230c1d284c14c9873f18dc3f704.webp?v=1756691373","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bd265e8658ff49a83d681a3664ca7f6cd41cd7b.webp?v=1756691374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/404c6cfd8c552165eafabca7291ef7b08196e6b6.webp?v=1756691374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44aa924ab4d23cc3c1d90251f31018f6905dd95.webp?v=1756691375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec12aab3aa60b55ba3b425c43c7726b5a38d262b.webp?v=1756691376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0142fb5084ce0300f8a987b03487210239ed776.webp?v=1756691377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0a7e87a7bcb4904b60398099809a357277491c1.webp?v=1756691377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9a8e03d67ec69d0d5fe4a4f1d0b463606eeba4.webp?v=1756691378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ea1360d1a617af82474913e922f38e9317cd86.webp?v=1756691378"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a738dc40cb2e8c8535909a5d837625823bd459e7.webp?v=1756691370","options":["color"],"media":[{"alt":null,"id":25982361993315,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a738dc40cb2e8c8535909a5d837625823bd459e7.webp?v=1756691370"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a738dc40cb2e8c8535909a5d837625823bd459e7.webp?v=1756691370","width":2000},{"alt":null,"id":25982362419299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd23b403d496cf5b5a65be78daec78365c03593.webp?v=1756691371"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dd23b403d496cf5b5a65be78daec78365c03593.webp?v=1756691371","width":2000},{"alt":null,"id":25982362648675,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1881a5664b62e135ac7e0660b504948e86236f68.webp?v=1756691372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1881a5664b62e135ac7e0660b504948e86236f68.webp?v=1756691372","width":2000},{"alt":null,"id":25982362976355,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb377c870cbf045ae4304c7afece251d366ca73.webp?v=1756691373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bb377c870cbf045ae4304c7afece251d366ca73.webp?v=1756691373","width":2000},{"alt":null,"id":25982363271267,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16de522a9c04230c1d284c14c9873f18dc3f704.webp?v=1756691373"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c16de522a9c04230c1d284c14c9873f18dc3f704.webp?v=1756691373","width":2000},{"alt":null,"id":25982363500643,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bd265e8658ff49a83d681a3664ca7f6cd41cd7b.webp?v=1756691374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2bd265e8658ff49a83d681a3664ca7f6cd41cd7b.webp?v=1756691374","width":2000},{"alt":null,"id":25982363730019,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/404c6cfd8c552165eafabca7291ef7b08196e6b6.webp?v=1756691374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/404c6cfd8c552165eafabca7291ef7b08196e6b6.webp?v=1756691374","width":2000},{"alt":null,"id":25982364024931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44aa924ab4d23cc3c1d90251f31018f6905dd95.webp?v=1756691375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44aa924ab4d23cc3c1d90251f31018f6905dd95.webp?v=1756691375","width":2000},{"alt":null,"id":25982364221539,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec12aab3aa60b55ba3b425c43c7726b5a38d262b.webp?v=1756691376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ec12aab3aa60b55ba3b425c43c7726b5a38d262b.webp?v=1756691376","width":2000},{"alt":null,"id":25982364483683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0142fb5084ce0300f8a987b03487210239ed776.webp?v=1756691377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0142fb5084ce0300f8a987b03487210239ed776.webp?v=1756691377","width":2000},{"alt":null,"id":25982364713059,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0a7e87a7bcb4904b60398099809a357277491c1.webp?v=1756691377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0a7e87a7bcb4904b60398099809a357277491c1.webp?v=1756691377","width":2000},{"alt":null,"id":25982364876899,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9a8e03d67ec69d0d5fe4a4f1d0b463606eeba4.webp?v=1756691378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d9a8e03d67ec69d0d5fe4a4f1d0b463606eeba4.webp?v=1756691378","width":2000},{"alt":null,"id":25982365007971,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ea1360d1a617af82474913e922f38e9317cd86.webp?v=1756691378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01ea1360d1a617af82474913e922f38e9317cd86.webp?v=1756691378","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43658700882019,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410049437795,"product_id":7873307541603,"position":10,"created_at":"2025-09-01T09:49:34+08:00","updated_at":"2025-09-01T09:49:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0142fb5084ce0300f8a987b03487210239ed776.webp?v=1756691377","variant_ids":[43658700882019]},"available":true,"name":"iPhone 14 Plus Mod NX Keigo Loudspeaker - 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-KEI03","featured_media":{"alt":null,"id":25982364483683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0142fb5084ce0300f8a987b03487210239ed776.webp?v=1756691377"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43658700882019,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-KEI03","requires_shipping":true,"taxable":true,"featured_image":{"id":34410049437795,"product_id":7873307541603,"position":10,"created_at":"2025-09-01T09:49:34+08:00","updated_at":"2025-09-01T09:49:37+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0142fb5084ce0300f8a987b03487210239ed776.webp?v=1756691377","variant_ids":[43658700882019]},"available":true,"name":"iPhone 14 Plus Mod NX Keigo Loudspeaker - 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-KEI03","featured_media":{"alt":null,"id":25982364483683,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0142fb5084ce0300f8a987b03487210239ed776.webp?v=1756691377"}},"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: "停產"
}