$product = {"id":7728425271395,"title":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) 小高潮色計事務所 澳洲好吃驚","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-iku03","description":null,"published_at":"2025-02-05T17:11:28+08:00","created_at":"2025-02-05T11:35:24+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區小高潮色計事務所 ikuiku studio","tags":["10%","20%","30%","40%","50%","brand-Apple","designer","designer-ikuiku-studio","device-iPhone 12 Pro Max","merge","reseller-ikuiku-studio"],"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":43155681280099,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-IKU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34515495649379,"product_id":7728425271395,"position":4,"created_at":"2025-09-22T16:37:26+08:00","updated_at":"2025-09-22T16:37:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adb0382151e6ec8b08d70860524c821733674d9.webp?v=1758530248","variant_ids":[43155681280099]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) 小高潮色計事務所 澳洲好吃驚 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-IKU03","featured_media":{"alt":null,"id":26085933318243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adb0382151e6ec8b08d70860524c821733674d9.webp?v=1758530248"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/970a76a6e5683ce7d26ce2efa40ea861f158277a.webp?v=1738726530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1787f8d12b13d156d33050aa016e16e9c9a7377.webp?v=1758530247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557c3bcfde8c1a3bca028af486369e622d8b76ca.webp?v=1758530247","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adb0382151e6ec8b08d70860524c821733674d9.webp?v=1758530248","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2f4f7e172ffb821e174d09c1e033a08c67b0301.webp?v=1758530248","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e1ad0b13c3a549ffaa21e7f411d8c2ac1f04da8.webp?v=1758530249","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0375b100fd68f2384729dbe48a729d9b23c5473c.webp?v=1758530250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de6de90e73edb8f7161c7d3ef668f266542d1b88.webp?v=1758530250","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5ba32f25014a1798d88cf00e5faba1e04e833d6.webp?v=1758530251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/094c3876670c47e952784bb8db2595bf8787748e.webp?v=1758530252"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/970a76a6e5683ce7d26ce2efa40ea861f158277a.webp?v=1738726530","options":["color"],"media":[{"alt":null,"id":25254948995171,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/970a76a6e5683ce7d26ce2efa40ea861f158277a.webp?v=1738726530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/970a76a6e5683ce7d26ce2efa40ea861f158277a.webp?v=1738726530","width":2000},{"alt":null,"id":26085932892259,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1787f8d12b13d156d33050aa016e16e9c9a7377.webp?v=1758530247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1787f8d12b13d156d33050aa016e16e9c9a7377.webp?v=1758530247","width":2000},{"alt":null,"id":26085933056099,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557c3bcfde8c1a3bca028af486369e622d8b76ca.webp?v=1758530247"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557c3bcfde8c1a3bca028af486369e622d8b76ca.webp?v=1758530247","width":2000},{"alt":null,"id":26085933318243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adb0382151e6ec8b08d70860524c821733674d9.webp?v=1758530248"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adb0382151e6ec8b08d70860524c821733674d9.webp?v=1758530248","width":2000},{"alt":null,"id":26085933514851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2f4f7e172ffb821e174d09c1e033a08c67b0301.webp?v=1758530248"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c2f4f7e172ffb821e174d09c1e033a08c67b0301.webp?v=1758530248","width":2000},{"alt":null,"id":26085933744227,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e1ad0b13c3a549ffaa21e7f411d8c2ac1f04da8.webp?v=1758530249"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e1ad0b13c3a549ffaa21e7f411d8c2ac1f04da8.webp?v=1758530249","width":2000},{"alt":null,"id":26085933973603,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0375b100fd68f2384729dbe48a729d9b23c5473c.webp?v=1758530250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0375b100fd68f2384729dbe48a729d9b23c5473c.webp?v=1758530250","width":2000},{"alt":null,"id":26085934235747,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de6de90e73edb8f7161c7d3ef668f266542d1b88.webp?v=1758530250"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de6de90e73edb8f7161c7d3ef668f266542d1b88.webp?v=1758530250","width":2000},{"alt":null,"id":26085934432355,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5ba32f25014a1798d88cf00e5faba1e04e833d6.webp?v=1758530251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e5ba32f25014a1798d88cf00e5faba1e04e833d6.webp?v=1758530251","width":2000},{"alt":null,"id":26085934891107,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/094c3876670c47e952784bb8db2595bf8787748e.webp?v=1758530252"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/094c3876670c47e952784bb8db2595bf8787748e.webp?v=1758530252","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":43155681280099,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-IKU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34515495649379,"product_id":7728425271395,"position":4,"created_at":"2025-09-22T16:37:26+08:00","updated_at":"2025-09-22T16:37:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adb0382151e6ec8b08d70860524c821733674d9.webp?v=1758530248","variant_ids":[43155681280099]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) 小高潮色計事務所 澳洲好吃驚 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-IKU03","featured_media":{"alt":null,"id":26085933318243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adb0382151e6ec8b08d70860524c821733674d9.webp?v=1758530248"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":43155681280099,"title":"Black","option1":"Black","option2":null,"option3":null,"sku":"MPB0118724-IKU03","requires_shipping":true,"taxable":true,"featured_image":{"id":34515495649379,"product_id":7728425271395,"position":4,"created_at":"2025-09-22T16:37:26+08:00","updated_at":"2025-09-22T16:37:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adb0382151e6ec8b08d70860524c821733674d9.webp?v=1758530248","variant_ids":[43155681280099]},"available":true,"name":"iPhone 12 Pro Max Mod NX (MagSafe 兼容) 小高潮色計事務所 澳洲好吃驚 - Black","public_title":"Black","options":["Black"],"price":110000,"weight":0,"compare_at_price":null,"inventory_quantity":0,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0118724-IKU03","featured_media":{"alt":null,"id":26085933318243,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0adb0382151e6ec8b08d70860524c821733674d9.webp?v=1758530248"}},"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: "停產"
}