$product = {"id":7414613540963,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb54","description":null,"published_at":"2024-06-11T17:52:32+08:00","created_at":"2024-05-05T14:33:58+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":41907790774371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31485880795235,"product_id":7414613540963,"position":10,"created_at":"2024-05-05T14:34:20+08:00","updated_at":"2024-05-05T14:34:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557b2b45a3d85b79d26b26fab8d0a9222c5e515a_40230313-7905-40b2-91bd-40332ae44a4f.webp?v=1714890860","variant_ids":[41907790774371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23891215941731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557b2b45a3d85b79d26b26fab8d0a9222c5e515a_40230313-7905-40b2-91bd-40332ae44a4f.webp?v=1714890860"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907791069283,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31485882171491,"product_id":7414613540963,"position":11,"created_at":"2024-05-05T14:34:22+08:00","updated_at":"2024-05-05T14:34:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a123cebcd0ee9b98d6bd5b61cb8ef451fd622441_b483f0a2-634f-44cc-b034-3376ae5d6429.webp?v=1714890862","variant_ids":[41907791069283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23891217317987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a123cebcd0ee9b98d6bd5b61cb8ef451fd622441_b483f0a2-634f-44cc-b034-3376ae5d6429.webp?v=1714890862"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58eb82a705d7e76c89ee93bc40fdb81eb34f2068_8d6ffb90-b669-4d82-993e-68f3a607abe1.webp?v=1714890840","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a24f3f463f3afaf3fc17c0c9aa94ffd0f0f0bc_ef79c776-838f-4ff9-b945-18b5b88744ef.webp?v=1714890842","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56ac749d56bb9346d997ffa0506c1f98cd053f15_86e759f5-e52f-4539-82b0-e3c1b804d03b.webp?v=1714890844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c8e4d513b3b46bb4d3c50ededc4338c149447e_8ad09805-fca6-4650-b269-d7c2f966e730.webp?v=1714890846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6002a313f6ca33447c122bb651b6e294599d51d6_b5bb5aa1-bc73-4a3b-b1b3-862addeeb6dd.webp?v=1714890849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/966a231013d1251157f305e0eb6aa5ce6c354889_11219664-2659-4056-bada-84f5cdea1d58.webp?v=1714890851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e23481b0a157ebf4d5c967c2a5a25f7e7749e4_51abf092-5f37-4700-9b80-4755554618a0.webp?v=1714890853","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c84b59c076a7052b5e973e92cbffb7a7a5df8eb_546f52d9-b51c-4d9f-bff1-23921541ab0b.webp?v=1714890855","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0cb44d8b4919e90fe20f585cc3e8351e0fc6685_c3cf7a4b-d951-405c-a925-1f4151f78a30.webp?v=1714890857","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557b2b45a3d85b79d26b26fab8d0a9222c5e515a_40230313-7905-40b2-91bd-40332ae44a4f.webp?v=1714890860","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a123cebcd0ee9b98d6bd5b61cb8ef451fd622441_b483f0a2-634f-44cc-b034-3376ae5d6429.webp?v=1714890862"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58eb82a705d7e76c89ee93bc40fdb81eb34f2068_8d6ffb90-b669-4d82-993e-68f3a607abe1.webp?v=1714890840","options":["color"],"media":[{"alt":null,"id":23891204702307,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58eb82a705d7e76c89ee93bc40fdb81eb34f2068_8d6ffb90-b669-4d82-993e-68f3a607abe1.webp?v=1714890840"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58eb82a705d7e76c89ee93bc40fdb81eb34f2068_8d6ffb90-b669-4d82-993e-68f3a607abe1.webp?v=1714890840","width":2000},{"alt":null,"id":23891205881955,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a24f3f463f3afaf3fc17c0c9aa94ffd0f0f0bc_ef79c776-838f-4ff9-b945-18b5b88744ef.webp?v=1714890842"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/14a24f3f463f3afaf3fc17c0c9aa94ffd0f0f0bc_ef79c776-838f-4ff9-b945-18b5b88744ef.webp?v=1714890842","width":2000},{"alt":null,"id":23891207192675,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56ac749d56bb9346d997ffa0506c1f98cd053f15_86e759f5-e52f-4539-82b0-e3c1b804d03b.webp?v=1714890844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/56ac749d56bb9346d997ffa0506c1f98cd053f15_86e759f5-e52f-4539-82b0-e3c1b804d03b.webp?v=1714890844","width":2000},{"alt":null,"id":23891208208483,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c8e4d513b3b46bb4d3c50ededc4338c149447e_8ad09805-fca6-4650-b269-d7c2f966e730.webp?v=1714890846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61c8e4d513b3b46bb4d3c50ededc4338c149447e_8ad09805-fca6-4650-b269-d7c2f966e730.webp?v=1714890846","width":2000},{"alt":null,"id":23891209683043,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6002a313f6ca33447c122bb651b6e294599d51d6_b5bb5aa1-bc73-4a3b-b1b3-862addeeb6dd.webp?v=1714890849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6002a313f6ca33447c122bb651b6e294599d51d6_b5bb5aa1-bc73-4a3b-b1b3-862addeeb6dd.webp?v=1714890849","width":2000},{"alt":null,"id":23891210666083,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/966a231013d1251157f305e0eb6aa5ce6c354889_11219664-2659-4056-bada-84f5cdea1d58.webp?v=1714890851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/966a231013d1251157f305e0eb6aa5ce6c354889_11219664-2659-4056-bada-84f5cdea1d58.webp?v=1714890851","width":2000},{"alt":null,"id":23891211944035,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e23481b0a157ebf4d5c967c2a5a25f7e7749e4_51abf092-5f37-4700-9b80-4755554618a0.webp?v=1714890853"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/83e23481b0a157ebf4d5c967c2a5a25f7e7749e4_51abf092-5f37-4700-9b80-4755554618a0.webp?v=1714890853","width":2000},{"alt":null,"id":23891213287523,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c84b59c076a7052b5e973e92cbffb7a7a5df8eb_546f52d9-b51c-4d9f-bff1-23921541ab0b.webp?v=1714890855"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c84b59c076a7052b5e973e92cbffb7a7a5df8eb_546f52d9-b51c-4d9f-bff1-23921541ab0b.webp?v=1714890855","width":2000},{"alt":null,"id":23891214434403,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0cb44d8b4919e90fe20f585cc3e8351e0fc6685_c3cf7a4b-d951-405c-a925-1f4151f78a30.webp?v=1714890857"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0cb44d8b4919e90fe20f585cc3e8351e0fc6685_c3cf7a4b-d951-405c-a925-1f4151f78a30.webp?v=1714890857","width":2000},{"alt":null,"id":23891215941731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557b2b45a3d85b79d26b26fab8d0a9222c5e515a_40230313-7905-40b2-91bd-40332ae44a4f.webp?v=1714890860"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557b2b45a3d85b79d26b26fab8d0a9222c5e515a_40230313-7905-40b2-91bd-40332ae44a4f.webp?v=1714890860","width":2000},{"alt":null,"id":23891217317987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a123cebcd0ee9b98d6bd5b61cb8ef451fd622441_b483f0a2-634f-44cc-b034-3376ae5d6429.webp?v=1714890862"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a123cebcd0ee9b98d6bd5b61cb8ef451fd622441_b483f0a2-634f-44cc-b034-3376ae5d6429.webp?v=1714890862","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907790774371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31485880795235,"product_id":7414613540963,"position":10,"created_at":"2024-05-05T14:34:20+08:00","updated_at":"2024-05-05T14:34:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557b2b45a3d85b79d26b26fab8d0a9222c5e515a_40230313-7905-40b2-91bd-40332ae44a4f.webp?v=1714890860","variant_ids":[41907790774371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23891215941731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557b2b45a3d85b79d26b26fab8d0a9222c5e515a_40230313-7905-40b2-91bd-40332ae44a4f.webp?v=1714890860"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907791069283,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31485882171491,"product_id":7414613540963,"position":11,"created_at":"2024-05-05T14:34:22+08:00","updated_at":"2024-05-05T14:34:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a123cebcd0ee9b98d6bd5b61cb8ef451fd622441_b483f0a2-634f-44cc-b034-3376ae5d6429.webp?v=1714890862","variant_ids":[41907791069283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23891217317987,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a123cebcd0ee9b98d6bd5b61cb8ef451fd622441_b483f0a2-634f-44cc-b034-3376ae5d6429.webp?v=1714890862"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907790774371,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB54","requires_shipping":true,"taxable":true,"featured_image":{"id":31485880795235,"product_id":7414613540963,"position":10,"created_at":"2024-05-05T14:34:20+08:00","updated_at":"2024-05-05T14:34:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557b2b45a3d85b79d26b26fab8d0a9222c5e515a_40230313-7905-40b2-91bd-40332ae44a4f.webp?v=1714890860","variant_ids":[41907790774371]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士\u0026尤達-剪紙系列 - 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-PB54","featured_media":{"alt":null,"id":23891215941731,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/557b2b45a3d85b79d26b26fab8d0a9222c5e515a_40230313-7905-40b2-91bd-40332ae44a4f.webp?v=1714890860"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}