$product = {"id":7938081128547,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 (灰階)","handle":"iphone-14-plus-mod-nx-magsafe-xw03","description":null,"published_at":"2025-12-12T09:59:12+08:00","created_at":"2025-12-11T16:59:25+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-attack-on-titan","device-iPhone 14 Plus","merge","reseller-attack-on-titan"],"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":43885032046691,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XW03","requires_shipping":true,"taxable":true,"featured_image":{"id":34933764423779,"product_id":7938081128547,"position":7,"created_at":"2025-12-11T16:59:33+08:00","updated_at":"2025-12-11T16:59:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ed2de8903b861256bf81499c416c5a89acba74.webp?v=1765443575","variant_ids":[43885032046691]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 (灰階) - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-XW03","featured_media":{"alt":null,"id":26496133693539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ed2de8903b861256bf81499c416c5a89acba74.webp?v=1765443575"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e39a41aefc3d4a1da8576e8035786973147726.webp?v=1765443571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d5b7f99e61960328d2b51060c645ed22252ed6.webp?v=1765443571","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18f3c582945dc23d290520df1db2def36f855e30.webp?v=1765443572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd776e119c7e899f484a9c861183f32179a477a1.webp?v=1765443572","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50665ecf46b0003977ebb747a4df6227c4625f48.webp?v=1765443573","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a09405354e448dd3cbdf59b0efae2b2b9d99d6b.webp?v=1765443574","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ed2de8903b861256bf81499c416c5a89acba74.webp?v=1765443575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43f4c4b217412e63e8eb04e5999eeb1336bf5e63.webp?v=1765443575","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e2efce61220c034a817a029743f4defa270041.webp?v=1765443576","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3de6e08fb986f7991605617f379bd363da21040.webp?v=1765443577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d99663ad0a35d6e1c7fdfaa36620d51aecd04b5.webp?v=1765443577","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7860a1b42cae723c989959bca0d3211fa76617a8.webp?v=1765443578","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fce0b58f6e13686a4b70288d19abc98f5abcaa10.webp?v=1765443579"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e39a41aefc3d4a1da8576e8035786973147726.webp?v=1765443571","options":["color"],"media":[{"alt":null,"id":26496132513891,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e39a41aefc3d4a1da8576e8035786973147726.webp?v=1765443571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85e39a41aefc3d4a1da8576e8035786973147726.webp?v=1765443571","width":2000},{"alt":null,"id":26496132579427,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d5b7f99e61960328d2b51060c645ed22252ed6.webp?v=1765443571"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/71d5b7f99e61960328d2b51060c645ed22252ed6.webp?v=1765443571","width":2000},{"alt":null,"id":26496132710499,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18f3c582945dc23d290520df1db2def36f855e30.webp?v=1765443572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/18f3c582945dc23d290520df1db2def36f855e30.webp?v=1765443572","width":2000},{"alt":null,"id":26496132907107,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd776e119c7e899f484a9c861183f32179a477a1.webp?v=1765443572"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd776e119c7e899f484a9c861183f32179a477a1.webp?v=1765443572","width":2000},{"alt":null,"id":26496133103715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50665ecf46b0003977ebb747a4df6227c4625f48.webp?v=1765443573"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50665ecf46b0003977ebb747a4df6227c4625f48.webp?v=1765443573","width":2000},{"alt":null,"id":26496133333091,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a09405354e448dd3cbdf59b0efae2b2b9d99d6b.webp?v=1765443574"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a09405354e448dd3cbdf59b0efae2b2b9d99d6b.webp?v=1765443574","width":2000},{"alt":null,"id":26496133693539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ed2de8903b861256bf81499c416c5a89acba74.webp?v=1765443575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ed2de8903b861256bf81499c416c5a89acba74.webp?v=1765443575","width":2000},{"alt":null,"id":26496133988451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43f4c4b217412e63e8eb04e5999eeb1336bf5e63.webp?v=1765443575"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43f4c4b217412e63e8eb04e5999eeb1336bf5e63.webp?v=1765443575","width":2000},{"alt":null,"id":26496134283363,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e2efce61220c034a817a029743f4defa270041.webp?v=1765443576"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/50e2efce61220c034a817a029743f4defa270041.webp?v=1765443576","width":2000},{"alt":null,"id":26496134545507,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3de6e08fb986f7991605617f379bd363da21040.webp?v=1765443577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3de6e08fb986f7991605617f379bd363da21040.webp?v=1765443577","width":2000},{"alt":null,"id":26496134840419,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d99663ad0a35d6e1c7fdfaa36620d51aecd04b5.webp?v=1765443577"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d99663ad0a35d6e1c7fdfaa36620d51aecd04b5.webp?v=1765443577","width":2000},{"alt":null,"id":26496134971491,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7860a1b42cae723c989959bca0d3211fa76617a8.webp?v=1765443578"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7860a1b42cae723c989959bca0d3211fa76617a8.webp?v=1765443578","width":2000},{"alt":null,"id":26496135037027,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fce0b58f6e13686a4b70288d19abc98f5abcaa10.webp?v=1765443579"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fce0b58f6e13686a4b70288d19abc98f5abcaa10.webp?v=1765443579","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43885032046691,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XW03","requires_shipping":true,"taxable":true,"featured_image":{"id":34933764423779,"product_id":7938081128547,"position":7,"created_at":"2025-12-11T16:59:33+08:00","updated_at":"2025-12-11T16:59:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ed2de8903b861256bf81499c416c5a89acba74.webp?v=1765443575","variant_ids":[43885032046691]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 (灰階) - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-XW03","featured_media":{"alt":null,"id":26496133693539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ed2de8903b861256bf81499c416c5a89acba74.webp?v=1765443575"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43885032046691,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XW03","requires_shipping":true,"taxable":true,"featured_image":{"id":34933764423779,"product_id":7938081128547,"position":7,"created_at":"2025-12-11T16:59:33+08:00","updated_at":"2025-12-11T16:59:35+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ed2de8903b861256bf81499c416c5a89acba74.webp?v=1765443575","variant_ids":[43885032046691]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 米卡莎 (灰階) - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0126124-XW03","featured_media":{"alt":null,"id":26496133693539,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ed2de8903b861256bf81499c416c5a89acba74.webp?v=1765443575"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}