$product = {"id":7408163979363,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy","handle":"iphone-13-pro-max-mod-nx-printable-pb61","description":null,"published_at":"2024-06-11T16:33:07+08:00","created_at":"2024-05-03T12:12:22+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX專區-迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-printable","new-modnx-sku","reseller-modnx-star-wars","Top50","type-Mod NX Printable"],"price":90000,"price_min":90000,"price_max":90000,"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":41883396014179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31471360508003,"product_id":7408163979363,"position":10,"created_at":"2024-05-03T12:12:46+08:00","updated_at":"2024-05-03T12:12:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf299a51fcf2b9e65d75a7df09093d559441158_ce12d91f-cc97-4353-a25c-4654961edd1b.webp?v=1714709566","variant_ids":[41883396014179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-PB61","featured_media":{"alt":null,"id":23876266524771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf299a51fcf2b9e65d75a7df09093d559441158_ce12d91f-cc97-4353-a25c-4654961edd1b.webp?v=1714709566"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883396767843,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31471356313699,"product_id":7408163979363,"position":1,"created_at":"2024-05-03T12:12:24+08:00","updated_at":"2024-05-03T12:12:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07fa7deb6a80c1d7925cdb0ca3f076969234df42_78ed5060-195d-4236-b80b-79841ef866ee.webp?v=1714709544","variant_ids":[41883396767843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-PB61","featured_media":{"alt":null,"id":23876262297699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07fa7deb6a80c1d7925cdb0ca3f076969234df42_78ed5060-195d-4236-b80b-79841ef866ee.webp?v=1714709544"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07fa7deb6a80c1d7925cdb0ca3f076969234df42_78ed5060-195d-4236-b80b-79841ef866ee.webp?v=1714709544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25badad400c65d8f74b90b2db0b67f24af2fcb3c_fcaf3026-35c6-4c53-8fad-dec330ab51d0.webp?v=1714709547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ae661a34159ea52770e0ab165f828bbd64f2c4_99019222-c035-435b-b501-57153483fe41.webp?v=1714709549","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f022961ce723b6652eb607065f7ad8fcf908b827_9d550818-76af-43e3-a9b9-2167c583f246.webp?v=1714709552","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/515c3e680d992619b8c68eefa4c38e6b0a0bb181_e077ebf5-5d73-47b9-bd4f-2cb3da5d2eb5.webp?v=1714709554","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8de9062aae144daa9e2bc80d17b499c0a8dfd01_7d2bb734-ca55-4e24-9dce-4f9eefc62e6a.webp?v=1714709557","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd3c5ed79bf17d44eb322524ba04893c2994000_5ae03c13-ab74-4311-af19-7f3aa07cd9b4.webp?v=1714709559","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf979406069dbac6a3f3ef6947c7d4e6adfb4e8a_53c186bb-e381-4436-94b8-17ce45155804.webp?v=1714709561","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3b2435a0fa5c2f38f8b1c3837f1c5eee572f6f4_0ef04014-37be-4305-bbc2-318c7cc6fb2c.webp?v=1714709564","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf299a51fcf2b9e65d75a7df09093d559441158_ce12d91f-cc97-4353-a25c-4654961edd1b.webp?v=1714709566"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07fa7deb6a80c1d7925cdb0ca3f076969234df42_78ed5060-195d-4236-b80b-79841ef866ee.webp?v=1714709544","options":["color"],"media":[{"alt":null,"id":23876262297699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07fa7deb6a80c1d7925cdb0ca3f076969234df42_78ed5060-195d-4236-b80b-79841ef866ee.webp?v=1714709544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07fa7deb6a80c1d7925cdb0ca3f076969234df42_78ed5060-195d-4236-b80b-79841ef866ee.webp?v=1714709544","width":2000},{"alt":null,"id":23876262658147,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25badad400c65d8f74b90b2db0b67f24af2fcb3c_fcaf3026-35c6-4c53-8fad-dec330ab51d0.webp?v=1714709547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/25badad400c65d8f74b90b2db0b67f24af2fcb3c_fcaf3026-35c6-4c53-8fad-dec330ab51d0.webp?v=1714709547","width":2000},{"alt":null,"id":23876263084131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ae661a34159ea52770e0ab165f828bbd64f2c4_99019222-c035-435b-b501-57153483fe41.webp?v=1714709549"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/46ae661a34159ea52770e0ab165f828bbd64f2c4_99019222-c035-435b-b501-57153483fe41.webp?v=1714709549","width":2000},{"alt":null,"id":23876263542883,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f022961ce723b6652eb607065f7ad8fcf908b827_9d550818-76af-43e3-a9b9-2167c583f246.webp?v=1714709552"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f022961ce723b6652eb607065f7ad8fcf908b827_9d550818-76af-43e3-a9b9-2167c583f246.webp?v=1714709552","width":2000},{"alt":null,"id":23876264001635,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/515c3e680d992619b8c68eefa4c38e6b0a0bb181_e077ebf5-5d73-47b9-bd4f-2cb3da5d2eb5.webp?v=1714709554"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/515c3e680d992619b8c68eefa4c38e6b0a0bb181_e077ebf5-5d73-47b9-bd4f-2cb3da5d2eb5.webp?v=1714709554","width":2000},{"alt":null,"id":23876264591459,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8de9062aae144daa9e2bc80d17b499c0a8dfd01_7d2bb734-ca55-4e24-9dce-4f9eefc62e6a.webp?v=1714709557"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f8de9062aae144daa9e2bc80d17b499c0a8dfd01_7d2bb734-ca55-4e24-9dce-4f9eefc62e6a.webp?v=1714709557","width":2000},{"alt":null,"id":23876264984675,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd3c5ed79bf17d44eb322524ba04893c2994000_5ae03c13-ab74-4311-af19-7f3aa07cd9b4.webp?v=1714709559"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bd3c5ed79bf17d44eb322524ba04893c2994000_5ae03c13-ab74-4311-af19-7f3aa07cd9b4.webp?v=1714709559","width":2000},{"alt":null,"id":23876265541731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf979406069dbac6a3f3ef6947c7d4e6adfb4e8a_53c186bb-e381-4436-94b8-17ce45155804.webp?v=1714709561"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bf979406069dbac6a3f3ef6947c7d4e6adfb4e8a_53c186bb-e381-4436-94b8-17ce45155804.webp?v=1714709561","width":2000},{"alt":null,"id":23876265967715,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3b2435a0fa5c2f38f8b1c3837f1c5eee572f6f4_0ef04014-37be-4305-bbc2-318c7cc6fb2c.webp?v=1714709564"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3b2435a0fa5c2f38f8b1c3837f1c5eee572f6f4_0ef04014-37be-4305-bbc2-318c7cc6fb2c.webp?v=1714709564","width":2000},{"alt":null,"id":23876266524771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf299a51fcf2b9e65d75a7df09093d559441158_ce12d91f-cc97-4353-a25c-4654961edd1b.webp?v=1714709566"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf299a51fcf2b9e65d75a7df09093d559441158_ce12d91f-cc97-4353-a25c-4654961edd1b.webp?v=1714709566","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$bumper = null;
$variants = [{"id":41883396014179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31471360508003,"product_id":7408163979363,"position":10,"created_at":"2024-05-03T12:12:46+08:00","updated_at":"2024-05-03T12:12:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf299a51fcf2b9e65d75a7df09093d559441158_ce12d91f-cc97-4353-a25c-4654961edd1b.webp?v=1714709566","variant_ids":[41883396014179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-PB61","featured_media":{"alt":null,"id":23876266524771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf299a51fcf2b9e65d75a7df09093d559441158_ce12d91f-cc97-4353-a25c-4654961edd1b.webp?v=1714709566"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883396767843,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31471356313699,"product_id":7408163979363,"position":1,"created_at":"2024-05-03T12:12:24+08:00","updated_at":"2024-05-03T12:12:24+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07fa7deb6a80c1d7925cdb0ca3f076969234df42_78ed5060-195d-4236-b80b-79841ef866ee.webp?v=1714709544","variant_ids":[41883396767843]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB01232J5-PB61","featured_media":{"alt":null,"id":23876262297699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07fa7deb6a80c1d7925cdb0ca3f076969234df42_78ed5060-195d-4236-b80b-79841ef866ee.webp?v=1714709544"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883396014179,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB61","requires_shipping":true,"taxable":true,"featured_image":{"id":31471360508003,"product_id":7408163979363,"position":10,"created_at":"2024-05-03T12:12:46+08:00","updated_at":"2024-05-03T12:12:46+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf299a51fcf2b9e65d75a7df09093d559441158_ce12d91f-cc97-4353-a25c-4654961edd1b.webp?v=1714709566","variant_ids":[41883396014179]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Pattern 星際大戰-Galaxy - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":90000,"weight":980,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"NPB0123224-PB61","featured_media":{"alt":null,"id":23876266524771,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ebf299a51fcf2b9e65d75a7df09093d559441158_ce12d91f-cc97-4353-a25c-4654961edd1b.webp?v=1714709566"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null
var sellingStatus
if ($bumper) {
$(document).ready(function() {
var productImg = $product.images[0]
var bumperVariants = $bumper.variants;
var bumperColors = new Object();
var currentVariant = '';
var productType = '';
bumperVariants.forEach(variant => {
bumperColors[`${variant.title.split(' (')[0].toLowerCase()}`] = variant.featured_image.src;
});
if (productType === 'mod-nx-backplate' || productType === 'mod-backplate') {
mergeImages(
[productImg, bumperColors[currentVariant]],
{ crossOrigin: 'anonymous' }
).then(mergedImg => {
$('.merged-img').attr('src', mergedImg);
});
} else {
mergeImages(
[bumperColors[currentVariant], productImg],
{ crossOrigin: 'anonymous' }
).then(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: "停產"
}