$product = {"id":7892613300323,"title":"iPhone 14 Plus Mod NX Aaron Chang Ivy Boy","handle":"iphone-14-plus-mod-nx-printable-aar01","description":null,"published_at":"2025-10-03T09:52:04+08:00","created_at":"2025-10-02T09:48:33+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-aaronchang","device-iPhone 14 Plus","merge","reseller-aaronchang"],"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":43756492423267,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543537946723,"product_id":7892613300323,"position":4,"created_at":"2025-10-02T09:48:40+08:00","updated_at":"2025-10-02T09:48:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158e53c354b625c19b4f6efc3b190215a94f804e.webp?v=1759369722","variant_ids":[43756492423267]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang Ivy Boy - 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-AAR01","featured_media":{"alt":null,"id":26113292828771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158e53c354b625c19b4f6efc3b190215a94f804e.webp?v=1759369722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6853ab4a005fc44b3606d6d95802332dff815c8e.webp?v=1759369720","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd92fd75afa61274f3f9254956585b5584f5f850.webp?v=1759369721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98326f22ad40dd58d6e896b519881b65d563ea3a.webp?v=1759369721","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158e53c354b625c19b4f6efc3b190215a94f804e.webp?v=1759369722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc280f75b3f1ac3cb8fbeab24e453a0d9d746cb8.webp?v=1759369722","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01a63c8a8f1eb888f2ef5f604209a04b1c67dc4f.webp?v=1759369723","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd2b62c5277b8274d8e7d79e5c083234728bf656.webp?v=1759369726","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3f32704ba1ad2f89d09084835c0bfb3d7b5010.webp?v=1759369727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41263296840fce03bf678d7628d610ee2428b59f.webp?v=1759369727","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbae359b83c7fd7a33a7564ce3081bbf06ad5d5.webp?v=1759369728","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3c4322d7b5ebf898577d7cb85b847541978ddcc.webp?v=1759369729","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff4aedbc55d9b9206f0de8a24391ea5afaf33021.webp?v=1759369731","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae15dc33bff1f67b8d3b9e1171c09318b4973e5.webp?v=1759369732"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6853ab4a005fc44b3606d6d95802332dff815c8e.webp?v=1759369720","options":["color"],"media":[{"alt":null,"id":26113292009571,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6853ab4a005fc44b3606d6d95802332dff815c8e.webp?v=1759369720"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6853ab4a005fc44b3606d6d95802332dff815c8e.webp?v=1759369720","width":2000},{"alt":null,"id":26113292337251,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd92fd75afa61274f3f9254956585b5584f5f850.webp?v=1759369721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd92fd75afa61274f3f9254956585b5584f5f850.webp?v=1759369721","width":2000},{"alt":null,"id":26113292533859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98326f22ad40dd58d6e896b519881b65d563ea3a.webp?v=1759369721"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98326f22ad40dd58d6e896b519881b65d563ea3a.webp?v=1759369721","width":2000},{"alt":null,"id":26113292828771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158e53c354b625c19b4f6efc3b190215a94f804e.webp?v=1759369722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158e53c354b625c19b4f6efc3b190215a94f804e.webp?v=1759369722","width":2000},{"alt":null,"id":26113293090915,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc280f75b3f1ac3cb8fbeab24e453a0d9d746cb8.webp?v=1759369722"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc280f75b3f1ac3cb8fbeab24e453a0d9d746cb8.webp?v=1759369722","width":2000},{"alt":null,"id":26113293254755,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01a63c8a8f1eb888f2ef5f604209a04b1c67dc4f.webp?v=1759369723"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/01a63c8a8f1eb888f2ef5f604209a04b1c67dc4f.webp?v=1759369723","width":2000},{"alt":null,"id":26113293582435,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd2b62c5277b8274d8e7d79e5c083234728bf656.webp?v=1759369726"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cd2b62c5277b8274d8e7d79e5c083234728bf656.webp?v=1759369726","width":2000},{"alt":null,"id":26113293811811,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3f32704ba1ad2f89d09084835c0bfb3d7b5010.webp?v=1759369727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c3f32704ba1ad2f89d09084835c0bfb3d7b5010.webp?v=1759369727","width":2000},{"alt":null,"id":26113293975651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41263296840fce03bf678d7628d610ee2428b59f.webp?v=1759369727"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41263296840fce03bf678d7628d610ee2428b59f.webp?v=1759369727","width":2000},{"alt":null,"id":26113294106723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbae359b83c7fd7a33a7564ce3081bbf06ad5d5.webp?v=1759369728"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8fbae359b83c7fd7a33a7564ce3081bbf06ad5d5.webp?v=1759369728","width":2000},{"alt":null,"id":26113294434403,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3c4322d7b5ebf898577d7cb85b847541978ddcc.webp?v=1759369729"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a3c4322d7b5ebf898577d7cb85b847541978ddcc.webp?v=1759369729","width":2000},{"alt":null,"id":26113294663779,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff4aedbc55d9b9206f0de8a24391ea5afaf33021.webp?v=1759369731"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff4aedbc55d9b9206f0de8a24391ea5afaf33021.webp?v=1759369731","width":2000},{"alt":null,"id":26113294925923,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae15dc33bff1f67b8d3b9e1171c09318b4973e5.webp?v=1759369732"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1ae15dc33bff1f67b8d3b9e1171c09318b4973e5.webp?v=1759369732","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43756492423267,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543537946723,"product_id":7892613300323,"position":4,"created_at":"2025-10-02T09:48:40+08:00","updated_at":"2025-10-02T09:48:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158e53c354b625c19b4f6efc3b190215a94f804e.webp?v=1759369722","variant_ids":[43756492423267]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang Ivy Boy - 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-AAR01","featured_media":{"alt":null,"id":26113292828771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158e53c354b625c19b4f6efc3b190215a94f804e.webp?v=1759369722"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43756492423267,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"NPB0126124-AAR01","requires_shipping":true,"taxable":true,"featured_image":{"id":34543537946723,"product_id":7892613300323,"position":4,"created_at":"2025-10-02T09:48:40+08:00","updated_at":"2025-10-02T09:48:42+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158e53c354b625c19b4f6efc3b190215a94f804e.webp?v=1759369722","variant_ids":[43756492423267]},"available":true,"name":"iPhone 14 Plus Mod NX Aaron Chang Ivy Boy - 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-AAR01","featured_media":{"alt":null,"id":26113292828771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/158e53c354b625c19b4f6efc3b190215a94f804e.webp?v=1759369722"}},"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: "停產"
}