$product = {"id":7937936064611,"title":"iPhone 14 Plus Mod NX 進擊的巨人 Attack on Titan 元素拼貼","handle":"iphone-14-plus-mod-nx-xu07","description":null,"published_at":"2025-12-12T10:29:03+08:00","created_at":"2025-12-11T16:01:59+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":43884472238179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34933154054243,"product_id":7937936064611,"position":9,"created_at":"2025-12-11T16:02:08+08:00","updated_at":"2025-12-11T16:02:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081d621a0d7258518cffa20b47bf7fe018aabe00.webp?v=1765440130","variant_ids":[43884472238179]},"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-XU07","featured_media":{"alt":null,"id":26495525781603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081d621a0d7258518cffa20b47bf7fe018aabe00.webp?v=1765440130"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf575a1ac7ad524e944b826db0495ed09b5e409.webp?v=1765440126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4acce0e3e1285710a4f068b246e59d7d1ce1df56.webp?v=1765440126","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0a9e81bbe494f224e10bd2beadc739d3b65210.webp?v=1765440128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bae3f4bab1da82cf880ae3fffa256f55e67a016.webp?v=1765440127","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74027b71e8857a0b317e2ca3308d16f18a815b33.webp?v=1765440128","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15a625d390c2028561ec7e24830c88f2793eb0f2.webp?v=1765440129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87210fab05d0b1b74125c7be9d763a16b9b6d809.webp?v=1765440129","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0749c157e5ead700431197022dbc147131894ac8.webp?v=1765440130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081d621a0d7258518cffa20b47bf7fe018aabe00.webp?v=1765440130","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe943fe96ac8822159523e819988cc41b0c5bb7.webp?v=1765440131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5270a82ef6075f5c65742a2d34e52b15c9631965.webp?v=1765440131","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ff7ac40a829d23047c961704adb565516bea8b.webp?v=1765440132","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52dd2eb0e369cc6e9f4ea05221db5ed5a30bce71.webp?v=1765440132"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf575a1ac7ad524e944b826db0495ed09b5e409.webp?v=1765440126","options":["color"],"media":[{"alt":null,"id":26495524241507,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf575a1ac7ad524e944b826db0495ed09b5e409.webp?v=1765440126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/faf575a1ac7ad524e944b826db0495ed09b5e409.webp?v=1765440126","width":2000},{"alt":null,"id":26495524470883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4acce0e3e1285710a4f068b246e59d7d1ce1df56.webp?v=1765440126"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4acce0e3e1285710a4f068b246e59d7d1ce1df56.webp?v=1765440126","width":2000},{"alt":null,"id":26495524536419,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0a9e81bbe494f224e10bd2beadc739d3b65210.webp?v=1765440128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ad0a9e81bbe494f224e10bd2beadc739d3b65210.webp?v=1765440128","width":2000},{"alt":null,"id":26495524733027,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bae3f4bab1da82cf880ae3fffa256f55e67a016.webp?v=1765440127"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0bae3f4bab1da82cf880ae3fffa256f55e67a016.webp?v=1765440127","width":2000},{"alt":null,"id":26495524995171,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74027b71e8857a0b317e2ca3308d16f18a815b33.webp?v=1765440128"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/74027b71e8857a0b317e2ca3308d16f18a815b33.webp?v=1765440128","width":2000},{"alt":null,"id":26495525191779,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15a625d390c2028561ec7e24830c88f2793eb0f2.webp?v=1765440129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/15a625d390c2028561ec7e24830c88f2793eb0f2.webp?v=1765440129","width":2000},{"alt":null,"id":26495525355619,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87210fab05d0b1b74125c7be9d763a16b9b6d809.webp?v=1765440129"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87210fab05d0b1b74125c7be9d763a16b9b6d809.webp?v=1765440129","width":2000},{"alt":null,"id":26495525552227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0749c157e5ead700431197022dbc147131894ac8.webp?v=1765440130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0749c157e5ead700431197022dbc147131894ac8.webp?v=1765440130","width":2000},{"alt":null,"id":26495525781603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081d621a0d7258518cffa20b47bf7fe018aabe00.webp?v=1765440130"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081d621a0d7258518cffa20b47bf7fe018aabe00.webp?v=1765440130","width":2000},{"alt":null,"id":26495526010979,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe943fe96ac8822159523e819988cc41b0c5bb7.webp?v=1765440131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1fe943fe96ac8822159523e819988cc41b0c5bb7.webp?v=1765440131","width":2000},{"alt":null,"id":26495526207587,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5270a82ef6075f5c65742a2d34e52b15c9631965.webp?v=1765440131"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5270a82ef6075f5c65742a2d34e52b15c9631965.webp?v=1765440131","width":2000},{"alt":null,"id":26495526371427,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ff7ac40a829d23047c961704adb565516bea8b.webp?v=1765440132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8ff7ac40a829d23047c961704adb565516bea8b.webp?v=1765440132","width":2000},{"alt":null,"id":26495526469731,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52dd2eb0e369cc6e9f4ea05221db5ed5a30bce71.webp?v=1765440132"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/52dd2eb0e369cc6e9f4ea05221db5ed5a30bce71.webp?v=1765440132","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":43884472238179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34933154054243,"product_id":7937936064611,"position":9,"created_at":"2025-12-11T16:02:08+08:00","updated_at":"2025-12-11T16:02:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081d621a0d7258518cffa20b47bf7fe018aabe00.webp?v=1765440130","variant_ids":[43884472238179]},"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-XU07","featured_media":{"alt":null,"id":26495525781603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081d621a0d7258518cffa20b47bf7fe018aabe00.webp?v=1765440130"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43884472238179,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-XU07","requires_shipping":true,"taxable":true,"featured_image":{"id":34933154054243,"product_id":7937936064611,"position":9,"created_at":"2025-12-11T16:02:08+08:00","updated_at":"2025-12-11T16:02:10+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081d621a0d7258518cffa20b47bf7fe018aabe00.webp?v=1765440130","variant_ids":[43884472238179]},"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-XU07","featured_media":{"alt":null,"id":26495525781603,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/081d621a0d7258518cffa20b47bf7fe018aabe00.webp?v=1765440130"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}