$product = {"id":7938068873315,"title":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 我的名字是:艾蓮·葉卡","handle":"iphone-14-plus-mod-nx-xw07","description":null,"published_at":"2025-12-12T10:01:47+08:00","created_at":"2025-12-11T16:56:20+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":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":43884979880035,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XW07","requires_shipping":true,"taxable":true,"featured_image":{"id":34933713174627,"product_id":7938068873315,"position":12,"created_at":"2025-12-11T16:56:30+08:00","updated_at":"2025-12-11T16:56:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca4902324d6cda16a8e1070df99227fea5c9885.webp?v=1765443392","variant_ids":[43884979880035]},"available":true,"name":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 我的名字是:艾蓮·葉卡 - 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-XW07","featured_media":{"alt":null,"id":26496082673763,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca4902324d6cda16a8e1070df99227fea5c9885.webp?v=1765443392"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70c589280b497fc48fcc1b90b19309c770e08aa.webp?v=1765443386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca83a8bd9a8bf789607fad3dee7928559fc7add.webp?v=1765443386","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df9204bbb6ae39a8a0b3acb495f5d0df59d921f.webp?v=1765443387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7cf5fd8775e95ab8f6fdb39d62d2f73aaca2f93.webp?v=1765443387","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb28c03b7e110f9382efcfac15a478daaec3069c.webp?v=1765443388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27fe6a88fdc83cb537e781a38bae072936a3199.webp?v=1765443388","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff0b622e50d62b423c0a489c73d256751e6aa.webp?v=1765443389","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6a1751276ae01040b7386876467a953ed6f2603.webp?v=1765443390","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da4d51f4ae033cdb64eca187f886c5c966c47f3.webp?v=1765443391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56b951fe7caef146c2850614a8644950778e7c6.webp?v=1765443391","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc4bba8f74a06543e3b3aab8c59c43385e37c25c.webp?v=1765443392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca4902324d6cda16a8e1070df99227fea5c9885.webp?v=1765443392","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f94d5a1aa50646b5878c3852cd1ea00a42ad8916.webp?v=1765443393"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70c589280b497fc48fcc1b90b19309c770e08aa.webp?v=1765443386","options":["color"],"media":[{"alt":null,"id":26496079462499,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70c589280b497fc48fcc1b90b19309c770e08aa.webp?v=1765443386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d70c589280b497fc48fcc1b90b19309c770e08aa.webp?v=1765443386","width":2000},{"alt":null,"id":26496079757411,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca83a8bd9a8bf789607fad3dee7928559fc7add.webp?v=1765443386"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eca83a8bd9a8bf789607fad3dee7928559fc7add.webp?v=1765443386","width":2000},{"alt":null,"id":26496080150627,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df9204bbb6ae39a8a0b3acb495f5d0df59d921f.webp?v=1765443387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0df9204bbb6ae39a8a0b3acb495f5d0df59d921f.webp?v=1765443387","width":2000},{"alt":null,"id":26496080609379,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7cf5fd8775e95ab8f6fdb39d62d2f73aaca2f93.webp?v=1765443387"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b7cf5fd8775e95ab8f6fdb39d62d2f73aaca2f93.webp?v=1765443387","width":2000},{"alt":null,"id":26496080969827,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb28c03b7e110f9382efcfac15a478daaec3069c.webp?v=1765443388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb28c03b7e110f9382efcfac15a478daaec3069c.webp?v=1765443388","width":2000},{"alt":null,"id":26496081264739,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27fe6a88fdc83cb537e781a38bae072936a3199.webp?v=1765443388"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c27fe6a88fdc83cb537e781a38bae072936a3199.webp?v=1765443388","width":2000},{"alt":null,"id":26496081559651,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff0b622e50d62b423c0a489c73d256751e6aa.webp?v=1765443389"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01fff0b622e50d62b423c0a489c73d256751e6aa.webp?v=1765443389","width":2000},{"alt":null,"id":26496081789027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6a1751276ae01040b7386876467a953ed6f2603.webp?v=1765443390"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6a1751276ae01040b7386876467a953ed6f2603.webp?v=1765443390","width":2000},{"alt":null,"id":26496081985635,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da4d51f4ae033cdb64eca187f886c5c966c47f3.webp?v=1765443391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4da4d51f4ae033cdb64eca187f886c5c966c47f3.webp?v=1765443391","width":2000},{"alt":null,"id":26496082247779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56b951fe7caef146c2850614a8644950778e7c6.webp?v=1765443391"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b56b951fe7caef146c2850614a8644950778e7c6.webp?v=1765443391","width":2000},{"alt":null,"id":26496082477155,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc4bba8f74a06543e3b3aab8c59c43385e37c25c.webp?v=1765443392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc4bba8f74a06543e3b3aab8c59c43385e37c25c.webp?v=1765443392","width":2000},{"alt":null,"id":26496082673763,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca4902324d6cda16a8e1070df99227fea5c9885.webp?v=1765443392"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca4902324d6cda16a8e1070df99227fea5c9885.webp?v=1765443392","width":2000},{"alt":null,"id":26496082804835,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f94d5a1aa50646b5878c3852cd1ea00a42ad8916.webp?v=1765443393"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f94d5a1aa50646b5878c3852cd1ea00a42ad8916.webp?v=1765443393","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43884979880035,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XW07","requires_shipping":true,"taxable":true,"featured_image":{"id":34933713174627,"product_id":7938068873315,"position":12,"created_at":"2025-12-11T16:56:30+08:00","updated_at":"2025-12-11T16:56:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca4902324d6cda16a8e1070df99227fea5c9885.webp?v=1765443392","variant_ids":[43884979880035]},"available":true,"name":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 我的名字是:艾蓮·葉卡 - 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-XW07","featured_media":{"alt":null,"id":26496082673763,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca4902324d6cda16a8e1070df99227fea5c9885.webp?v=1765443392"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43884979880035,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XW07","requires_shipping":true,"taxable":true,"featured_image":{"id":34933713174627,"product_id":7938068873315,"position":12,"created_at":"2025-12-11T16:56:30+08:00","updated_at":"2025-12-11T16:56:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca4902324d6cda16a8e1070df99227fea5c9885.webp?v=1765443392","variant_ids":[43884979880035]},"available":true,"name":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 我的名字是:艾蓮·葉卡 - 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-XW07","featured_media":{"alt":null,"id":26496082673763,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7ca4902324d6cda16a8e1070df99227fea5c9885.webp?v=1765443392"}},"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: "停產"
}