$product = {"id":7892719829091,"title":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Take Ivy","handle":"iphone-14-plus-mod-nx-magsafe-printable-aar09","description":null,"published_at":"2025-10-03T09:34:31+08:00","created_at":"2025-10-02T10:19:49+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":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":43756899663971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":34543953313891,"product_id":7892719829091,"position":12,"created_at":"2025-10-02T10:20:00+08:00","updated_at":"2025-10-02T10:20:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0fda48262b1e028e67104ef25d95618ed3a665.webp?v=1759371602","variant_ids":[43756899663971]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Take Ivy - 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-AAR09","featured_media":{"alt":null,"id":26113708195939,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0fda48262b1e028e67104ef25d95618ed3a665.webp?v=1759371602"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba8eb35fe68e8507138e4e3c2cb1862b7c67c73.webp?v=1759371592","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb81b165582166172fba91a828c904081c25d69.webp?v=1759371593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28907f1070299190bbbbc7da958a44e596397fd3.webp?v=1759371594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279e0efe035828acb30cdb97daa2a7ad1f0b08ed.webp?v=1759371594","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6170992ec21f9cb10305d5e24690eea9207ee33b.webp?v=1759371595","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21951096d823cc083704759c8212b22b94366c88.webp?v=1759371596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4319b73a1e8f38f72fd207ef50d9c2da5e2e86c1.webp?v=1759371597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee165ad57109098ba87b5ee97c25fce3c8d8a65.webp?v=1759371597","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/789c9ec0fe84ad865674004bebafa9b38a221e97.webp?v=1759371599","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c6851abe7bcbe5042ce24a2a1943e41a6ea9a38.webp?v=1759371600","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6efd44b28f23524dc9256f64253005d6d13d14e7.webp?v=1759371601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0fda48262b1e028e67104ef25d95618ed3a665.webp?v=1759371602","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f450cbcc68f196441d832c1bb916ffa93200a0d.webp?v=1759371603"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba8eb35fe68e8507138e4e3c2cb1862b7c67c73.webp?v=1759371592","options":["color"],"media":[{"alt":null,"id":26113704591459,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba8eb35fe68e8507138e4e3c2cb1862b7c67c73.webp?v=1759371592"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ba8eb35fe68e8507138e4e3c2cb1862b7c67c73.webp?v=1759371592","width":2000},{"alt":null,"id":26113704951907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb81b165582166172fba91a828c904081c25d69.webp?v=1759371593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb81b165582166172fba91a828c904081c25d69.webp?v=1759371593","width":2000},{"alt":null,"id":26113705279587,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28907f1070299190bbbbc7da958a44e596397fd3.webp?v=1759371594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28907f1070299190bbbbc7da958a44e596397fd3.webp?v=1759371594","width":2000},{"alt":null,"id":26113705640035,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279e0efe035828acb30cdb97daa2a7ad1f0b08ed.webp?v=1759371594"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279e0efe035828acb30cdb97daa2a7ad1f0b08ed.webp?v=1759371594","width":2000},{"alt":null,"id":26113706033251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6170992ec21f9cb10305d5e24690eea9207ee33b.webp?v=1759371595"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6170992ec21f9cb10305d5e24690eea9207ee33b.webp?v=1759371595","width":2000},{"alt":null,"id":26113706459235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21951096d823cc083704759c8212b22b94366c88.webp?v=1759371596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21951096d823cc083704759c8212b22b94366c88.webp?v=1759371596","width":2000},{"alt":null,"id":26113706885219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4319b73a1e8f38f72fd207ef50d9c2da5e2e86c1.webp?v=1759371597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4319b73a1e8f38f72fd207ef50d9c2da5e2e86c1.webp?v=1759371597","width":2000},{"alt":null,"id":26113707212899,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee165ad57109098ba87b5ee97c25fce3c8d8a65.webp?v=1759371597"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cee165ad57109098ba87b5ee97c25fce3c8d8a65.webp?v=1759371597","width":2000},{"alt":null,"id":26113707540579,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/789c9ec0fe84ad865674004bebafa9b38a221e97.webp?v=1759371599"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/789c9ec0fe84ad865674004bebafa9b38a221e97.webp?v=1759371599","width":2000},{"alt":null,"id":26113707769955,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c6851abe7bcbe5042ce24a2a1943e41a6ea9a38.webp?v=1759371600"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9c6851abe7bcbe5042ce24a2a1943e41a6ea9a38.webp?v=1759371600","width":2000},{"alt":null,"id":26113707999331,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6efd44b28f23524dc9256f64253005d6d13d14e7.webp?v=1759371601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6efd44b28f23524dc9256f64253005d6d13d14e7.webp?v=1759371601","width":2000},{"alt":null,"id":26113708195939,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0fda48262b1e028e67104ef25d95618ed3a665.webp?v=1759371602"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0fda48262b1e028e67104ef25d95618ed3a665.webp?v=1759371602","width":2000},{"alt":null,"id":26113708392547,"position":13,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f450cbcc68f196441d832c1bb916ffa93200a0d.webp?v=1759371603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4f450cbcc68f196441d832c1bb916ffa93200a0d.webp?v=1759371603","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43756899663971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":34543953313891,"product_id":7892719829091,"position":12,"created_at":"2025-10-02T10:20:00+08:00","updated_at":"2025-10-02T10:20:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0fda48262b1e028e67104ef25d95618ed3a665.webp?v=1759371602","variant_ids":[43756899663971]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Take Ivy - 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-AAR09","featured_media":{"alt":null,"id":26113708195939,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0fda48262b1e028e67104ef25d95618ed3a665.webp?v=1759371602"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43756899663971,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0126124-AAR09","requires_shipping":true,"taxable":true,"featured_image":{"id":34543953313891,"product_id":7892719829091,"position":12,"created_at":"2025-10-02T10:20:00+08:00","updated_at":"2025-10-02T10:20:02+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0fda48262b1e028e67104ef25d95618ed3a665.webp?v=1759371602","variant_ids":[43756899663971]},"available":true,"name":"iPhone 14 Plus Mod NX (MagSafe 兼容) Aaron Chang Take Ivy - 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-AAR09","featured_media":{"alt":null,"id":26113708195939,"position":12,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e0fda48262b1e028e67104ef25d95618ed3a665.webp?v=1759371602"}},"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: "停產"
}