$product = {"id":7414070607971,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb39","description":null,"published_at":"2024-06-11T17:48:43+08:00","created_at":"2024-05-05T14:08:04+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":41903875588195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31484612083811,"product_id":7414070607971,"position":8,"created_at":"2024-05-05T14:08:22+08:00","updated_at":"2024-05-05T14:08:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d600bc356ec234ca00153e5edc51b5b9a5eca47d_174a5d93-84d0-4788-80eb-c081bb0852d4.webp?v=1714889302","variant_ids":[41903875588195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23889907417187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d600bc356ec234ca00153e5edc51b5b9a5eca47d_174a5d93-84d0-4788-80eb-c081bb0852d4.webp?v=1714889302"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903876178019,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31484606218339,"product_id":7414070607971,"position":4,"created_at":"2024-05-05T14:08:14+08:00","updated_at":"2024-05-05T14:08:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65576651415a3193f22c28a48477c891909e440_dcb1efae-e7d1-4537-b36c-1a6f89d495ad.webp?v=1714889294","variant_ids":[41903876178019]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23889901420643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65576651415a3193f22c28a48477c891909e440_dcb1efae-e7d1-4537-b36c-1a6f89d495ad.webp?v=1714889294"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b81171bdb93836d24e49dcf8b04d6d8b060bb8b7_cd3b3b62-54f3-4312-add2-b37fbc861097.webp?v=1714889287","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/210f82519e56a076d41e693453235f6baa5c2573_798bbf66-c48a-4d72-9e77-a22654c00e97.webp?v=1714889289","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9664c6dc3050f5507d994d8074271b9e4dcbc68_a5f1ad30-3d33-4b2c-94b8-deb6dfebfded.webp?v=1714889291","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65576651415a3193f22c28a48477c891909e440_dcb1efae-e7d1-4537-b36c-1a6f89d495ad.webp?v=1714889294","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41a430a84b51d415415a6f2c1cbaceb8a9c139b6_bc48244b-3850-4b70-8ee8-dfef9c304a68.webp?v=1714889296","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c41fc4cd4d1f3f826a28268ba49855e001ba958e_56a4df81-8bee-41d0-8b48-f578217e3730.webp?v=1714889298","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a4aec3be8012de9755eb781ea963a80e5b92ad1_7bb068da-043e-4be4-8af7-cf164ae75f89.webp?v=1714889300","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d600bc356ec234ca00153e5edc51b5b9a5eca47d_174a5d93-84d0-4788-80eb-c081bb0852d4.webp?v=1714889302","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a20f583dcdbb334a310bd310f47ec75e76e88de9_8e7cdd09-13b5-4dee-8511-0d53a2681c22.webp?v=1714889305","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5802a8fdd345ecbd3b0d7eb79acbad6993ba974_618609f5-cbc6-4b2a-9e4f-8b9f41b7d1d2.webp?v=1714889307","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a21c008aea1191c531024e1cd0cbfad5e720b6b3_36af7e16-2f1e-4534-a9b2-7ad05e4f3121.webp?v=1714889309"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b81171bdb93836d24e49dcf8b04d6d8b060bb8b7_cd3b3b62-54f3-4312-add2-b37fbc861097.webp?v=1714889287","options":["color"],"media":[{"alt":null,"id":23889896800355,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b81171bdb93836d24e49dcf8b04d6d8b060bb8b7_cd3b3b62-54f3-4312-add2-b37fbc861097.webp?v=1714889287"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b81171bdb93836d24e49dcf8b04d6d8b060bb8b7_cd3b3b62-54f3-4312-add2-b37fbc861097.webp?v=1714889287","width":2000},{"alt":null,"id":23889898504291,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/210f82519e56a076d41e693453235f6baa5c2573_798bbf66-c48a-4d72-9e77-a22654c00e97.webp?v=1714889289"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/210f82519e56a076d41e693453235f6baa5c2573_798bbf66-c48a-4d72-9e77-a22654c00e97.webp?v=1714889289","width":2000},{"alt":null,"id":23889899913315,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9664c6dc3050f5507d994d8074271b9e4dcbc68_a5f1ad30-3d33-4b2c-94b8-deb6dfebfded.webp?v=1714889291"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9664c6dc3050f5507d994d8074271b9e4dcbc68_a5f1ad30-3d33-4b2c-94b8-deb6dfebfded.webp?v=1714889291","width":2000},{"alt":null,"id":23889901420643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65576651415a3193f22c28a48477c891909e440_dcb1efae-e7d1-4537-b36c-1a6f89d495ad.webp?v=1714889294"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65576651415a3193f22c28a48477c891909e440_dcb1efae-e7d1-4537-b36c-1a6f89d495ad.webp?v=1714889294","width":2000},{"alt":null,"id":23889902698595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41a430a84b51d415415a6f2c1cbaceb8a9c139b6_bc48244b-3850-4b70-8ee8-dfef9c304a68.webp?v=1714889296"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/41a430a84b51d415415a6f2c1cbaceb8a9c139b6_bc48244b-3850-4b70-8ee8-dfef9c304a68.webp?v=1714889296","width":2000},{"alt":null,"id":23889904402531,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c41fc4cd4d1f3f826a28268ba49855e001ba958e_56a4df81-8bee-41d0-8b48-f578217e3730.webp?v=1714889298"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c41fc4cd4d1f3f826a28268ba49855e001ba958e_56a4df81-8bee-41d0-8b48-f578217e3730.webp?v=1714889298","width":2000},{"alt":null,"id":23889905778787,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a4aec3be8012de9755eb781ea963a80e5b92ad1_7bb068da-043e-4be4-8af7-cf164ae75f89.webp?v=1714889300"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7a4aec3be8012de9755eb781ea963a80e5b92ad1_7bb068da-043e-4be4-8af7-cf164ae75f89.webp?v=1714889300","width":2000},{"alt":null,"id":23889907417187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d600bc356ec234ca00153e5edc51b5b9a5eca47d_174a5d93-84d0-4788-80eb-c081bb0852d4.webp?v=1714889302"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d600bc356ec234ca00153e5edc51b5b9a5eca47d_174a5d93-84d0-4788-80eb-c081bb0852d4.webp?v=1714889302","width":2000},{"alt":null,"id":23889908596835,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a20f583dcdbb334a310bd310f47ec75e76e88de9_8e7cdd09-13b5-4dee-8511-0d53a2681c22.webp?v=1714889305"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a20f583dcdbb334a310bd310f47ec75e76e88de9_8e7cdd09-13b5-4dee-8511-0d53a2681c22.webp?v=1714889305","width":2000},{"alt":null,"id":23889909940323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5802a8fdd345ecbd3b0d7eb79acbad6993ba974_618609f5-cbc6-4b2a-9e4f-8b9f41b7d1d2.webp?v=1714889307"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5802a8fdd345ecbd3b0d7eb79acbad6993ba974_618609f5-cbc6-4b2a-9e4f-8b9f41b7d1d2.webp?v=1714889307","width":2000},{"alt":null,"id":23889911316579,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a21c008aea1191c531024e1cd0cbfad5e720b6b3_36af7e16-2f1e-4534-a9b2-7ad05e4f3121.webp?v=1714889309"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a21c008aea1191c531024e1cd0cbfad5e720b6b3_36af7e16-2f1e-4534-a9b2-7ad05e4f3121.webp?v=1714889309","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903875588195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31484612083811,"product_id":7414070607971,"position":8,"created_at":"2024-05-05T14:08:22+08:00","updated_at":"2024-05-05T14:08:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d600bc356ec234ca00153e5edc51b5b9a5eca47d_174a5d93-84d0-4788-80eb-c081bb0852d4.webp?v=1714889302","variant_ids":[41903875588195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23889907417187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d600bc356ec234ca00153e5edc51b5b9a5eca47d_174a5d93-84d0-4788-80eb-c081bb0852d4.webp?v=1714889302"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903876178019,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31484606218339,"product_id":7414070607971,"position":4,"created_at":"2024-05-05T14:08:14+08:00","updated_at":"2024-05-05T14:08:14+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65576651415a3193f22c28a48477c891909e440_dcb1efae-e7d1-4537-b36c-1a6f89d495ad.webp?v=1714889294","variant_ids":[41903876178019]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23889901420643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c65576651415a3193f22c28a48477c891909e440_dcb1efae-e7d1-4537-b36c-1a6f89d495ad.webp?v=1714889294"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903875588195,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB39","requires_shipping":true,"taxable":true,"featured_image":{"id":31484612083811,"product_id":7414070607971,"position":8,"created_at":"2024-05-05T14:08:22+08:00","updated_at":"2024-05-05T14:08:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d600bc356ec234ca00153e5edc51b5b9a5eca47d_174a5d93-84d0-4788-80eb-c081bb0852d4.webp?v=1714889302","variant_ids":[41903875588195]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 伊沃克人2-塗鴉藝術 - 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-PB39","featured_media":{"alt":null,"id":23889907417187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d600bc356ec234ca00153e5edc51b5b9a5eca47d_174a5d93-84d0-4788-80eb-c081bb0852d4.webp?v=1714889302"}},"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: "停產"
}