$product = {"id":7408008626275,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub!","handle":"iphone-13-pro-max-mod-nx-printable-pb81","description":null,"published_at":"2024-06-11T16:28:57+08:00","created_at":"2024-05-03T11:40:00+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":41881665568867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470954053731,"product_id":7408008626275,"position":1,"created_at":"2024-05-03T11:40:03+08:00","updated_at":"2024-05-03T11:40:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786edb8a780c0b88084ce386eb63c460b86bcd49_408204ba-df77-4dfa-9584-47e29688e03b.webp?v=1714707603","variant_ids":[41881665568867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875858858083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786edb8a780c0b88084ce386eb63c460b86bcd49_408204ba-df77-4dfa-9584-47e29688e03b.webp?v=1714707603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881665896547,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470957232227,"product_id":7408008626275,"position":8,"created_at":"2024-05-03T11:40:21+08:00","updated_at":"2024-05-03T11:40:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d3eeef0c6f38870d394be7d87019b70ec7a9c32_bcc23ec6-b5e5-42e2-beec-b8841437f4dc.webp?v=1714707621","variant_ids":[41881665896547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875861938275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d3eeef0c6f38870d394be7d87019b70ec7a9c32_bcc23ec6-b5e5-42e2-beec-b8841437f4dc.webp?v=1714707621"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786edb8a780c0b88084ce386eb63c460b86bcd49_408204ba-df77-4dfa-9584-47e29688e03b.webp?v=1714707603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae148630d05637d8855d664e13e8e93b267de38_5cc897b7-4d44-4b80-a5e0-4a9259f004af.webp?v=1714707605","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/016a8ec0a3e7f7da1c0a179cf9121af3557eb2b2_0c7cb11c-d1ab-44c5-9cda-95c078b9d05e.webp?v=1714707608","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3130e01d52302fdc8757313eaaffe9a6c1a6762a_70088725-126a-4b8a-8fba-066e3f406910.webp?v=1714707611","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6eef6d037658a22ef1baea271e63a87346e03c0_04bb7a08-f7aa-4ff2-9ed0-c3328ae2cbcd.webp?v=1714707614","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da29502e2f4f9ed4889cd94e7e6cac63f4ed87d_200c4e4f-3754-452f-9c36-8d67956db4c7.webp?v=1714707616","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28dcb7ef07c33ab3ca273a5aa812883134d682d_6b1d98ae-9b5a-4555-9f17-fea03569e968.webp?v=1714707619","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d3eeef0c6f38870d394be7d87019b70ec7a9c32_bcc23ec6-b5e5-42e2-beec-b8841437f4dc.webp?v=1714707621","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3826163dcc2884a5253a5c0baf22d3e92f3ab9_c7c76a33-bb08-4b11-8aa1-b5c14f37c5cf.webp?v=1714707624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/525b90fd6ced70ccfe29de242751d585bcbc5e43_3e60b7a4-20c1-4f90-80d7-756b524516c4.webp?v=1714707626"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786edb8a780c0b88084ce386eb63c460b86bcd49_408204ba-df77-4dfa-9584-47e29688e03b.webp?v=1714707603","options":["color"],"media":[{"alt":null,"id":23875858858083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786edb8a780c0b88084ce386eb63c460b86bcd49_408204ba-df77-4dfa-9584-47e29688e03b.webp?v=1714707603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786edb8a780c0b88084ce386eb63c460b86bcd49_408204ba-df77-4dfa-9584-47e29688e03b.webp?v=1714707603","width":2000},{"alt":null,"id":23875859185763,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae148630d05637d8855d664e13e8e93b267de38_5cc897b7-4d44-4b80-a5e0-4a9259f004af.webp?v=1714707605"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dae148630d05637d8855d664e13e8e93b267de38_5cc897b7-4d44-4b80-a5e0-4a9259f004af.webp?v=1714707605","width":2000},{"alt":null,"id":23875859906659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/016a8ec0a3e7f7da1c0a179cf9121af3557eb2b2_0c7cb11c-d1ab-44c5-9cda-95c078b9d05e.webp?v=1714707608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/016a8ec0a3e7f7da1c0a179cf9121af3557eb2b2_0c7cb11c-d1ab-44c5-9cda-95c078b9d05e.webp?v=1714707608","width":2000},{"alt":null,"id":23875860430947,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3130e01d52302fdc8757313eaaffe9a6c1a6762a_70088725-126a-4b8a-8fba-066e3f406910.webp?v=1714707611"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3130e01d52302fdc8757313eaaffe9a6c1a6762a_70088725-126a-4b8a-8fba-066e3f406910.webp?v=1714707611","width":2000},{"alt":null,"id":23875860725859,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6eef6d037658a22ef1baea271e63a87346e03c0_04bb7a08-f7aa-4ff2-9ed0-c3328ae2cbcd.webp?v=1714707614"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b6eef6d037658a22ef1baea271e63a87346e03c0_04bb7a08-f7aa-4ff2-9ed0-c3328ae2cbcd.webp?v=1714707614","width":2000},{"alt":null,"id":23875861151843,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da29502e2f4f9ed4889cd94e7e6cac63f4ed87d_200c4e4f-3754-452f-9c36-8d67956db4c7.webp?v=1714707616"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7da29502e2f4f9ed4889cd94e7e6cac63f4ed87d_200c4e4f-3754-452f-9c36-8d67956db4c7.webp?v=1714707616","width":2000},{"alt":null,"id":23875861643363,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28dcb7ef07c33ab3ca273a5aa812883134d682d_6b1d98ae-9b5a-4555-9f17-fea03569e968.webp?v=1714707619"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c28dcb7ef07c33ab3ca273a5aa812883134d682d_6b1d98ae-9b5a-4555-9f17-fea03569e968.webp?v=1714707619","width":2000},{"alt":null,"id":23875861938275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d3eeef0c6f38870d394be7d87019b70ec7a9c32_bcc23ec6-b5e5-42e2-beec-b8841437f4dc.webp?v=1714707621"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d3eeef0c6f38870d394be7d87019b70ec7a9c32_bcc23ec6-b5e5-42e2-beec-b8841437f4dc.webp?v=1714707621","width":2000},{"alt":null,"id":23875862462563,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3826163dcc2884a5253a5c0baf22d3e92f3ab9_c7c76a33-bb08-4b11-8aa1-b5c14f37c5cf.webp?v=1714707624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc3826163dcc2884a5253a5c0baf22d3e92f3ab9_c7c76a33-bb08-4b11-8aa1-b5c14f37c5cf.webp?v=1714707624","width":2000},{"alt":null,"id":23875862855779,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/525b90fd6ced70ccfe29de242751d585bcbc5e43_3e60b7a4-20c1-4f90-80d7-756b524516c4.webp?v=1714707626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/525b90fd6ced70ccfe29de242751d585bcbc5e43_3e60b7a4-20c1-4f90-80d7-756b524516c4.webp?v=1714707626","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41881665568867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470954053731,"product_id":7408008626275,"position":1,"created_at":"2024-05-03T11:40:03+08:00","updated_at":"2024-05-03T11:40:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786edb8a780c0b88084ce386eb63c460b86bcd49_408204ba-df77-4dfa-9584-47e29688e03b.webp?v=1714707603","variant_ids":[41881665568867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875858858083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786edb8a780c0b88084ce386eb63c460b86bcd49_408204ba-df77-4dfa-9584-47e29688e03b.webp?v=1714707603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41881665896547,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470957232227,"product_id":7408008626275,"position":8,"created_at":"2024-05-03T11:40:21+08:00","updated_at":"2024-05-03T11:40:21+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d3eeef0c6f38870d394be7d87019b70ec7a9c32_bcc23ec6-b5e5-42e2-beec-b8841437f4dc.webp?v=1714707621","variant_ids":[41881665896547]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875861938275,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6d3eeef0c6f38870d394be7d87019b70ec7a9c32_bcc23ec6-b5e5-42e2-beec-b8841437f4dc.webp?v=1714707621"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41881665568867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB81","requires_shipping":true,"taxable":true,"featured_image":{"id":31470954053731,"product_id":7408008626275,"position":1,"created_at":"2024-05-03T11:40:03+08:00","updated_at":"2024-05-03T11:40:03+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786edb8a780c0b88084ce386eb63c460b86bcd49_408204ba-df77-4dfa-9584-47e29688e03b.webp?v=1714707603","variant_ids":[41881665568867]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Ewok-Yub Nub! - 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-PB81","featured_media":{"alt":null,"id":23875858858083,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/786edb8a780c0b88084ce386eb63c460b86bcd49_408204ba-df77-4dfa-9584-47e29688e03b.webp?v=1714707603"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}