$product = {"id":7415919312995,"title":"iPhone XS Max Mod NX MARVEL 漫威系列 漫威Logo-迷你標誌","handle":"iphone-xs-max-mod-nx-printable-oz32","description":null,"published_at":"2024-06-11T16:47:56+08:00","created_at":"2024-05-06T12:24:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-marvel","device-iPhone XS Max","merge","reseller-marvel"],"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":41915511144547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":31490732556387,"product_id":7415919312995,"position":1,"created_at":"2024-05-06T12:24:56+08:00","updated_at":"2024-05-06T12:24:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ModNX-26-086-OZ32_1f2cf829-2447-4cc2-a0bb-e7a6800e6a98.png?v=1714969496","variant_ids":[41915511144547]},"available":true,"name":"iPhone XS Max Mod NX MARVEL 漫威系列 漫威Logo-迷你標誌 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-OZ32","featured_media":{"alt":null,"id":23896139300963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ModNX-26-086-OZ32_1f2cf829-2447-4cc2-a0bb-e7a6800e6a98.png?v=1714969496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43850170073187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108624-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":34832875585635,"product_id":7415919312995,"position":8,"created_at":"2025-11-24T11:20:00+08:00","updated_at":"2025-11-24T11:20:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79da3bbf3616e2f1a7ce5bdc45a1dead3c4c35b.webp?v=1763954402","variant_ids":[43850170073187]},"available":true,"name":"iPhone XS Max Mod NX MARVEL 漫威系列 漫威Logo-迷你標誌 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-OZ32","featured_media":{"alt":null,"id":26397693640803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79da3bbf3616e2f1a7ce5bdc45a1dead3c4c35b.webp?v=1763954402"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ModNX-26-086-OZ32_1f2cf829-2447-4cc2-a0bb-e7a6800e6a98.png?v=1714969496","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d619948700242c0091fc372a8e34de07636ad98.webp?v=1763954399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b739b76cea6dc495896ec3da3c514ab1731d97b4.webp?v=1763954399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe305c6eaf3ff7c600c3e215ade27a06c35426e9.webp?v=1763954399","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bb722cc4cae67b543ba7e20b2ff05cfc1eafced.webp?v=1763954400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bb1ee23987cd25f81dfc394e7b3d1d891fa9a9.webp?v=1763954400","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cf502a5d1ef38355ac82c7f7399c6933cb07a0d.webp?v=1763954401","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79da3bbf3616e2f1a7ce5bdc45a1dead3c4c35b.webp?v=1763954402"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ModNX-26-086-OZ32_1f2cf829-2447-4cc2-a0bb-e7a6800e6a98.png?v=1714969496","options":["color"],"media":[{"alt":null,"id":23896139300963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ModNX-26-086-OZ32_1f2cf829-2447-4cc2-a0bb-e7a6800e6a98.png?v=1714969496"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ModNX-26-086-OZ32_1f2cf829-2447-4cc2-a0bb-e7a6800e6a98.png?v=1714969496","width":2000},{"alt":null,"id":26397692690531,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d619948700242c0091fc372a8e34de07636ad98.webp?v=1763954399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5d619948700242c0091fc372a8e34de07636ad98.webp?v=1763954399","width":2000},{"alt":null,"id":26397692854371,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b739b76cea6dc495896ec3da3c514ab1731d97b4.webp?v=1763954399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b739b76cea6dc495896ec3da3c514ab1731d97b4.webp?v=1763954399","width":2000},{"alt":null,"id":26397693083747,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe305c6eaf3ff7c600c3e215ade27a06c35426e9.webp?v=1763954399"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fe305c6eaf3ff7c600c3e215ade27a06c35426e9.webp?v=1763954399","width":2000},{"alt":null,"id":26397693214819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bb722cc4cae67b543ba7e20b2ff05cfc1eafced.webp?v=1763954400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bb722cc4cae67b543ba7e20b2ff05cfc1eafced.webp?v=1763954400","width":2000},{"alt":null,"id":26397693345891,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bb1ee23987cd25f81dfc394e7b3d1d891fa9a9.webp?v=1763954400"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14bb1ee23987cd25f81dfc394e7b3d1d891fa9a9.webp?v=1763954400","width":2000},{"alt":null,"id":26397693476963,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cf502a5d1ef38355ac82c7f7399c6933cb07a0d.webp?v=1763954401"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0cf502a5d1ef38355ac82c7f7399c6933cb07a0d.webp?v=1763954401","width":2000},{"alt":null,"id":26397693640803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79da3bbf3616e2f1a7ce5bdc45a1dead3c4c35b.webp?v=1763954402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79da3bbf3616e2f1a7ce5bdc45a1dead3c4c35b.webp?v=1763954402","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41915511144547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":31490732556387,"product_id":7415919312995,"position":1,"created_at":"2024-05-06T12:24:56+08:00","updated_at":"2024-05-06T12:24:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ModNX-26-086-OZ32_1f2cf829-2447-4cc2-a0bb-e7a6800e6a98.png?v=1714969496","variant_ids":[41915511144547]},"available":true,"name":"iPhone XS Max Mod NX MARVEL 漫威系列 漫威Logo-迷你標誌 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-OZ32","featured_media":{"alt":null,"id":23896139300963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ModNX-26-086-OZ32_1f2cf829-2447-4cc2-a0bb-e7a6800e6a98.png?v=1714969496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":43850170073187,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0108624-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":34832875585635,"product_id":7415919312995,"position":8,"created_at":"2025-11-24T11:20:00+08:00","updated_at":"2025-11-24T11:20:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79da3bbf3616e2f1a7ce5bdc45a1dead3c4c35b.webp?v=1763954402","variant_ids":[43850170073187]},"available":true,"name":"iPhone XS Max Mod NX MARVEL 漫威系列 漫威Logo-迷你標誌 - Black","public_title":"Black","options":["Black"],"price":90000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-OZ32","featured_media":{"alt":null,"id":26397693640803,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f79da3bbf3616e2f1a7ce5bdc45a1dead3c4c35b.webp?v=1763954402"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41915511144547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0108624-OZ32","requires_shipping":true,"taxable":true,"featured_image":{"id":31490732556387,"product_id":7415919312995,"position":1,"created_at":"2024-05-06T12:24:56+08:00","updated_at":"2024-05-06T12:24:56+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ModNX-26-086-OZ32_1f2cf829-2447-4cc2-a0bb-e7a6800e6a98.png?v=1714969496","variant_ids":[41915511144547]},"available":true,"name":"iPhone XS Max Mod NX MARVEL 漫威系列 漫威Logo-迷你標誌 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0108624-OZ32","featured_media":{"alt":null,"id":23896139300963,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ModNX-26-086-OZ32_1f2cf829-2447-4cc2-a0bb-e7a6800e6a98.png?v=1714969496"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}