$product = {"id":7414025879651,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X戰機-線條白","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb16","description":null,"published_at":"2024-06-11T17:48:05+08:00","created_at":"2024-05-05T14:03:35+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":41903476834403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31484490285155,"product_id":7414025879651,"position":2,"created_at":"2024-05-05T14:03:40+08:00","updated_at":"2024-05-05T14:03:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45889a96a15a9c393e1a2b29e6cf2307f102afa_9ce8c5f0-b0a5-4ca2-8085-30e2757c8d23.webp?v=1714889020","variant_ids":[41903476834403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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-PB16","featured_media":{"alt":null,"id":23889784438883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45889a96a15a9c393e1a2b29e6cf2307f102afa_9ce8c5f0-b0a5-4ca2-8085-30e2757c8d23.webp?v=1714889020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903477358691,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31484493922403,"product_id":7414025879651,"position":10,"created_at":"2024-05-05T14:03:59+08:00","updated_at":"2024-05-05T14:03:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0dfa36c87b32f5b921af07a96db9570db4da83b_aafd44c9-a9e5-4bc5-aafb-f60bf23807f8.webp?v=1714889039","variant_ids":[41903477358691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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-PB16","featured_media":{"alt":null,"id":23889788076131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0dfa36c87b32f5b921af07a96db9570db4da83b_aafd44c9-a9e5-4bc5-aafb-f60bf23807f8.webp?v=1714889039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06546f99d2fdcf6396b548315a9ec6c37f5f303b_876d5f8b-2799-4e5c-b421-cf7d1842733d.webp?v=1714889018","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45889a96a15a9c393e1a2b29e6cf2307f102afa_9ce8c5f0-b0a5-4ca2-8085-30e2757c8d23.webp?v=1714889020","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61debb022f86b400717fb633b56d27163eef46aa_7afc36cc-44cb-47eb-92aa-597f68e5713d.webp?v=1714889023","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a81986bdd3a274a041f3b0feb313159107e479_87aeb18a-a82e-40da-a8a4-897191ab5dc1.webp?v=1714889025","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded60d4b5436434ee928c5997b5f95f1a2039030_2d85da82-213c-4e2f-805c-401e146c2031.webp?v=1714889027","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ebd7d82b88c1242499651fcb63ce1e838728a30_595fe08e-af7e-4fa5-9002-eb3610332774.webp?v=1714889029","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abd0500c17c166eae29cb375d7dfe25ec1f3076_7d5973db-6ca5-4d7b-b5ad-d5e1abb48a78.webp?v=1714889032","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/437aaceb98ad8d5711938bb2657f39d40c6ff414_ae6a8520-766c-491f-b254-e375ac9c8c45.webp?v=1714889034","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0faf805bf6f92a7aad920b8c6518976fc8468911_927df091-41cd-49b7-87d0-a72951f4dbd0.webp?v=1714889037","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0dfa36c87b32f5b921af07a96db9570db4da83b_aafd44c9-a9e5-4bc5-aafb-f60bf23807f8.webp?v=1714889039","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547d8b4e099cf9af29fc24aee2970e8f7aa39284_c9c870f8-b54e-4e41-aabf-f53a1e439078.webp?v=1714889042"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06546f99d2fdcf6396b548315a9ec6c37f5f303b_876d5f8b-2799-4e5c-b421-cf7d1842733d.webp?v=1714889018","options":["color"],"media":[{"alt":null,"id":23889784012899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06546f99d2fdcf6396b548315a9ec6c37f5f303b_876d5f8b-2799-4e5c-b421-cf7d1842733d.webp?v=1714889018"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06546f99d2fdcf6396b548315a9ec6c37f5f303b_876d5f8b-2799-4e5c-b421-cf7d1842733d.webp?v=1714889018","width":2000},{"alt":null,"id":23889784438883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45889a96a15a9c393e1a2b29e6cf2307f102afa_9ce8c5f0-b0a5-4ca2-8085-30e2757c8d23.webp?v=1714889020"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45889a96a15a9c393e1a2b29e6cf2307f102afa_9ce8c5f0-b0a5-4ca2-8085-30e2757c8d23.webp?v=1714889020","width":2000},{"alt":null,"id":23889784799331,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61debb022f86b400717fb633b56d27163eef46aa_7afc36cc-44cb-47eb-92aa-597f68e5713d.webp?v=1714889023"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/61debb022f86b400717fb633b56d27163eef46aa_7afc36cc-44cb-47eb-92aa-597f68e5713d.webp?v=1714889023","width":2000},{"alt":null,"id":23889785225315,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a81986bdd3a274a041f3b0feb313159107e479_87aeb18a-a82e-40da-a8a4-897191ab5dc1.webp?v=1714889025"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/68a81986bdd3a274a041f3b0feb313159107e479_87aeb18a-a82e-40da-a8a4-897191ab5dc1.webp?v=1714889025","width":2000},{"alt":null,"id":23889785651299,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded60d4b5436434ee928c5997b5f95f1a2039030_2d85da82-213c-4e2f-805c-401e146c2031.webp?v=1714889027"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ded60d4b5436434ee928c5997b5f95f1a2039030_2d85da82-213c-4e2f-805c-401e146c2031.webp?v=1714889027","width":2000},{"alt":null,"id":23889786175587,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ebd7d82b88c1242499651fcb63ce1e838728a30_595fe08e-af7e-4fa5-9002-eb3610332774.webp?v=1714889029"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2ebd7d82b88c1242499651fcb63ce1e838728a30_595fe08e-af7e-4fa5-9002-eb3610332774.webp?v=1714889029","width":2000},{"alt":null,"id":23889786601571,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abd0500c17c166eae29cb375d7dfe25ec1f3076_7d5973db-6ca5-4d7b-b5ad-d5e1abb48a78.webp?v=1714889032"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2abd0500c17c166eae29cb375d7dfe25ec1f3076_7d5973db-6ca5-4d7b-b5ad-d5e1abb48a78.webp?v=1714889032","width":2000},{"alt":null,"id":23889787158627,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/437aaceb98ad8d5711938bb2657f39d40c6ff414_ae6a8520-766c-491f-b254-e375ac9c8c45.webp?v=1714889034"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/437aaceb98ad8d5711938bb2657f39d40c6ff414_ae6a8520-766c-491f-b254-e375ac9c8c45.webp?v=1714889034","width":2000},{"alt":null,"id":23889787584611,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0faf805bf6f92a7aad920b8c6518976fc8468911_927df091-41cd-49b7-87d0-a72951f4dbd0.webp?v=1714889037"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0faf805bf6f92a7aad920b8c6518976fc8468911_927df091-41cd-49b7-87d0-a72951f4dbd0.webp?v=1714889037","width":2000},{"alt":null,"id":23889788076131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0dfa36c87b32f5b921af07a96db9570db4da83b_aafd44c9-a9e5-4bc5-aafb-f60bf23807f8.webp?v=1714889039"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0dfa36c87b32f5b921af07a96db9570db4da83b_aafd44c9-a9e5-4bc5-aafb-f60bf23807f8.webp?v=1714889039","width":2000},{"alt":null,"id":23889788633187,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547d8b4e099cf9af29fc24aee2970e8f7aa39284_c9c870f8-b54e-4e41-aabf-f53a1e439078.webp?v=1714889042"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/547d8b4e099cf9af29fc24aee2970e8f7aa39284_c9c870f8-b54e-4e41-aabf-f53a1e439078.webp?v=1714889042","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903476834403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31484490285155,"product_id":7414025879651,"position":2,"created_at":"2024-05-05T14:03:40+08:00","updated_at":"2024-05-05T14:03:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45889a96a15a9c393e1a2b29e6cf2307f102afa_9ce8c5f0-b0a5-4ca2-8085-30e2757c8d23.webp?v=1714889020","variant_ids":[41903476834403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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-PB16","featured_media":{"alt":null,"id":23889784438883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45889a96a15a9c393e1a2b29e6cf2307f102afa_9ce8c5f0-b0a5-4ca2-8085-30e2757c8d23.webp?v=1714889020"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903477358691,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31484493922403,"product_id":7414025879651,"position":10,"created_at":"2024-05-05T14:03:59+08:00","updated_at":"2024-05-05T14:03:59+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0dfa36c87b32f5b921af07a96db9570db4da83b_aafd44c9-a9e5-4bc5-aafb-f60bf23807f8.webp?v=1714889039","variant_ids":[41903477358691]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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-PB16","featured_media":{"alt":null,"id":23889788076131,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0dfa36c87b32f5b921af07a96db9570db4da83b_aafd44c9-a9e5-4bc5-aafb-f60bf23807f8.webp?v=1714889039"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903476834403,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB16","requires_shipping":true,"taxable":true,"featured_image":{"id":31484490285155,"product_id":7414025879651,"position":2,"created_at":"2024-05-05T14:03:40+08:00","updated_at":"2024-05-05T14:03:40+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45889a96a15a9c393e1a2b29e6cf2307f102afa_9ce8c5f0-b0a5-4ca2-8085-30e2757c8d23.webp?v=1714889020","variant_ids":[41903476834403]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - X戰機-線條白 - 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-PB16","featured_media":{"alt":null,"id":23889784438883,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d45889a96a15a9c393e1a2b29e6cf2307f102afa_9ce8c5f0-b0a5-4ca2-8085-30e2757c8d23.webp?v=1714889020"}},"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: "停產"
}