$product = {"id":7414510944355,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(大堡礁)","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-af11","description":null,"published_at":"2024-06-11T17:51:45+08:00","created_at":"2024-05-05T14:28:31+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Look","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-look","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-look","Top50","type-Mod NX Printable MagSafe Printable"],"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":41907054641251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485655351395,"product_id":7414510944355,"position":3,"created_at":"2024-05-05T14:28:38+08:00","updated_at":"2024-05-05T14:28:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd06483c4d4d3d652d5ca9b7b14c6fdf9bc2379b_f8c7aecb-9f2e-4a90-bd4b-b56e6fe39f48.webp?v=1714890518","variant_ids":[41907054641251]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(大堡礁) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF11","featured_media":{"alt":null,"id":23890972082275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd06483c4d4d3d652d5ca9b7b14c6fdf9bc2379b_f8c7aecb-9f2e-4a90-bd4b-b56e6fe39f48.webp?v=1714890518"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907055165539,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485664559203,"product_id":7414510944355,"position":7,"created_at":"2024-05-05T14:28:47+08:00","updated_at":"2024-05-05T14:28:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d91eb2848f479c0f29e39f4add7232624c762d_e1eda5ce-299f-4577-9069-0130f92d2194.webp?v=1714890527","variant_ids":[41907055165539]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(大堡礁) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-AF11","featured_media":{"alt":null,"id":23890982010979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d91eb2848f479c0f29e39f4add7232624c762d_e1eda5ce-299f-4577-9069-0130f92d2194.webp?v=1714890527"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7b4110f529b9d2b14f82ff4dc963c8e16a41ff9_1af48f11-59b5-43be-9948-a530bbbf7ae1.webp?v=1714890513","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2703de7bc6ee8988a2d1f777baf3b937a3fee0_0773dbf2-c3d8-40a6-90bd-212606eeb4d0.webp?v=1714890515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd06483c4d4d3d652d5ca9b7b14c6fdf9bc2379b_f8c7aecb-9f2e-4a90-bd4b-b56e6fe39f48.webp?v=1714890518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e3f81248664538b4d1b01e2029160fb90d63cfc_36c6576f-f3c9-4f9a-a23d-4e5652cf0e67.webp?v=1714890520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea382cbd745b6f28ffd981c71bf3f210a3b101c_8bf610d7-a2a1-486a-b5ba-1c0a9be6b3d7.webp?v=1714890523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e332d1a447c4e189f8a35f3449e0dcda0e707397_102c75f2-ab34-4752-957d-1dd32ef15515.webp?v=1714890525","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d91eb2848f479c0f29e39f4add7232624c762d_e1eda5ce-299f-4577-9069-0130f92d2194.webp?v=1714890527","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a762e780589e50bb56730af9bf0f6dd73a0879_c2542b61-5bf6-4a01-a33c-682f9ed054f3.webp?v=1714890530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c89453f66bd8c9026913f923ce174921792802ce_bfd1447a-6047-452f-8148-86a799a94dd8.webp?v=1714890532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77efe4d432d57ea0267e0887e1cb7e5da9b63133_5732ac79-980b-4788-9c0b-c38096ae0bbd.webp?v=1714890534","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a59cce5bd2d20b592a3ceefd6ce117dbb570af4d_4ac8ff32-9883-4ba5-98b5-961fa606b971.webp?v=1714890537"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7b4110f529b9d2b14f82ff4dc963c8e16a41ff9_1af48f11-59b5-43be-9948-a530bbbf7ae1.webp?v=1714890513","options":["color"],"media":[{"alt":null,"id":23890967363683,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7b4110f529b9d2b14f82ff4dc963c8e16a41ff9_1af48f11-59b5-43be-9948-a530bbbf7ae1.webp?v=1714890513"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d7b4110f529b9d2b14f82ff4dc963c8e16a41ff9_1af48f11-59b5-43be-9948-a530bbbf7ae1.webp?v=1714890513","width":2000},{"alt":null,"id":23890969755747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2703de7bc6ee8988a2d1f777baf3b937a3fee0_0773dbf2-c3d8-40a6-90bd-212606eeb4d0.webp?v=1714890515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba2703de7bc6ee8988a2d1f777baf3b937a3fee0_0773dbf2-c3d8-40a6-90bd-212606eeb4d0.webp?v=1714890515","width":2000},{"alt":null,"id":23890972082275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd06483c4d4d3d652d5ca9b7b14c6fdf9bc2379b_f8c7aecb-9f2e-4a90-bd4b-b56e6fe39f48.webp?v=1714890518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd06483c4d4d3d652d5ca9b7b14c6fdf9bc2379b_f8c7aecb-9f2e-4a90-bd4b-b56e6fe39f48.webp?v=1714890518","width":2000},{"alt":null,"id":23890974572643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e3f81248664538b4d1b01e2029160fb90d63cfc_36c6576f-f3c9-4f9a-a23d-4e5652cf0e67.webp?v=1714890520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e3f81248664538b4d1b01e2029160fb90d63cfc_36c6576f-f3c9-4f9a-a23d-4e5652cf0e67.webp?v=1714890520","width":2000},{"alt":null,"id":23890977095779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea382cbd745b6f28ffd981c71bf3f210a3b101c_8bf610d7-a2a1-486a-b5ba-1c0a9be6b3d7.webp?v=1714890523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9ea382cbd745b6f28ffd981c71bf3f210a3b101c_8bf610d7-a2a1-486a-b5ba-1c0a9be6b3d7.webp?v=1714890523","width":2000},{"alt":null,"id":23890979324003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e332d1a447c4e189f8a35f3449e0dcda0e707397_102c75f2-ab34-4752-957d-1dd32ef15515.webp?v=1714890525"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e332d1a447c4e189f8a35f3449e0dcda0e707397_102c75f2-ab34-4752-957d-1dd32ef15515.webp?v=1714890525","width":2000},{"alt":null,"id":23890982010979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d91eb2848f479c0f29e39f4add7232624c762d_e1eda5ce-299f-4577-9069-0130f92d2194.webp?v=1714890527"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d91eb2848f479c0f29e39f4add7232624c762d_e1eda5ce-299f-4577-9069-0130f92d2194.webp?v=1714890527","width":2000},{"alt":null,"id":23890984861795,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a762e780589e50bb56730af9bf0f6dd73a0879_c2542b61-5bf6-4a01-a33c-682f9ed054f3.webp?v=1714890530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/08a762e780589e50bb56730af9bf0f6dd73a0879_c2542b61-5bf6-4a01-a33c-682f9ed054f3.webp?v=1714890530","width":2000},{"alt":null,"id":23890987221091,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c89453f66bd8c9026913f923ce174921792802ce_bfd1447a-6047-452f-8148-86a799a94dd8.webp?v=1714890532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c89453f66bd8c9026913f923ce174921792802ce_bfd1447a-6047-452f-8148-86a799a94dd8.webp?v=1714890532","width":2000},{"alt":null,"id":23890989908067,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77efe4d432d57ea0267e0887e1cb7e5da9b63133_5732ac79-980b-4788-9c0b-c38096ae0bbd.webp?v=1714890534"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/77efe4d432d57ea0267e0887e1cb7e5da9b63133_5732ac79-980b-4788-9c0b-c38096ae0bbd.webp?v=1714890534","width":2000},{"alt":null,"id":23890992922723,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a59cce5bd2d20b592a3ceefd6ce117dbb570af4d_4ac8ff32-9883-4ba5-98b5-961fa606b971.webp?v=1714890537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a59cce5bd2d20b592a3ceefd6ce117dbb570af4d_4ac8ff32-9883-4ba5-98b5-961fa606b971.webp?v=1714890537","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907054641251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485655351395,"product_id":7414510944355,"position":3,"created_at":"2024-05-05T14:28:38+08:00","updated_at":"2024-05-05T14:28:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd06483c4d4d3d652d5ca9b7b14c6fdf9bc2379b_f8c7aecb-9f2e-4a90-bd4b-b56e6fe39f48.webp?v=1714890518","variant_ids":[41907054641251]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(大堡礁) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF11","featured_media":{"alt":null,"id":23890972082275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd06483c4d4d3d652d5ca9b7b14c6fdf9bc2379b_f8c7aecb-9f2e-4a90-bd4b-b56e6fe39f48.webp?v=1714890518"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907055165539,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485664559203,"product_id":7414510944355,"position":7,"created_at":"2024-05-05T14:28:47+08:00","updated_at":"2024-05-05T14:28:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d91eb2848f479c0f29e39f4add7232624c762d_e1eda5ce-299f-4577-9069-0130f92d2194.webp?v=1714890527","variant_ids":[41907055165539]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(大堡礁) - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-AF11","featured_media":{"alt":null,"id":23890982010979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a5d91eb2848f479c0f29e39f4add7232624c762d_e1eda5ce-299f-4577-9069-0130f92d2194.webp?v=1714890527"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907054641251,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AF11","requires_shipping":true,"taxable":true,"featured_image":{"id":31485655351395,"product_id":7414510944355,"position":3,"created_at":"2024-05-05T14:28:38+08:00","updated_at":"2024-05-05T14:28:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd06483c4d4d3d652d5ca9b7b14c6fdf9bc2379b_f8c7aecb-9f2e-4a90-bd4b-b56e6fe39f48.webp?v=1714890518","variant_ids":[41907054641251]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Look - 大自然的傑作(大堡礁) - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-AF11","featured_media":{"alt":null,"id":23890972082275,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd06483c4d4d3d652d5ca9b7b14c6fdf9bc2379b_f8c7aecb-9f2e-4a90-bd4b-b56e6fe39f48.webp?v=1714890518"}},"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: "停產"
}