$product = {"id":7873312915555,"title":"iPhone 14 Pro Mod NX Keigo Mascot Costume","handle":"iphone-14-pro-mod-nx-printable-kei06","description":null,"published_at":"2025-09-01T10:37:21+08:00","created_at":"2025-09-01T09:50:51+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-keigo","device-iPhone 14 Pro","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":43658721919075,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":34410071785571,"product_id":7873312915555,"position":11,"created_at":"2025-09-01T09:51:02+08:00","updated_at":"2025-09-01T09:51:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69228088b424d6b487be3d688d52b1dd398a794e.webp?v=1756691464","variant_ids":[43658721919075]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":25982386765923,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69228088b424d6b487be3d688d52b1dd398a794e.webp?v=1756691464"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658722050147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":34410071162979,"product_id":7873312915555,"position":9,"created_at":"2025-09-01T09:51:00+08:00","updated_at":"2025-09-01T09:51:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4101ceef0859888062ee65fa8135eb934caa5a.webp?v=1756691462","variant_ids":[43658722050147]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":25982386143331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4101ceef0859888062ee65fa8135eb934caa5a.webp?v=1756691462"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658722115683,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":34410070605923,"product_id":7873312915555,"position":7,"created_at":"2025-09-01T09:50:59+08:00","updated_at":"2025-09-01T09:51:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfcce500130cb399093994fcc98e6a08cea2e1a.webp?v=1756691461","variant_ids":[43658722115683]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":25982385553507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfcce500130cb399093994fcc98e6a08cea2e1a.webp?v=1756691461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7848ecc9dff5f560a1dbb05d8a1301aa3686493.webp?v=1756691457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d37ba3c874960bdbf0be2c741cbce5f80264c79.webp?v=1756691457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cc940a52cc969b90745b484bba5653c3943f4cb.webp?v=1756691458","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63107235038b0c495f50888c674b6091223058f.webp?v=1756691459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfbfe1f8db050aedf9e5a64ba3d850c87bd5b88b.webp?v=1756691459","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/918fe0dd31c2f74526f1272cea39d2d52b77f5d2.webp?v=1756691461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfcce500130cb399093994fcc98e6a08cea2e1a.webp?v=1756691461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89d0214a438baf0071d39c21a530c0489250a32f.webp?v=1756691461","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4101ceef0859888062ee65fa8135eb934caa5a.webp?v=1756691462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e60ceea1a8ea7a4831e732d2aeafc94bf521fe.webp?v=1756691463","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69228088b424d6b487be3d688d52b1dd398a794e.webp?v=1756691464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca7c505b9427c51f9e37e591f83329c9230f380.webp?v=1756691465"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7848ecc9dff5f560a1dbb05d8a1301aa3686493.webp?v=1756691457","options":["color"],"media":[{"alt":null,"id":25982384603235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7848ecc9dff5f560a1dbb05d8a1301aa3686493.webp?v=1756691457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7848ecc9dff5f560a1dbb05d8a1301aa3686493.webp?v=1756691457","width":2000},{"alt":null,"id":25982384734307,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d37ba3c874960bdbf0be2c741cbce5f80264c79.webp?v=1756691457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d37ba3c874960bdbf0be2c741cbce5f80264c79.webp?v=1756691457","width":2000},{"alt":null,"id":25982384898147,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cc940a52cc969b90745b484bba5653c3943f4cb.webp?v=1756691458"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cc940a52cc969b90745b484bba5653c3943f4cb.webp?v=1756691458","width":2000},{"alt":null,"id":25982385061987,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63107235038b0c495f50888c674b6091223058f.webp?v=1756691459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c63107235038b0c495f50888c674b6091223058f.webp?v=1756691459","width":2000},{"alt":null,"id":25982385225827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfbfe1f8db050aedf9e5a64ba3d850c87bd5b88b.webp?v=1756691459"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dfbfe1f8db050aedf9e5a64ba3d850c87bd5b88b.webp?v=1756691459","width":2000},{"alt":null,"id":25982385389667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/918fe0dd31c2f74526f1272cea39d2d52b77f5d2.webp?v=1756691461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/918fe0dd31c2f74526f1272cea39d2d52b77f5d2.webp?v=1756691461","width":2000},{"alt":null,"id":25982385553507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfcce500130cb399093994fcc98e6a08cea2e1a.webp?v=1756691461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfcce500130cb399093994fcc98e6a08cea2e1a.webp?v=1756691461","width":2000},{"alt":null,"id":25982385848419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89d0214a438baf0071d39c21a530c0489250a32f.webp?v=1756691461"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89d0214a438baf0071d39c21a530c0489250a32f.webp?v=1756691461","width":2000},{"alt":null,"id":25982386143331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4101ceef0859888062ee65fa8135eb934caa5a.webp?v=1756691462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4101ceef0859888062ee65fa8135eb934caa5a.webp?v=1756691462","width":2000},{"alt":null,"id":25982386438243,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e60ceea1a8ea7a4831e732d2aeafc94bf521fe.webp?v=1756691463"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77e60ceea1a8ea7a4831e732d2aeafc94bf521fe.webp?v=1756691463","width":2000},{"alt":null,"id":25982386765923,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69228088b424d6b487be3d688d52b1dd398a794e.webp?v=1756691464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69228088b424d6b487be3d688d52b1dd398a794e.webp?v=1756691464","width":2000},{"alt":null,"id":25982386929763,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca7c505b9427c51f9e37e591f83329c9230f380.webp?v=1756691465"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca7c505b9427c51f9e37e591f83329c9230f380.webp?v=1756691465","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43658721919075,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":34410071785571,"product_id":7873312915555,"position":11,"created_at":"2025-09-01T09:51:02+08:00","updated_at":"2025-09-01T09:51:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69228088b424d6b487be3d688d52b1dd398a794e.webp?v=1756691464","variant_ids":[43658721919075]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":25982386765923,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69228088b424d6b487be3d688d52b1dd398a794e.webp?v=1756691464"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658722050147,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126224-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":34410071162979,"product_id":7873312915555,"position":9,"created_at":"2025-09-01T09:51:00+08:00","updated_at":"2025-09-01T09:51:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4101ceef0859888062ee65fa8135eb934caa5a.webp?v=1756691462","variant_ids":[43658722050147]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":25982386143331,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3f4101ceef0859888062ee65fa8135eb934caa5a.webp?v=1756691462"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43658722115683,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"NPB01262J5-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":34410070605923,"product_id":7873312915555,"position":7,"created_at":"2025-09-01T09:50:59+08:00","updated_at":"2025-09-01T09:51:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfcce500130cb399093994fcc98e6a08cea2e1a.webp?v=1756691461","variant_ids":[43658722115683]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":25982385553507,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/abfcce500130cb399093994fcc98e6a08cea2e1a.webp?v=1756691461"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43658721919075,"title":"White","option1":"White","option2":null,"option3":null,"sku":"NPB0126204-KEI06","requires_shipping":true,"taxable":true,"featured_image":{"id":34410071785571,"product_id":7873312915555,"position":11,"created_at":"2025-09-01T09:51:02+08:00","updated_at":"2025-09-01T09:51:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69228088b424d6b487be3d688d52b1dd398a794e.webp?v=1756691464","variant_ids":[43658721919075]},"available":true,"name":"iPhone 14 Pro Mod NX Keigo Mascot Costume - 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-KEI06","featured_media":{"alt":null,"id":25982386765923,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69228088b424d6b487be3d688d52b1dd398a794e.webp?v=1756691464"}},"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: "停產"
}