$product = {"id":7876199448675,"title":"iPhone 14 Plus Mod NX 爽爽貓 by SECOND 祝你好運","handle":"iphone-14-plus-mod-nx-printable-ea108","description":null,"published_at":"2025-09-04T09:01:09+08:00","created_at":"2025-09-03T12:27:48+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-songsongmeow","device-iPhone 14 Plus","merge","reseller-songsongmeow"],"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":43675819966563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416791453795,"product_id":7876199448675,"position":6,"created_at":"2025-09-03T12:27:55+08:00","updated_at":"2025-09-03T12:27:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b3b5e6a1d8500ec9717117c311f6aa87ae5eee.webp?v=1756873677","variant_ids":[43675819966563]},"available":true,"name":"iPhone 14 Plus Mod NX 爽爽貓 by SECOND 祝你好運 - 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-EA108","featured_media":{"alt":null,"id":25989066260579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b3b5e6a1d8500ec9717117c311f6aa87ae5eee.webp?v=1756873677"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2f57dc4196c437b82ef94ff5a9dd6d0e987b064.webp?v=1756873674","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd9299f5548981f542d58e341e9e12e47012b97b.webp?v=1756873674","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8800cce59b13d4108f1188847ce7e8dafb05bba.webp?v=1756873675","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea46f404b4aaf3fbfa510c799aae36bce293c667.webp?v=1756873676","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ceb66adae5e575768902b0859277e7801ad4f2f5.webp?v=1756873677","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b3b5e6a1d8500ec9717117c311f6aa87ae5eee.webp?v=1756873677","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a73c762b4da325d5016ecb7d17a8b82cb4ba857.webp?v=1756873679","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a1c796789fa67c56152cf8d2cb0398a444c9835.webp?v=1756873679","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb78b1ad5c3df60a0167144be4c70ddfcae1c7f.webp?v=1756873680","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beda307e96ff065e70a91e1e7f99648762f15055.webp?v=1756873681","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2ca97ccdb6e71a25338c246ff00fff7f268c45.webp?v=1756873682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce3d823b1bd01cd1c07ff0b7617a2edf3cb4307.webp?v=1756873682","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/929cb4320810f95e24cc3dcf939d9de8d6150c72.webp?v=1756873683"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2f57dc4196c437b82ef94ff5a9dd6d0e987b064.webp?v=1756873674","options":["color"],"media":[{"alt":null,"id":25989065015395,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2f57dc4196c437b82ef94ff5a9dd6d0e987b064.webp?v=1756873674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2f57dc4196c437b82ef94ff5a9dd6d0e987b064.webp?v=1756873674","width":2000},{"alt":null,"id":25989065179235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd9299f5548981f542d58e341e9e12e47012b97b.webp?v=1756873674"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd9299f5548981f542d58e341e9e12e47012b97b.webp?v=1756873674","width":2000},{"alt":null,"id":25989065572451,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8800cce59b13d4108f1188847ce7e8dafb05bba.webp?v=1756873675"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b8800cce59b13d4108f1188847ce7e8dafb05bba.webp?v=1756873675","width":2000},{"alt":null,"id":25989065900131,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea46f404b4aaf3fbfa510c799aae36bce293c667.webp?v=1756873676"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea46f404b4aaf3fbfa510c799aae36bce293c667.webp?v=1756873676","width":2000},{"alt":null,"id":25989066096739,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ceb66adae5e575768902b0859277e7801ad4f2f5.webp?v=1756873677"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ceb66adae5e575768902b0859277e7801ad4f2f5.webp?v=1756873677","width":2000},{"alt":null,"id":25989066260579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b3b5e6a1d8500ec9717117c311f6aa87ae5eee.webp?v=1756873677"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b3b5e6a1d8500ec9717117c311f6aa87ae5eee.webp?v=1756873677","width":2000},{"alt":null,"id":25989066719331,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a73c762b4da325d5016ecb7d17a8b82cb4ba857.webp?v=1756873679"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a73c762b4da325d5016ecb7d17a8b82cb4ba857.webp?v=1756873679","width":2000},{"alt":null,"id":25989067047011,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a1c796789fa67c56152cf8d2cb0398a444c9835.webp?v=1756873679"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a1c796789fa67c56152cf8d2cb0398a444c9835.webp?v=1756873679","width":2000},{"alt":null,"id":25989067309155,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb78b1ad5c3df60a0167144be4c70ddfcae1c7f.webp?v=1756873680"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7eb78b1ad5c3df60a0167144be4c70ddfcae1c7f.webp?v=1756873680","width":2000},{"alt":null,"id":25989067669603,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beda307e96ff065e70a91e1e7f99648762f15055.webp?v=1756873681"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/beda307e96ff065e70a91e1e7f99648762f15055.webp?v=1756873681","width":2000},{"alt":null,"id":25989067964515,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2ca97ccdb6e71a25338c246ff00fff7f268c45.webp?v=1756873682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2ca97ccdb6e71a25338c246ff00fff7f268c45.webp?v=1756873682","width":2000},{"alt":null,"id":25989068161123,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce3d823b1bd01cd1c07ff0b7617a2edf3cb4307.webp?v=1756873682"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3ce3d823b1bd01cd1c07ff0b7617a2edf3cb4307.webp?v=1756873682","width":2000},{"alt":null,"id":25989068554339,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/929cb4320810f95e24cc3dcf939d9de8d6150c72.webp?v=1756873683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/929cb4320810f95e24cc3dcf939d9de8d6150c72.webp?v=1756873683","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43675819966563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416791453795,"product_id":7876199448675,"position":6,"created_at":"2025-09-03T12:27:55+08:00","updated_at":"2025-09-03T12:27:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b3b5e6a1d8500ec9717117c311f6aa87ae5eee.webp?v=1756873677","variant_ids":[43675819966563]},"available":true,"name":"iPhone 14 Plus Mod NX 爽爽貓 by SECOND 祝你好運 - 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-EA108","featured_media":{"alt":null,"id":25989066260579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b3b5e6a1d8500ec9717117c311f6aa87ae5eee.webp?v=1756873677"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43675819966563,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-EA108","requires_shipping":true,"taxable":true,"featured_image":{"id":34416791453795,"product_id":7876199448675,"position":6,"created_at":"2025-09-03T12:27:55+08:00","updated_at":"2025-09-03T12:27:57+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b3b5e6a1d8500ec9717117c311f6aa87ae5eee.webp?v=1756873677","variant_ids":[43675819966563]},"available":true,"name":"iPhone 14 Plus Mod NX 爽爽貓 by SECOND 祝你好運 - 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-EA108","featured_media":{"alt":null,"id":25989066260579,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7b3b5e6a1d8500ec9717117c311f6aa87ae5eee.webp?v=1756873677"}},"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: "停產"
}