$product = {"id":7938090205283,"title":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 吉克","handle":"iphone-14-plus-mod-nx-xw09","description":null,"published_at":"2025-12-12T09:57:23+08:00","created_at":"2025-12-11T17:01:37+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":43885066322019,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933801943139,"product_id":7938090205283,"position":8,"created_at":"2025-12-11T17:01:45+08:00","updated_at":"2025-12-11T17:01:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7c18913bfed0a329e621c340eaf515b7db8494.webp?v=1765443707","variant_ids":[43885066322019]},"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-XW09","featured_media":{"alt":null,"id":26496171114595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7c18913bfed0a329e621c340eaf515b7db8494.webp?v=1765443707"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff6b425267667cf05b498b1a8e7395069450bf0d.webp?v=1765443703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0905d3f34eae622e550f72ba6ddf7c88357b460e.webp?v=1765443703","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95e495200113cf2b8372f77ad53c4328365def42.webp?v=1765443704","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0630f704432a7d5e5cdd52959707ebb85da60b96.webp?v=1765443705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1e4528579120b8d5ee17779042a4a310e20fbe3.webp?v=1765443705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54bb86cbd37875be21d852f2e27a74ffd2066947.webp?v=1765443705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8ccbc2fda8f779e3c65c009e8c2fd38426e81e.webp?v=1765443706","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7c18913bfed0a329e621c340eaf515b7db8494.webp?v=1765443707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c3f83e313bb65e5e096a6e04448c54ed28d0255.webp?v=1765443708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89317852b7cea7236b7390bce9d568c716fd0dc.webp?v=1765443708","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e1c262e42de1183d55aa39ebd7576ab5a0bdc57.webp?v=1765443709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193a12664f2f4b79f8bb7d0dd4ec2fa2e5ed13e1.webp?v=1765443709","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcbbe03c909a9422625d98209688976bf0bfe508.webp?v=1765443710"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff6b425267667cf05b498b1a8e7395069450bf0d.webp?v=1765443703","options":["color"],"media":[{"alt":null,"id":26496169738339,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff6b425267667cf05b498b1a8e7395069450bf0d.webp?v=1765443703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff6b425267667cf05b498b1a8e7395069450bf0d.webp?v=1765443703","width":2000},{"alt":null,"id":26496169902179,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0905d3f34eae622e550f72ba6ddf7c88357b460e.webp?v=1765443703"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0905d3f34eae622e550f72ba6ddf7c88357b460e.webp?v=1765443703","width":2000},{"alt":null,"id":26496170033251,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95e495200113cf2b8372f77ad53c4328365def42.webp?v=1765443704"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/95e495200113cf2b8372f77ad53c4328365def42.webp?v=1765443704","width":2000},{"alt":null,"id":26496170197091,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0630f704432a7d5e5cdd52959707ebb85da60b96.webp?v=1765443705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0630f704432a7d5e5cdd52959707ebb85da60b96.webp?v=1765443705","width":2000},{"alt":null,"id":26496170328163,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1e4528579120b8d5ee17779042a4a310e20fbe3.webp?v=1765443705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d1e4528579120b8d5ee17779042a4a310e20fbe3.webp?v=1765443705","width":2000},{"alt":null,"id":26496170426467,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54bb86cbd37875be21d852f2e27a74ffd2066947.webp?v=1765443705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54bb86cbd37875be21d852f2e27a74ffd2066947.webp?v=1765443705","width":2000},{"alt":null,"id":26496170655843,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8ccbc2fda8f779e3c65c009e8c2fd38426e81e.webp?v=1765443706"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb8ccbc2fda8f779e3c65c009e8c2fd38426e81e.webp?v=1765443706","width":2000},{"alt":null,"id":26496171114595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7c18913bfed0a329e621c340eaf515b7db8494.webp?v=1765443707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7c18913bfed0a329e621c340eaf515b7db8494.webp?v=1765443707","width":2000},{"alt":null,"id":26496171376739,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c3f83e313bb65e5e096a6e04448c54ed28d0255.webp?v=1765443708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c3f83e313bb65e5e096a6e04448c54ed28d0255.webp?v=1765443708","width":2000},{"alt":null,"id":26496171573347,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89317852b7cea7236b7390bce9d568c716fd0dc.webp?v=1765443708"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f89317852b7cea7236b7390bce9d568c716fd0dc.webp?v=1765443708","width":2000},{"alt":null,"id":26496171769955,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e1c262e42de1183d55aa39ebd7576ab5a0bdc57.webp?v=1765443709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e1c262e42de1183d55aa39ebd7576ab5a0bdc57.webp?v=1765443709","width":2000},{"alt":null,"id":26496171999331,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193a12664f2f4b79f8bb7d0dd4ec2fa2e5ed13e1.webp?v=1765443709"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/193a12664f2f4b79f8bb7d0dd4ec2fa2e5ed13e1.webp?v=1765443709","width":2000},{"alt":null,"id":26496172327011,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcbbe03c909a9422625d98209688976bf0bfe508.webp?v=1765443710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fcbbe03c909a9422625d98209688976bf0bfe508.webp?v=1765443710","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43885066322019,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933801943139,"product_id":7938090205283,"position":8,"created_at":"2025-12-11T17:01:45+08:00","updated_at":"2025-12-11T17:01:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7c18913bfed0a329e621c340eaf515b7db8494.webp?v=1765443707","variant_ids":[43885066322019]},"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-XW09","featured_media":{"alt":null,"id":26496171114595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7c18913bfed0a329e621c340eaf515b7db8494.webp?v=1765443707"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43885066322019,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XW09","requires_shipping":true,"taxable":true,"featured_image":{"id":34933801943139,"product_id":7938090205283,"position":8,"created_at":"2025-12-11T17:01:45+08:00","updated_at":"2025-12-11T17:01:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7c18913bfed0a329e621c340eaf515b7db8494.webp?v=1765443707","variant_ids":[43885066322019]},"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-XW09","featured_media":{"alt":null,"id":26496171114595,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fc7c18913bfed0a329e621c340eaf515b7db8494.webp?v=1765443707"}},"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: "停產"
}