$product = {"id":7937880260707,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) 進擊的巨人 Attack on Titan 獻出你的心臟!","handle":"iphone-14-plus-mod-nx-magsafe-xu12","description":null,"published_at":"2025-12-12T10:41:09+08:00","created_at":"2025-12-11T15:49:05+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":43884263342179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XU12","requires_shipping":true,"taxable":true,"featured_image":{"id":34932927496291,"product_id":7937880260707,"position":11,"created_at":"2025-12-11T15:49:15+08:00","updated_at":"2025-12-11T15:49:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f49b3e1607b107c2ac5cf66d8b4fb74b6c74fe5.webp?v=1765439357","variant_ids":[43884263342179]},"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-XU12","featured_media":{"alt":null,"id":26495299321955,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f49b3e1607b107c2ac5cf66d8b4fb74b6c74fe5.webp?v=1765439357"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116d91524a63fbbda5a0c510c0150ae3c93df60f.webp?v=1765439352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778595da4b4a4498fa6637b85c7ad3ee37c13e97.webp?v=1765439352","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92fe11b7ecf52dfad2556637b6114edbdb0be09a.webp?v=1765439353","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eef1b42cd0cf2e3f46325c3419e529ab355bb9f2.webp?v=1765439354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b839b13c81b245d217639eed2abb72b14f53f12.webp?v=1765439354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02bd93df0d13f2be530aeb29169ece30210e0c8d.webp?v=1765439354","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49d7278acce273e5975352d18afcac6c09760a8.webp?v=1765439355","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95589c5e5ad8287d54da1b00dccc0280bb526ce2.webp?v=1765439356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a834b0477f5c30529a8d5002ff067f64e5c7986.webp?v=1765439356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fef87dde7cb5bf1eb7fbfebc8c66d23e95e0de3b.webp?v=1765439356","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f49b3e1607b107c2ac5cf66d8b4fb74b6c74fe5.webp?v=1765439357","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaedecfb7109647e045ec7902e0f4ad485527e40.webp?v=1765439358","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b328d0204d920bfa834341991fb33806aa94b4.webp?v=1765439358"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116d91524a63fbbda5a0c510c0150ae3c93df60f.webp?v=1765439352","options":["color"],"media":[{"alt":null,"id":26495297355875,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116d91524a63fbbda5a0c510c0150ae3c93df60f.webp?v=1765439352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/116d91524a63fbbda5a0c510c0150ae3c93df60f.webp?v=1765439352","width":2000},{"alt":null,"id":26495297585251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778595da4b4a4498fa6637b85c7ad3ee37c13e97.webp?v=1765439352"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/778595da4b4a4498fa6637b85c7ad3ee37c13e97.webp?v=1765439352","width":2000},{"alt":null,"id":26495297847395,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92fe11b7ecf52dfad2556637b6114edbdb0be09a.webp?v=1765439353"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/92fe11b7ecf52dfad2556637b6114edbdb0be09a.webp?v=1765439353","width":2000},{"alt":null,"id":26495298240611,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eef1b42cd0cf2e3f46325c3419e529ab355bb9f2.webp?v=1765439354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eef1b42cd0cf2e3f46325c3419e529ab355bb9f2.webp?v=1765439354","width":2000},{"alt":null,"id":26495298502755,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b839b13c81b245d217639eed2abb72b14f53f12.webp?v=1765439354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3b839b13c81b245d217639eed2abb72b14f53f12.webp?v=1765439354","width":2000},{"alt":null,"id":26495298666595,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02bd93df0d13f2be530aeb29169ece30210e0c8d.webp?v=1765439354"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02bd93df0d13f2be530aeb29169ece30210e0c8d.webp?v=1765439354","width":2000},{"alt":null,"id":26495298764899,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49d7278acce273e5975352d18afcac6c09760a8.webp?v=1765439355"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e49d7278acce273e5975352d18afcac6c09760a8.webp?v=1765439355","width":2000},{"alt":null,"id":26495298895971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95589c5e5ad8287d54da1b00dccc0280bb526ce2.webp?v=1765439356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95589c5e5ad8287d54da1b00dccc0280bb526ce2.webp?v=1765439356","width":2000},{"alt":null,"id":26495299027043,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a834b0477f5c30529a8d5002ff067f64e5c7986.webp?v=1765439356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3a834b0477f5c30529a8d5002ff067f64e5c7986.webp?v=1765439356","width":2000},{"alt":null,"id":26495299158115,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fef87dde7cb5bf1eb7fbfebc8c66d23e95e0de3b.webp?v=1765439356"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fef87dde7cb5bf1eb7fbfebc8c66d23e95e0de3b.webp?v=1765439356","width":2000},{"alt":null,"id":26495299321955,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f49b3e1607b107c2ac5cf66d8b4fb74b6c74fe5.webp?v=1765439357"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f49b3e1607b107c2ac5cf66d8b4fb74b6c74fe5.webp?v=1765439357","width":2000},{"alt":null,"id":26495299485795,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaedecfb7109647e045ec7902e0f4ad485527e40.webp?v=1765439358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eaedecfb7109647e045ec7902e0f4ad485527e40.webp?v=1765439358","width":2000},{"alt":null,"id":26495299682403,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b328d0204d920bfa834341991fb33806aa94b4.webp?v=1765439358"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f6b328d0204d920bfa834341991fb33806aa94b4.webp?v=1765439358","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43884263342179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XU12","requires_shipping":true,"taxable":true,"featured_image":{"id":34932927496291,"product_id":7937880260707,"position":11,"created_at":"2025-12-11T15:49:15+08:00","updated_at":"2025-12-11T15:49:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f49b3e1607b107c2ac5cf66d8b4fb74b6c74fe5.webp?v=1765439357","variant_ids":[43884263342179]},"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-XU12","featured_media":{"alt":null,"id":26495299321955,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f49b3e1607b107c2ac5cf66d8b4fb74b6c74fe5.webp?v=1765439357"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43884263342179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-XU12","requires_shipping":true,"taxable":true,"featured_image":{"id":34932927496291,"product_id":7937880260707,"position":11,"created_at":"2025-12-11T15:49:15+08:00","updated_at":"2025-12-11T15:49:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f49b3e1607b107c2ac5cf66d8b4fb74b6c74fe5.webp?v=1765439357","variant_ids":[43884263342179]},"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-XU12","featured_media":{"alt":null,"id":26495299321955,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9f49b3e1607b107c2ac5cf66d8b4fb74b6c74fe5.webp?v=1765439357"}},"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: "停產"
}