$product = {"id":7938099970147,"title":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 顎之巨人","handle":"iphone-14-plus-mod-nx-xw05","description":null,"published_at":"2025-12-12T09:55:13+08:00","created_at":"2025-12-11T17:03:58+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":43885103382627,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XW05","requires_shipping":true,"taxable":true,"featured_image":{"id":34933842542691,"product_id":7938099970147,"position":11,"created_at":"2025-12-11T17:04:09+08:00","updated_at":"2025-12-11T17:04:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956737fd05b92e7e680330988a34355590af67c.webp?v=1765443851","variant_ids":[43885103382627]},"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-XW05","featured_media":{"alt":null,"id":26496211320931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956737fd05b92e7e680330988a34355590af67c.webp?v=1765443851"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529622e5d5880d042f119c173e2a04c18b788208.webp?v=1765443846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bec061c23f3feb23dc5f26e84adb32a12165c799.webp?v=1765443848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d850835e19339774275b45eb87d3bb0d73b13178.webp?v=1765443847","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01419e66230503b2bef75fd2f78373203b467eb4.webp?v=1765443848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3bf74a8211fda387882d51fe068e817681bd63c.webp?v=1765443848","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f88f50cdab1b790a87e1f2391ca6eb0a24f7540.webp?v=1765443849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8fe1ad550a713d86e8c295762221c744907e236.webp?v=1765443849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/203ff0d4a606eab1171308eec955aa11a667ae31.webp?v=1765443850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91f347ff6794881229c3d98bf954086f2f9b932d.webp?v=1765443850","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4af4b441127cc882292602392c3393b058266594.webp?v=1765443851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956737fd05b92e7e680330988a34355590af67c.webp?v=1765443851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d0300fb68d7648b1da5b7cfa6ca4ad0b625367.webp?v=1765443852","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7cc06a9d2ae2e9cfc82a3c7d73f1fe294db9b7.webp?v=1765443852"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529622e5d5880d042f119c173e2a04c18b788208.webp?v=1765443846","options":["color"],"media":[{"alt":null,"id":26496209420387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529622e5d5880d042f119c173e2a04c18b788208.webp?v=1765443846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/529622e5d5880d042f119c173e2a04c18b788208.webp?v=1765443846","width":2000},{"alt":null,"id":26496209715299,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bec061c23f3feb23dc5f26e84adb32a12165c799.webp?v=1765443848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bec061c23f3feb23dc5f26e84adb32a12165c799.webp?v=1765443848","width":2000},{"alt":null,"id":26496209977443,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d850835e19339774275b45eb87d3bb0d73b13178.webp?v=1765443847"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d850835e19339774275b45eb87d3bb0d73b13178.webp?v=1765443847","width":2000},{"alt":null,"id":26496210305123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01419e66230503b2bef75fd2f78373203b467eb4.webp?v=1765443848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01419e66230503b2bef75fd2f78373203b467eb4.webp?v=1765443848","width":2000},{"alt":null,"id":26496210501731,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3bf74a8211fda387882d51fe068e817681bd63c.webp?v=1765443848"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3bf74a8211fda387882d51fe068e817681bd63c.webp?v=1765443848","width":2000},{"alt":null,"id":26496210632803,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f88f50cdab1b790a87e1f2391ca6eb0a24f7540.webp?v=1765443849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f88f50cdab1b790a87e1f2391ca6eb0a24f7540.webp?v=1765443849","width":2000},{"alt":null,"id":26496210796643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8fe1ad550a713d86e8c295762221c744907e236.webp?v=1765443849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c8fe1ad550a713d86e8c295762221c744907e236.webp?v=1765443849","width":2000},{"alt":null,"id":26496210927715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/203ff0d4a606eab1171308eec955aa11a667ae31.webp?v=1765443850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/203ff0d4a606eab1171308eec955aa11a667ae31.webp?v=1765443850","width":2000},{"alt":null,"id":26496211091555,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91f347ff6794881229c3d98bf954086f2f9b932d.webp?v=1765443850"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91f347ff6794881229c3d98bf954086f2f9b932d.webp?v=1765443850","width":2000},{"alt":null,"id":26496211189859,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4af4b441127cc882292602392c3393b058266594.webp?v=1765443851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4af4b441127cc882292602392c3393b058266594.webp?v=1765443851","width":2000},{"alt":null,"id":26496211320931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956737fd05b92e7e680330988a34355590af67c.webp?v=1765443851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956737fd05b92e7e680330988a34355590af67c.webp?v=1765443851","width":2000},{"alt":null,"id":26496211419235,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d0300fb68d7648b1da5b7cfa6ca4ad0b625367.webp?v=1765443852"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61d0300fb68d7648b1da5b7cfa6ca4ad0b625367.webp?v=1765443852","width":2000},{"alt":null,"id":26496211583075,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7cc06a9d2ae2e9cfc82a3c7d73f1fe294db9b7.webp?v=1765443852"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d7cc06a9d2ae2e9cfc82a3c7d73f1fe294db9b7.webp?v=1765443852","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43885103382627,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XW05","requires_shipping":true,"taxable":true,"featured_image":{"id":34933842542691,"product_id":7938099970147,"position":11,"created_at":"2025-12-11T17:04:09+08:00","updated_at":"2025-12-11T17:04:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956737fd05b92e7e680330988a34355590af67c.webp?v=1765443851","variant_ids":[43885103382627]},"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-XW05","featured_media":{"alt":null,"id":26496211320931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956737fd05b92e7e680330988a34355590af67c.webp?v=1765443851"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43885103382627,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XW05","requires_shipping":true,"taxable":true,"featured_image":{"id":34933842542691,"product_id":7938099970147,"position":11,"created_at":"2025-12-11T17:04:09+08:00","updated_at":"2025-12-11T17:04:11+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956737fd05b92e7e680330988a34355590af67c.webp?v=1765443851","variant_ids":[43885103382627]},"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-XW05","featured_media":{"alt":null,"id":26496211320931,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b956737fd05b92e7e680330988a34355590af67c.webp?v=1765443851"}},"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: "停產"
}