$product = {"id":7408206315619,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號","handle":"iphone-13-pro-max-mod-nx-printable-pb69","description":null,"published_at":"2024-06-11T16:34:14+08:00","created_at":"2024-05-03T12:20:36+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":41883845886051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31471468937315,"product_id":7408206315619,"position":3,"created_at":"2024-05-03T12:20:43+08:00","updated_at":"2024-05-03T12:20:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821700a0113d4824bba80d65d798dd1f46ee20a7_571805b4-78d1-4012-bb79-39914dd9f9e5.webp?v=1714710043","variant_ids":[41883845886051]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - 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-PB69","featured_media":{"alt":null,"id":23876375314531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821700a0113d4824bba80d65d798dd1f46ee20a7_571805b4-78d1-4012-bb79-39914dd9f9e5.webp?v=1714710043"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883846213731,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31471471394915,"product_id":7408206315619,"position":8,"created_at":"2024-05-03T12:20:54+08:00","updated_at":"2024-05-03T12:20:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c319c3f7712a033d1d0aa09ab31f671723744f5_caeb9919-3595-4e9e-b126-3915e9b1fc2c.webp?v=1714710054","variant_ids":[41883846213731]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - 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-PB69","featured_media":{"alt":null,"id":23876377772131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c319c3f7712a033d1d0aa09ab31f671723744f5_caeb9919-3595-4e9e-b126-3915e9b1fc2c.webp?v=1714710054"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85c81a888bfee3c6d1c37665c0adc0b9e74970b4_2f0619bd-e1c6-455e-8588-572584972efc.webp?v=1714710038","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b739ab6dca47ac3cf42c6b7011b7b1c7d862622f_2d9e0b1b-51e9-49fc-baae-d63f574e464b.webp?v=1714710040","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821700a0113d4824bba80d65d798dd1f46ee20a7_571805b4-78d1-4012-bb79-39914dd9f9e5.webp?v=1714710043","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6aa60c0335d7f8c39c6641f5047cc719e494229_d14a6672-5e4e-4c91-98b0-2eb45d6573f7.webp?v=1714710045","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5ce7c7faa1f4298f9af4b37e965d882834adae6_6270d05f-767a-42ac-a425-4960f8311a8d.webp?v=1714710047","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2a932a626b5ee3b3dda5f695019f7c4a0161a0c_cbf1d970-cb10-4e83-9006-4636aa401ea4.webp?v=1714710049","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f4884da2e26b328ff61d7cfd609ffe94e0c4c_fcb467bd-454b-4e23-ae07-e8989b6f92ce.webp?v=1714710052","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c319c3f7712a033d1d0aa09ab31f671723744f5_caeb9919-3595-4e9e-b126-3915e9b1fc2c.webp?v=1714710054","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b3e16b4ce5d71a7f9f225212d66d542b5e61df_9cc88da3-25f7-4ff3-80ae-fb2d70bbf408.webp?v=1714710056","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d54ec6bf7657867c6941984db40fe27d40e0532_9ffbc333-3f9d-41a7-8239-5e4b00afaa0d.webp?v=1714710058"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85c81a888bfee3c6d1c37665c0adc0b9e74970b4_2f0619bd-e1c6-455e-8588-572584972efc.webp?v=1714710038","options":["color"],"media":[{"alt":null,"id":23876374265955,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85c81a888bfee3c6d1c37665c0adc0b9e74970b4_2f0619bd-e1c6-455e-8588-572584972efc.webp?v=1714710038"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/85c81a888bfee3c6d1c37665c0adc0b9e74970b4_2f0619bd-e1c6-455e-8588-572584972efc.webp?v=1714710038","width":2000},{"alt":null,"id":23876374724707,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b739ab6dca47ac3cf42c6b7011b7b1c7d862622f_2d9e0b1b-51e9-49fc-baae-d63f574e464b.webp?v=1714710040"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b739ab6dca47ac3cf42c6b7011b7b1c7d862622f_2d9e0b1b-51e9-49fc-baae-d63f574e464b.webp?v=1714710040","width":2000},{"alt":null,"id":23876375314531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821700a0113d4824bba80d65d798dd1f46ee20a7_571805b4-78d1-4012-bb79-39914dd9f9e5.webp?v=1714710043"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821700a0113d4824bba80d65d798dd1f46ee20a7_571805b4-78d1-4012-bb79-39914dd9f9e5.webp?v=1714710043","width":2000},{"alt":null,"id":23876375937123,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6aa60c0335d7f8c39c6641f5047cc719e494229_d14a6672-5e4e-4c91-98b0-2eb45d6573f7.webp?v=1714710045"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6aa60c0335d7f8c39c6641f5047cc719e494229_d14a6672-5e4e-4c91-98b0-2eb45d6573f7.webp?v=1714710045","width":2000},{"alt":null,"id":23876376559715,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5ce7c7faa1f4298f9af4b37e965d882834adae6_6270d05f-767a-42ac-a425-4960f8311a8d.webp?v=1714710047"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f5ce7c7faa1f4298f9af4b37e965d882834adae6_6270d05f-767a-42ac-a425-4960f8311a8d.webp?v=1714710047","width":2000},{"alt":null,"id":23876377051235,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2a932a626b5ee3b3dda5f695019f7c4a0161a0c_cbf1d970-cb10-4e83-9006-4636aa401ea4.webp?v=1714710049"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b2a932a626b5ee3b3dda5f695019f7c4a0161a0c_cbf1d970-cb10-4e83-9006-4636aa401ea4.webp?v=1714710049","width":2000},{"alt":null,"id":23876377477219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f4884da2e26b328ff61d7cfd609ffe94e0c4c_fcb467bd-454b-4e23-ae07-e8989b6f92ce.webp?v=1714710052"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3d7f4884da2e26b328ff61d7cfd609ffe94e0c4c_fcb467bd-454b-4e23-ae07-e8989b6f92ce.webp?v=1714710052","width":2000},{"alt":null,"id":23876377772131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c319c3f7712a033d1d0aa09ab31f671723744f5_caeb9919-3595-4e9e-b126-3915e9b1fc2c.webp?v=1714710054"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c319c3f7712a033d1d0aa09ab31f671723744f5_caeb9919-3595-4e9e-b126-3915e9b1fc2c.webp?v=1714710054","width":2000},{"alt":null,"id":23876378263651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b3e16b4ce5d71a7f9f225212d66d542b5e61df_9cc88da3-25f7-4ff3-80ae-fb2d70bbf408.webp?v=1714710056"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/65b3e16b4ce5d71a7f9f225212d66d542b5e61df_9cc88da3-25f7-4ff3-80ae-fb2d70bbf408.webp?v=1714710056","width":2000},{"alt":null,"id":23876378820707,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d54ec6bf7657867c6941984db40fe27d40e0532_9ffbc333-3f9d-41a7-8239-5e4b00afaa0d.webp?v=1714710058"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d54ec6bf7657867c6941984db40fe27d40e0532_9ffbc333-3f9d-41a7-8239-5e4b00afaa0d.webp?v=1714710058","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41883845886051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31471468937315,"product_id":7408206315619,"position":3,"created_at":"2024-05-03T12:20:43+08:00","updated_at":"2024-05-03T12:20:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821700a0113d4824bba80d65d798dd1f46ee20a7_571805b4-78d1-4012-bb79-39914dd9f9e5.webp?v=1714710043","variant_ids":[41883845886051]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - 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-PB69","featured_media":{"alt":null,"id":23876375314531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821700a0113d4824bba80d65d798dd1f46ee20a7_571805b4-78d1-4012-bb79-39914dd9f9e5.webp?v=1714710043"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41883846213731,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31471471394915,"product_id":7408206315619,"position":8,"created_at":"2024-05-03T12:20:54+08:00","updated_at":"2024-05-03T12:20:54+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c319c3f7712a033d1d0aa09ab31f671723744f5_caeb9919-3595-4e9e-b126-3915e9b1fc2c.webp?v=1714710054","variant_ids":[41883846213731]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - 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-PB69","featured_media":{"alt":null,"id":23876377772131,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7c319c3f7712a033d1d0aa09ab31f671723744f5_caeb9919-3595-4e9e-b126-3915e9b1fc2c.webp?v=1714710054"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41883845886051,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB69","requires_shipping":true,"taxable":true,"featured_image":{"id":31471468937315,"product_id":7408206315619,"position":3,"created_at":"2024-05-03T12:20:43+08:00","updated_at":"2024-05-03T12:20:43+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821700a0113d4824bba80d65d798dd1f46ee20a7_571805b4-78d1-4012-bb79-39914dd9f9e5.webp?v=1714710043","variant_ids":[41883845886051]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - K2SO 2-俠盜一號 - 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-PB69","featured_media":{"alt":null,"id":23876375314531,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/821700a0113d4824bba80d65d798dd1f46ee20a7_571805b4-78d1-4012-bb79-39914dd9f9e5.webp?v=1714710043"}},"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: "停產"
}