$product = {"id":7414116974691,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 風暴兵-經典","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb22","description":null,"published_at":"2024-06-11T17:49:06+08:00","created_at":"2024-05-05T14:10:47+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":41904220471395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31484712419427,"product_id":7414116974691,"position":5,"created_at":"2024-05-05T14:11:00+08:00","updated_at":"2024-05-05T14:11:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81dc96bed94b46192266215e429ad276ab2865f_0560bbb4-b4e4-4816-931a-e0863a5879da.webp?v=1714889460","variant_ids":[41904220471395]},"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-PB22","featured_media":{"alt":null,"id":23890007851107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81dc96bed94b46192266215e429ad276ab2865f_0560bbb4-b4e4-4816-931a-e0863a5879da.webp?v=1714889460"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904220831843,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31484719202403,"product_id":7414116974691,"position":9,"created_at":"2024-05-05T14:11:09+08:00","updated_at":"2024-05-05T14:11:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5136b27892ed803457a80a393e0844cc9b85c9_6172f0c4-0e44-4280-8223-cbe8a9c9505a.webp?v=1714889469","variant_ids":[41904220831843]},"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-PB22","featured_media":{"alt":null,"id":23890014797923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5136b27892ed803457a80a393e0844cc9b85c9_6172f0c4-0e44-4280-8223-cbe8a9c9505a.webp?v=1714889469"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4488202e577c593119396c8624dbfcb3fa6f7a2_d91c9f20-300a-4238-bb9f-362120d14025.webp?v=1714889449","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3408b5ff56f29c4cdfca4d8d5e275173b722be17_8463f29f-0d5f-4d2b-9504-18b746034a62.webp?v=1714889451","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f96e6aa71e7fdc305a08f461dfdbf8ca7ef6846c_61637919-6b1c-4d0d-8d68-36c6bb979b16.webp?v=1714889455","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b958bdf4c903b9d9f887f95577d44734227e417e_c87aa6f3-3457-423e-b770-a6258e1586a5.webp?v=1714889457","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81dc96bed94b46192266215e429ad276ab2865f_0560bbb4-b4e4-4816-931a-e0863a5879da.webp?v=1714889460","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eb67f7528187190239bf3e5bb15bf58c7778755_17834ea9-6202-40e5-be02-9b49bb7c50e5.webp?v=1714889462","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4720ed8a72738b4160c688c07d61abc2ec7ecf6a_a632bede-a808-40b9-8e83-0e1d68185869.webp?v=1714889464","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/118f4eb3cb6fe625d254b7b79d9d1e7ef6ae8f98_cc26201c-4e09-466b-8180-b20b3758cc74.webp?v=1714889466","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5136b27892ed803457a80a393e0844cc9b85c9_6172f0c4-0e44-4280-8223-cbe8a9c9505a.webp?v=1714889469","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44d31e3104eb3d18054be1e200a28b65a906d2b_f760b786-66bd-452d-a1b4-a1b2e7d413fe.webp?v=1714889471","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431a78361308ccd4e0de5889ce869534262b0785_857cc6be-9975-46c1-a438-f0d80035dbf8.webp?v=1714889473"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4488202e577c593119396c8624dbfcb3fa6f7a2_d91c9f20-300a-4238-bb9f-362120d14025.webp?v=1714889449","options":["color"],"media":[{"alt":null,"id":23889999757411,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4488202e577c593119396c8624dbfcb3fa6f7a2_d91c9f20-300a-4238-bb9f-362120d14025.webp?v=1714889449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a4488202e577c593119396c8624dbfcb3fa6f7a2_d91c9f20-300a-4238-bb9f-362120d14025.webp?v=1714889449","width":2000},{"alt":null,"id":23890001199203,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3408b5ff56f29c4cdfca4d8d5e275173b722be17_8463f29f-0d5f-4d2b-9504-18b746034a62.webp?v=1714889451"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3408b5ff56f29c4cdfca4d8d5e275173b722be17_8463f29f-0d5f-4d2b-9504-18b746034a62.webp?v=1714889451","width":2000},{"alt":null,"id":23890003656803,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f96e6aa71e7fdc305a08f461dfdbf8ca7ef6846c_61637919-6b1c-4d0d-8d68-36c6bb979b16.webp?v=1714889455"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f96e6aa71e7fdc305a08f461dfdbf8ca7ef6846c_61637919-6b1c-4d0d-8d68-36c6bb979b16.webp?v=1714889455","width":2000},{"alt":null,"id":23890005229667,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b958bdf4c903b9d9f887f95577d44734227e417e_c87aa6f3-3457-423e-b770-a6258e1586a5.webp?v=1714889457"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b958bdf4c903b9d9f887f95577d44734227e417e_c87aa6f3-3457-423e-b770-a6258e1586a5.webp?v=1714889457","width":2000},{"alt":null,"id":23890007851107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81dc96bed94b46192266215e429ad276ab2865f_0560bbb4-b4e4-4816-931a-e0863a5879da.webp?v=1714889460"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81dc96bed94b46192266215e429ad276ab2865f_0560bbb4-b4e4-4816-931a-e0863a5879da.webp?v=1714889460","width":2000},{"alt":null,"id":23890009686115,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eb67f7528187190239bf3e5bb15bf58c7778755_17834ea9-6202-40e5-be02-9b49bb7c50e5.webp?v=1714889462"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5eb67f7528187190239bf3e5bb15bf58c7778755_17834ea9-6202-40e5-be02-9b49bb7c50e5.webp?v=1714889462","width":2000},{"alt":null,"id":23890011619427,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4720ed8a72738b4160c688c07d61abc2ec7ecf6a_a632bede-a808-40b9-8e83-0e1d68185869.webp?v=1714889464"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4720ed8a72738b4160c688c07d61abc2ec7ecf6a_a632bede-a808-40b9-8e83-0e1d68185869.webp?v=1714889464","width":2000},{"alt":null,"id":23890012962915,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/118f4eb3cb6fe625d254b7b79d9d1e7ef6ae8f98_cc26201c-4e09-466b-8180-b20b3758cc74.webp?v=1714889466"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/118f4eb3cb6fe625d254b7b79d9d1e7ef6ae8f98_cc26201c-4e09-466b-8180-b20b3758cc74.webp?v=1714889466","width":2000},{"alt":null,"id":23890014797923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5136b27892ed803457a80a393e0844cc9b85c9_6172f0c4-0e44-4280-8223-cbe8a9c9505a.webp?v=1714889469"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5136b27892ed803457a80a393e0844cc9b85c9_6172f0c4-0e44-4280-8223-cbe8a9c9505a.webp?v=1714889469","width":2000},{"alt":null,"id":23890016370787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44d31e3104eb3d18054be1e200a28b65a906d2b_f760b786-66bd-452d-a1b4-a1b2e7d413fe.webp?v=1714889471"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d44d31e3104eb3d18054be1e200a28b65a906d2b_f760b786-66bd-452d-a1b4-a1b2e7d413fe.webp?v=1714889471","width":2000},{"alt":null,"id":23890017976419,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431a78361308ccd4e0de5889ce869534262b0785_857cc6be-9975-46c1-a438-f0d80035dbf8.webp?v=1714889473"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/431a78361308ccd4e0de5889ce869534262b0785_857cc6be-9975-46c1-a438-f0d80035dbf8.webp?v=1714889473","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904220471395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31484712419427,"product_id":7414116974691,"position":5,"created_at":"2024-05-05T14:11:00+08:00","updated_at":"2024-05-05T14:11:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81dc96bed94b46192266215e429ad276ab2865f_0560bbb4-b4e4-4816-931a-e0863a5879da.webp?v=1714889460","variant_ids":[41904220471395]},"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-PB22","featured_media":{"alt":null,"id":23890007851107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81dc96bed94b46192266215e429ad276ab2865f_0560bbb4-b4e4-4816-931a-e0863a5879da.webp?v=1714889460"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904220831843,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31484719202403,"product_id":7414116974691,"position":9,"created_at":"2024-05-05T14:11:09+08:00","updated_at":"2024-05-05T14:11:09+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5136b27892ed803457a80a393e0844cc9b85c9_6172f0c4-0e44-4280-8223-cbe8a9c9505a.webp?v=1714889469","variant_ids":[41904220831843]},"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-PB22","featured_media":{"alt":null,"id":23890014797923,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c5136b27892ed803457a80a393e0844cc9b85c9_6172f0c4-0e44-4280-8223-cbe8a9c9505a.webp?v=1714889469"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904220471395,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB22","requires_shipping":true,"taxable":true,"featured_image":{"id":31484712419427,"product_id":7414116974691,"position":5,"created_at":"2024-05-05T14:11:00+08:00","updated_at":"2024-05-05T14:11:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81dc96bed94b46192266215e429ad276ab2865f_0560bbb4-b4e4-4816-931a-e0863a5879da.webp?v=1714889460","variant_ids":[41904220471395]},"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-PB22","featured_media":{"alt":null,"id":23890007851107,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d81dc96bed94b46192266215e429ad276ab2865f_0560bbb4-b4e4-4816-931a-e0863a5879da.webp?v=1714889460"}},"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: "停產"
}