$product = {"id":7876119789667,"title":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點","handle":"iphone-14-pro-mod-nx-magsafe-printable-em48","description":null,"published_at":"2025-09-04T09:40:00+08:00","created_at":"2025-09-03T12:06:08+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-xiaolaofu","device-iPhone 14 Pro","merge","reseller-xiaolaofu"],"price":110000,"price_min":110000,"price_max":110000,"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":43675484880995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416447848547,"product_id":7876119789667,"position":1,"created_at":"2025-09-03T12:06:12+08:00","updated_at":"2025-09-03T12:06:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e1dada7e8a12f3207b6075b3dc522a8f92641b.webp?v=1756872374","variant_ids":[43675484880995]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-EM48","featured_media":{"alt":null,"id":25988722327651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e1dada7e8a12f3207b6075b3dc522a8f92641b.webp?v=1756872374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675485044835,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416449683555,"product_id":7876119789667,"position":9,"created_at":"2025-09-03T12:06:18+08:00","updated_at":"2025-09-03T12:06:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19ffbc27f742c252e637b3e7200f9d6f2b3e153.webp?v=1756872380","variant_ids":[43675485044835]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-EM48","featured_media":{"alt":null,"id":25988724162659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19ffbc27f742c252e637b3e7200f9d6f2b3e153.webp?v=1756872380"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675485143139,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416450469987,"product_id":7876119789667,"position":11,"created_at":"2025-09-03T12:06:20+08:00","updated_at":"2025-09-03T12:06:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf06ac6722bda80d0dd48cdf8b2b84501fca171.webp?v=1756872382","variant_ids":[43675485143139]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-EM48","featured_media":{"alt":null,"id":25988724949091,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf06ac6722bda80d0dd48cdf8b2b84501fca171.webp?v=1756872382"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e1dada7e8a12f3207b6075b3dc522a8f92641b.webp?v=1756872374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30136aded2909d8b6ccfc1c08bda179373307bc3.webp?v=1756872375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aadf712041bb621c5b0ff4e776fef9c569e45b1c.webp?v=1756872375","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92e8266f2509e63289078d709e91e847ba663875.webp?v=1756872376","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91192ccc3c1b25a59df3c98b48d72655c6017add.webp?v=1756872377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4e14dafea13817a28c5e6301e83c828d48356c0.webp?v=1756872378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113ee6de945fda1c0c231a98a0042a8963945b94.webp?v=1756872378","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99defd59f209e047597a25573409c65d9e5d411.webp?v=1756872379","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19ffbc27f742c252e637b3e7200f9d6f2b3e153.webp?v=1756872380","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b84e8c5c308c0e7b0fc23bca0ede5a0dde6ff8a.webp?v=1756872381","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf06ac6722bda80d0dd48cdf8b2b84501fca171.webp?v=1756872382","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e79c3cb309040fb58f87fbbdba5c5f31d1af084d.webp?v=1756872382"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e1dada7e8a12f3207b6075b3dc522a8f92641b.webp?v=1756872374","options":["color"],"media":[{"alt":null,"id":25988722327651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e1dada7e8a12f3207b6075b3dc522a8f92641b.webp?v=1756872374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e1dada7e8a12f3207b6075b3dc522a8f92641b.webp?v=1756872374","width":2000},{"alt":null,"id":25988722524259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30136aded2909d8b6ccfc1c08bda179373307bc3.webp?v=1756872375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/30136aded2909d8b6ccfc1c08bda179373307bc3.webp?v=1756872375","width":2000},{"alt":null,"id":25988722688099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aadf712041bb621c5b0ff4e776fef9c569e45b1c.webp?v=1756872375"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aadf712041bb621c5b0ff4e776fef9c569e45b1c.webp?v=1756872375","width":2000},{"alt":null,"id":25988722851939,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92e8266f2509e63289078d709e91e847ba663875.webp?v=1756872376"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92e8266f2509e63289078d709e91e847ba663875.webp?v=1756872376","width":2000},{"alt":null,"id":25988723048547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91192ccc3c1b25a59df3c98b48d72655c6017add.webp?v=1756872377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91192ccc3c1b25a59df3c98b48d72655c6017add.webp?v=1756872377","width":2000},{"alt":null,"id":25988723277923,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4e14dafea13817a28c5e6301e83c828d48356c0.webp?v=1756872378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4e14dafea13817a28c5e6301e83c828d48356c0.webp?v=1756872378","width":2000},{"alt":null,"id":25988723540067,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113ee6de945fda1c0c231a98a0042a8963945b94.webp?v=1756872378"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/113ee6de945fda1c0c231a98a0042a8963945b94.webp?v=1756872378","width":2000},{"alt":null,"id":25988723834979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99defd59f209e047597a25573409c65d9e5d411.webp?v=1756872379"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d99defd59f209e047597a25573409c65d9e5d411.webp?v=1756872379","width":2000},{"alt":null,"id":25988724162659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19ffbc27f742c252e637b3e7200f9d6f2b3e153.webp?v=1756872380"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19ffbc27f742c252e637b3e7200f9d6f2b3e153.webp?v=1756872380","width":2000},{"alt":null,"id":25988724654179,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b84e8c5c308c0e7b0fc23bca0ede5a0dde6ff8a.webp?v=1756872381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2b84e8c5c308c0e7b0fc23bca0ede5a0dde6ff8a.webp?v=1756872381","width":2000},{"alt":null,"id":25988724949091,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf06ac6722bda80d0dd48cdf8b2b84501fca171.webp?v=1756872382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf06ac6722bda80d0dd48cdf8b2b84501fca171.webp?v=1756872382","width":2000},{"alt":null,"id":25988725244003,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e79c3cb309040fb58f87fbbdba5c5f31d1af084d.webp?v=1756872382"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e79c3cb309040fb58f87fbbdba5c5f31d1af084d.webp?v=1756872382","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43675484880995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416447848547,"product_id":7876119789667,"position":1,"created_at":"2025-09-03T12:06:12+08:00","updated_at":"2025-09-03T12:06:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e1dada7e8a12f3207b6075b3dc522a8f92641b.webp?v=1756872374","variant_ids":[43675484880995]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-EM48","featured_media":{"alt":null,"id":25988722327651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e1dada7e8a12f3207b6075b3dc522a8f92641b.webp?v=1756872374"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675485044835,"title":"Navy Blue","option1":"Navy Blue","option2":null,"option3":null,"sku":"MPB01262J5-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416449683555,"product_id":7876119789667,"position":9,"created_at":"2025-09-03T12:06:18+08:00","updated_at":"2025-09-03T12:06:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19ffbc27f742c252e637b3e7200f9d6f2b3e153.webp?v=1756872380","variant_ids":[43675485044835]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - Navy Blue","public_title":"Navy Blue","options":["Navy Blue"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01262J5-EM48","featured_media":{"alt":null,"id":25988724162659,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c19ffbc27f742c252e637b3e7200f9d6f2b3e153.webp?v=1756872380"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43675485143139,"title":"White","option1":"White","option2":null,"option3":null,"sku":"MPB0126204-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416450469987,"product_id":7876119789667,"position":11,"created_at":"2025-09-03T12:06:20+08:00","updated_at":"2025-09-03T12:06:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf06ac6722bda80d0dd48cdf8b2b84501fca171.webp?v=1756872382","variant_ids":[43675485143139]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - White","public_title":"White","options":["White"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126204-EM48","featured_media":{"alt":null,"id":25988724949091,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bf06ac6722bda80d0dd48cdf8b2b84501fca171.webp?v=1756872382"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43675484880995,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126224-EM48","requires_shipping":true,"taxable":true,"featured_image":{"id":34416447848547,"product_id":7876119789667,"position":1,"created_at":"2025-09-03T12:06:12+08:00","updated_at":"2025-09-03T12:06:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e1dada7e8a12f3207b6075b3dc522a8f92641b.webp?v=1756872374","variant_ids":[43675484880995]},"available":true,"name":"iPhone 14 Pro Mod NX (MagSafe 兼容) 小勞撫 霸託給我多一點 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126224-EM48","featured_media":{"alt":null,"id":25988722327651,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5e1dada7e8a12f3207b6075b3dc522a8f92641b.webp?v=1756872374"}},"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: "停產"
}