$product = {"id":7414039576675,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb79","description":null,"published_at":"2024-06-11T17:48:27+08:00","created_at":"2024-05-05T14:06:13+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","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":41903657451619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31484525379683,"product_id":7414039576675,"position":1,"created_at":"2024-05-05T14:06:16+08:00","updated_at":"2024-05-05T14:06:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e723febad4675da87fd971d640f5557b19048a_ab467b58-decd-4c32-a5f9-8e51ad0c16ac.webp?v=1714889176","variant_ids":[41903657451619]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列 - 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-PB79","featured_media":{"alt":null,"id":23889820876899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e723febad4675da87fd971d640f5557b19048a_ab467b58-decd-4c32-a5f9-8e51ad0c16ac.webp?v=1714889176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903658041443,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31484538028131,"product_id":7414039576675,"position":8,"created_at":"2024-05-05T14:06:32+08:00","updated_at":"2024-05-05T14:06:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21004eb75672d4de4eb98ca0a9bb37e15ce54d26_0f4fcf18-1630-4582-9f8a-37a1245a6696.webp?v=1714889192","variant_ids":[41903658041443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列 - 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-PB79","featured_media":{"alt":null,"id":23889833754723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21004eb75672d4de4eb98ca0a9bb37e15ce54d26_0f4fcf18-1630-4582-9f8a-37a1245a6696.webp?v=1714889192"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e723febad4675da87fd971d640f5557b19048a_ab467b58-decd-4c32-a5f9-8e51ad0c16ac.webp?v=1714889176","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7357259b3c37f29976426f9fccc9c0eb0f7d96f6_0db0145c-5daa-4a6e-b57d-21075e8cce9a.webp?v=1714889178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f25a498fb7aaa9e7eb1c77c31b7b479400e3ac5e_5d0e7c47-0656-4fbd-80be-10ad69691a76.webp?v=1714889181","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49fd9efe225d53df1f3b5265f54acf14192a25b_b20a88c0-e176-4fac-b8b3-d69d8c1dbe02.webp?v=1714889183","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cdcd0f3b6ba0bb9a42a0f260101f1fd9238375_d9270457-3fcc-4785-8f5b-8005fbd24166.webp?v=1714889185","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b1fb6d7ba4e1944d540fd7ef81395961fe62f_610c0616-e259-421e-bc1e-88dbe9751033.webp?v=1714889188","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c64f962b85afb2372294ef80bd413d894cb7982_5ba52684-8a8b-40ed-af83-30b9a2c0b22a.webp?v=1714889190","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21004eb75672d4de4eb98ca0a9bb37e15ce54d26_0f4fcf18-1630-4582-9f8a-37a1245a6696.webp?v=1714889192","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f169db0805afbfc466beaae68d90c5e0b390b7_077b3ffc-11b1-4bfd-b0e6-ec6d7c4aaf8b.webp?v=1714889194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a92301b8ecc6d376afa76ea9d857422e2b7c84c_143794c4-1812-434e-901d-c49bf09c7efc.webp?v=1714889197","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34875d035a4699d8199441637f568b21d01f7694_750fe649-04eb-4a9c-9e2f-9d8530dc5633.webp?v=1714889199"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e723febad4675da87fd971d640f5557b19048a_ab467b58-decd-4c32-a5f9-8e51ad0c16ac.webp?v=1714889176","options":["color"],"media":[{"alt":null,"id":23889820876899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e723febad4675da87fd971d640f5557b19048a_ab467b58-decd-4c32-a5f9-8e51ad0c16ac.webp?v=1714889176"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e723febad4675da87fd971d640f5557b19048a_ab467b58-decd-4c32-a5f9-8e51ad0c16ac.webp?v=1714889176","width":2000},{"alt":null,"id":23889822744675,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7357259b3c37f29976426f9fccc9c0eb0f7d96f6_0db0145c-5daa-4a6e-b57d-21075e8cce9a.webp?v=1714889178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7357259b3c37f29976426f9fccc9c0eb0f7d96f6_0db0145c-5daa-4a6e-b57d-21075e8cce9a.webp?v=1714889178","width":2000},{"alt":null,"id":23889824546915,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f25a498fb7aaa9e7eb1c77c31b7b479400e3ac5e_5d0e7c47-0656-4fbd-80be-10ad69691a76.webp?v=1714889181"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f25a498fb7aaa9e7eb1c77c31b7b479400e3ac5e_5d0e7c47-0656-4fbd-80be-10ad69691a76.webp?v=1714889181","width":2000},{"alt":null,"id":23889826283619,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49fd9efe225d53df1f3b5265f54acf14192a25b_b20a88c0-e176-4fac-b8b3-d69d8c1dbe02.webp?v=1714889183"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d49fd9efe225d53df1f3b5265f54acf14192a25b_b20a88c0-e176-4fac-b8b3-d69d8c1dbe02.webp?v=1714889183","width":2000},{"alt":null,"id":23889828249699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cdcd0f3b6ba0bb9a42a0f260101f1fd9238375_d9270457-3fcc-4785-8f5b-8005fbd24166.webp?v=1714889185"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40cdcd0f3b6ba0bb9a42a0f260101f1fd9238375_d9270457-3fcc-4785-8f5b-8005fbd24166.webp?v=1714889185","width":2000},{"alt":null,"id":23889830150243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b1fb6d7ba4e1944d540fd7ef81395961fe62f_610c0616-e259-421e-bc1e-88dbe9751033.webp?v=1714889188"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e8b1fb6d7ba4e1944d540fd7ef81395961fe62f_610c0616-e259-421e-bc1e-88dbe9751033.webp?v=1714889188","width":2000},{"alt":null,"id":23889831854179,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c64f962b85afb2372294ef80bd413d894cb7982_5ba52684-8a8b-40ed-af83-30b9a2c0b22a.webp?v=1714889190"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c64f962b85afb2372294ef80bd413d894cb7982_5ba52684-8a8b-40ed-af83-30b9a2c0b22a.webp?v=1714889190","width":2000},{"alt":null,"id":23889833754723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21004eb75672d4de4eb98ca0a9bb37e15ce54d26_0f4fcf18-1630-4582-9f8a-37a1245a6696.webp?v=1714889192"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21004eb75672d4de4eb98ca0a9bb37e15ce54d26_0f4fcf18-1630-4582-9f8a-37a1245a6696.webp?v=1714889192","width":2000},{"alt":null,"id":23889835688035,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f169db0805afbfc466beaae68d90c5e0b390b7_077b3ffc-11b1-4bfd-b0e6-ec6d7c4aaf8b.webp?v=1714889194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6f169db0805afbfc466beaae68d90c5e0b390b7_077b3ffc-11b1-4bfd-b0e6-ec6d7c4aaf8b.webp?v=1714889194","width":2000},{"alt":null,"id":23889837064291,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a92301b8ecc6d376afa76ea9d857422e2b7c84c_143794c4-1812-434e-901d-c49bf09c7efc.webp?v=1714889197"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6a92301b8ecc6d376afa76ea9d857422e2b7c84c_143794c4-1812-434e-901d-c49bf09c7efc.webp?v=1714889197","width":2000},{"alt":null,"id":23889838768227,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34875d035a4699d8199441637f568b21d01f7694_750fe649-04eb-4a9c-9e2f-9d8530dc5633.webp?v=1714889199"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/34875d035a4699d8199441637f568b21d01f7694_750fe649-04eb-4a9c-9e2f-9d8530dc5633.webp?v=1714889199","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903657451619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31484525379683,"product_id":7414039576675,"position":1,"created_at":"2024-05-05T14:06:16+08:00","updated_at":"2024-05-05T14:06:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e723febad4675da87fd971d640f5557b19048a_ab467b58-decd-4c32-a5f9-8e51ad0c16ac.webp?v=1714889176","variant_ids":[41903657451619]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列 - 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-PB79","featured_media":{"alt":null,"id":23889820876899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e723febad4675da87fd971d640f5557b19048a_ab467b58-decd-4c32-a5f9-8e51ad0c16ac.webp?v=1714889176"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903658041443,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31484538028131,"product_id":7414039576675,"position":8,"created_at":"2024-05-05T14:06:32+08:00","updated_at":"2024-05-05T14:06:32+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21004eb75672d4de4eb98ca0a9bb37e15ce54d26_0f4fcf18-1630-4582-9f8a-37a1245a6696.webp?v=1714889192","variant_ids":[41903658041443]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列 - 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-PB79","featured_media":{"alt":null,"id":23889833754723,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/21004eb75672d4de4eb98ca0a9bb37e15ce54d26_0f4fcf18-1630-4582-9f8a-37a1245a6696.webp?v=1714889192"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903657451619,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB79","requires_shipping":true,"taxable":true,"featured_image":{"id":31484525379683,"product_id":7414039576675,"position":1,"created_at":"2024-05-05T14:06:16+08:00","updated_at":"2024-05-05T14:06:16+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e723febad4675da87fd971d640f5557b19048a_ab467b58-decd-4c32-a5f9-8e51ad0c16ac.webp?v=1714889176","variant_ids":[41903657451619]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-剪紙系列 - 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-PB79","featured_media":{"alt":null,"id":23889820876899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d3e723febad4675da87fd971d640f5557b19048a_ab467b58-decd-4c32-a5f9-8e51ad0c16ac.webp?v=1714889176"}},"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: "停產"
}