$product = {"id":7414134636643,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo貼紙款","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb04","description":null,"published_at":"2024-06-11T17:49:19+08:00","created_at":"2024-05-05T14:12:15+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","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":41904354590819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484748496995,"product_id":7414134636643,"position":4,"created_at":"2024-05-05T14:12:24+08:00","updated_at":"2024-05-05T14:12:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91329618c267b351d249de364af656cfa4c4a2f8_bd29b7c3-7c5c-4179-b9b6-77d447ad2ac4.webp?v=1714889544","variant_ids":[41904354590819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo貼紙款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SB04","featured_media":{"alt":null,"id":23890043863139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91329618c267b351d249de364af656cfa4c4a2f8_bd29b7c3-7c5c-4179-b9b6-77d447ad2ac4.webp?v=1714889544"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904355442787,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484746793059,"product_id":7414134636643,"position":1,"created_at":"2024-05-05T14:12:17+08:00","updated_at":"2024-05-05T14:12:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2ffafa4fa5106ba170dbf6fdac77346643b1ec_299f791b-42c8-46e9-9c74-396f42dd46f3.webp?v=1714889537","variant_ids":[41904355442787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo貼紙款 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-SB04","featured_media":{"alt":null,"id":23890041241699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2ffafa4fa5106ba170dbf6fdac77346643b1ec_299f791b-42c8-46e9-9c74-396f42dd46f3.webp?v=1714889537"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2ffafa4fa5106ba170dbf6fdac77346643b1ec_299f791b-42c8-46e9-9c74-396f42dd46f3.webp?v=1714889537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4596a623895d586180b53e1ae0c4fa1b5df075a_680603dd-e0ac-412c-ad9b-ebbe3a03bf0c.webp?v=1714889540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4088ed285c54160ae2e10a74e37e955c5b2bbf0_6c4436d1-6dae-41e1-869c-fec8a45d46f8.webp?v=1714889542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91329618c267b351d249de364af656cfa4c4a2f8_bd29b7c3-7c5c-4179-b9b6-77d447ad2ac4.webp?v=1714889544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e545da84d0c7a5b4daac58032b1750051d239386_b9c46466-95cb-4c91-882a-bd2390ff1fd2.webp?v=1714889549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09cbdb34c9651798f70c8545f390bd4e6b51de72_40b2b8fe-3016-46b5-bad6-e3bc2845c6a1.webp?v=1714889552","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e816fe4fe6ce514afe29fcb98bb7d12774048884_8f84879a-24f8-426a-abd0-78f33816a8d2.webp?v=1714889554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d353a8dce6608762d1cd07fa383d196441eaa8c_30c76b01-d9ab-4f53-987c-02ea7247f47e.webp?v=1714889557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7babecfbc9e697441a473f6958a107b005341bc_c381cc8c-9687-4930-a5c9-b878211d991c.webp?v=1714889559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d9ae7c4d521153353f4c6e98130f227f637c528_4ab6188d-3291-483a-b821-ecfa1dbec6c6.webp?v=1714889562","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c7561c9479c1de2e681e173ab3acfae30c5039_9c7a0d93-fe9f-4b25-abbe-09a1b13289a2.webp?v=1714889564"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2ffafa4fa5106ba170dbf6fdac77346643b1ec_299f791b-42c8-46e9-9c74-396f42dd46f3.webp?v=1714889537","options":["color"],"media":[{"alt":null,"id":23890041241699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2ffafa4fa5106ba170dbf6fdac77346643b1ec_299f791b-42c8-46e9-9c74-396f42dd46f3.webp?v=1714889537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2ffafa4fa5106ba170dbf6fdac77346643b1ec_299f791b-42c8-46e9-9c74-396f42dd46f3.webp?v=1714889537","width":2000},{"alt":null,"id":23890041995363,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4596a623895d586180b53e1ae0c4fa1b5df075a_680603dd-e0ac-412c-ad9b-ebbe3a03bf0c.webp?v=1714889540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4596a623895d586180b53e1ae0c4fa1b5df075a_680603dd-e0ac-412c-ad9b-ebbe3a03bf0c.webp?v=1714889540","width":2000},{"alt":null,"id":23890042355811,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4088ed285c54160ae2e10a74e37e955c5b2bbf0_6c4436d1-6dae-41e1-869c-fec8a45d46f8.webp?v=1714889542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e4088ed285c54160ae2e10a74e37e955c5b2bbf0_6c4436d1-6dae-41e1-869c-fec8a45d46f8.webp?v=1714889542","width":2000},{"alt":null,"id":23890043863139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91329618c267b351d249de364af656cfa4c4a2f8_bd29b7c3-7c5c-4179-b9b6-77d447ad2ac4.webp?v=1714889544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91329618c267b351d249de364af656cfa4c4a2f8_bd29b7c3-7c5c-4179-b9b6-77d447ad2ac4.webp?v=1714889544","width":2000},{"alt":null,"id":23890047303779,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e545da84d0c7a5b4daac58032b1750051d239386_b9c46466-95cb-4c91-882a-bd2390ff1fd2.webp?v=1714889549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e545da84d0c7a5b4daac58032b1750051d239386_b9c46466-95cb-4c91-882a-bd2390ff1fd2.webp?v=1714889549","width":2000},{"alt":null,"id":23890049368163,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09cbdb34c9651798f70c8545f390bd4e6b51de72_40b2b8fe-3016-46b5-bad6-e3bc2845c6a1.webp?v=1714889552"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09cbdb34c9651798f70c8545f390bd4e6b51de72_40b2b8fe-3016-46b5-bad6-e3bc2845c6a1.webp?v=1714889552","width":2000},{"alt":null,"id":23890051465315,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e816fe4fe6ce514afe29fcb98bb7d12774048884_8f84879a-24f8-426a-abd0-78f33816a8d2.webp?v=1714889554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e816fe4fe6ce514afe29fcb98bb7d12774048884_8f84879a-24f8-426a-abd0-78f33816a8d2.webp?v=1714889554","width":2000},{"alt":null,"id":23890053693539,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d353a8dce6608762d1cd07fa383d196441eaa8c_30c76b01-d9ab-4f53-987c-02ea7247f47e.webp?v=1714889557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d353a8dce6608762d1cd07fa383d196441eaa8c_30c76b01-d9ab-4f53-987c-02ea7247f47e.webp?v=1714889557","width":2000},{"alt":null,"id":23890055528547,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7babecfbc9e697441a473f6958a107b005341bc_c381cc8c-9687-4930-a5c9-b878211d991c.webp?v=1714889559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a7babecfbc9e697441a473f6958a107b005341bc_c381cc8c-9687-4930-a5c9-b878211d991c.webp?v=1714889559","width":2000},{"alt":null,"id":23890057527395,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d9ae7c4d521153353f4c6e98130f227f637c528_4ab6188d-3291-483a-b821-ecfa1dbec6c6.webp?v=1714889562"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2d9ae7c4d521153353f4c6e98130f227f637c528_4ab6188d-3291-483a-b821-ecfa1dbec6c6.webp?v=1714889562","width":2000},{"alt":null,"id":23890059460707,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c7561c9479c1de2e681e173ab3acfae30c5039_9c7a0d93-fe9f-4b25-abbe-09a1b13289a2.webp?v=1714889564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e8c7561c9479c1de2e681e173ab3acfae30c5039_9c7a0d93-fe9f-4b25-abbe-09a1b13289a2.webp?v=1714889564","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904354590819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484748496995,"product_id":7414134636643,"position":4,"created_at":"2024-05-05T14:12:24+08:00","updated_at":"2024-05-05T14:12:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91329618c267b351d249de364af656cfa4c4a2f8_bd29b7c3-7c5c-4179-b9b6-77d447ad2ac4.webp?v=1714889544","variant_ids":[41904354590819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo貼紙款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SB04","featured_media":{"alt":null,"id":23890043863139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91329618c267b351d249de364af656cfa4c4a2f8_bd29b7c3-7c5c-4179-b9b6-77d447ad2ac4.webp?v=1714889544"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904355442787,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484746793059,"product_id":7414134636643,"position":1,"created_at":"2024-05-05T14:12:17+08:00","updated_at":"2024-05-05T14:12:17+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2ffafa4fa5106ba170dbf6fdac77346643b1ec_299f791b-42c8-46e9-9c74-396f42dd46f3.webp?v=1714889537","variant_ids":[41904355442787]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo貼紙款 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-SB04","featured_media":{"alt":null,"id":23890041241699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e2ffafa4fa5106ba170dbf6fdac77346643b1ec_299f791b-42c8-46e9-9c74-396f42dd46f3.webp?v=1714889537"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904354590819,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB04","requires_shipping":true,"taxable":true,"featured_image":{"id":31484748496995,"product_id":7414134636643,"position":4,"created_at":"2024-05-05T14:12:24+08:00","updated_at":"2024-05-05T14:12:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91329618c267b351d249de364af656cfa4c4a2f8_bd29b7c3-7c5c-4179-b9b6-77d447ad2ac4.webp?v=1714889544","variant_ids":[41904354590819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - Logo貼紙款 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-SB04","featured_media":{"alt":null,"id":23890043863139,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91329618c267b351d249de364af656cfa4c4a2f8_bd29b7c3-7c5c-4179-b9b6-77d447ad2ac4.webp?v=1714889544"}},"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: "停產"
}