$product = {"id":7408069836899,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機","handle":"iphone-13-pro-max-mod-nx-printable-pb28","description":null,"published_at":"2024-06-11T16:30:34+08:00","created_at":"2024-05-03T11:53:20+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":41882338787427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31471112716387,"product_id":7408069836899,"position":1,"created_at":"2024-05-03T11:53:22+08:00","updated_at":"2024-05-03T11:53:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fb5a0ca429beef826ba54f0fa7035d00fd42a2_f327a812-5489-4618-b8e6-e5caf394f6cf.webp?v=1714708402","variant_ids":[41882338787427]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23876017946723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fb5a0ca429beef826ba54f0fa7035d00fd42a2_f327a812-5489-4618-b8e6-e5caf394f6cf.webp?v=1714708402"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882339082339,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31471115993187,"product_id":7408069836899,"position":8,"created_at":"2024-05-03T11:53:39+08:00","updated_at":"2024-05-03T11:53:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5cfaa8417a166207eb664d905cbf738ad28280_37d67f99-69b5-4a77-acc5-aae7e3869034.webp?v=1714708419","variant_ids":[41882339082339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23876021190755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5cfaa8417a166207eb664d905cbf738ad28280_37d67f99-69b5-4a77-acc5-aae7e3869034.webp?v=1714708419"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fb5a0ca429beef826ba54f0fa7035d00fd42a2_f327a812-5489-4618-b8e6-e5caf394f6cf.webp?v=1714708402","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f1c8a6258bafc5bdeb7418d0d77c3a97669a2eb_0c8b5c06-6be9-4bc0-b2e4-b16a466de4ba.webp?v=1714708405","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf0648062758e0e1de91c1c700685b09d8ca3f5_e5f0765b-56e1-401e-8bab-d12e75280959.webp?v=1714708407","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a9a7533d58dcaa36317d9d15e190881cced12e7_c0149141-1c9d-4e8e-8f15-f5c46815fc13.webp?v=1714708409","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d14a7c24c3b481e50cbea7eb3638ad08cf379eef_219dfff2-bcd6-417c-9fb4-fb53e225596e.webp?v=1714708412","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac135c43d6d877ffbb4decc228caaa416bd24a8_740217e7-5b54-4d0a-9105-4584bbc65326.webp?v=1714708414","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a071425e0fe52bb5378eb0ecff02f43a13f1d50_73452189-3abf-4b30-a851-707268be3d74.webp?v=1714708417","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5cfaa8417a166207eb664d905cbf738ad28280_37d67f99-69b5-4a77-acc5-aae7e3869034.webp?v=1714708419","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d186972823d63adfa99bfd6d781641d55ffaf69d_85716b29-ea44-475f-ab03-55d7fd46ed5c.webp?v=1714708422","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f42f59c34555d37c0f31260054106fe08cc7a54e_f08df39c-63ed-4dcb-8e51-ce7872d213a7.webp?v=1714708424"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fb5a0ca429beef826ba54f0fa7035d00fd42a2_f327a812-5489-4618-b8e6-e5caf394f6cf.webp?v=1714708402","options":["color"],"media":[{"alt":null,"id":23876017946723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fb5a0ca429beef826ba54f0fa7035d00fd42a2_f327a812-5489-4618-b8e6-e5caf394f6cf.webp?v=1714708402"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fb5a0ca429beef826ba54f0fa7035d00fd42a2_f327a812-5489-4618-b8e6-e5caf394f6cf.webp?v=1714708402","width":2000},{"alt":null,"id":23876018438243,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f1c8a6258bafc5bdeb7418d0d77c3a97669a2eb_0c8b5c06-6be9-4bc0-b2e4-b16a466de4ba.webp?v=1714708405"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0f1c8a6258bafc5bdeb7418d0d77c3a97669a2eb_0c8b5c06-6be9-4bc0-b2e4-b16a466de4ba.webp?v=1714708405","width":2000},{"alt":null,"id":23876018765923,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf0648062758e0e1de91c1c700685b09d8ca3f5_e5f0765b-56e1-401e-8bab-d12e75280959.webp?v=1714708407"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccf0648062758e0e1de91c1c700685b09d8ca3f5_e5f0765b-56e1-401e-8bab-d12e75280959.webp?v=1714708407","width":2000},{"alt":null,"id":23876019126371,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a9a7533d58dcaa36317d9d15e190881cced12e7_c0149141-1c9d-4e8e-8f15-f5c46815fc13.webp?v=1714708409"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a9a7533d58dcaa36317d9d15e190881cced12e7_c0149141-1c9d-4e8e-8f15-f5c46815fc13.webp?v=1714708409","width":2000},{"alt":null,"id":23876019585123,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d14a7c24c3b481e50cbea7eb3638ad08cf379eef_219dfff2-bcd6-417c-9fb4-fb53e225596e.webp?v=1714708412"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d14a7c24c3b481e50cbea7eb3638ad08cf379eef_219dfff2-bcd6-417c-9fb4-fb53e225596e.webp?v=1714708412","width":2000},{"alt":null,"id":23876020306019,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac135c43d6d877ffbb4decc228caaa416bd24a8_740217e7-5b54-4d0a-9105-4584bbc65326.webp?v=1714708414"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eac135c43d6d877ffbb4decc228caaa416bd24a8_740217e7-5b54-4d0a-9105-4584bbc65326.webp?v=1714708414","width":2000},{"alt":null,"id":23876020764771,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a071425e0fe52bb5378eb0ecff02f43a13f1d50_73452189-3abf-4b30-a851-707268be3d74.webp?v=1714708417"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9a071425e0fe52bb5378eb0ecff02f43a13f1d50_73452189-3abf-4b30-a851-707268be3d74.webp?v=1714708417","width":2000},{"alt":null,"id":23876021190755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5cfaa8417a166207eb664d905cbf738ad28280_37d67f99-69b5-4a77-acc5-aae7e3869034.webp?v=1714708419"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5cfaa8417a166207eb664d905cbf738ad28280_37d67f99-69b5-4a77-acc5-aae7e3869034.webp?v=1714708419","width":2000},{"alt":null,"id":23876021583971,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d186972823d63adfa99bfd6d781641d55ffaf69d_85716b29-ea44-475f-ab03-55d7fd46ed5c.webp?v=1714708422"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d186972823d63adfa99bfd6d781641d55ffaf69d_85716b29-ea44-475f-ab03-55d7fd46ed5c.webp?v=1714708422","width":2000},{"alt":null,"id":23876022042723,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f42f59c34555d37c0f31260054106fe08cc7a54e_f08df39c-63ed-4dcb-8e51-ce7872d213a7.webp?v=1714708424"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f42f59c34555d37c0f31260054106fe08cc7a54e_f08df39c-63ed-4dcb-8e51-ce7872d213a7.webp?v=1714708424","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882338787427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31471112716387,"product_id":7408069836899,"position":1,"created_at":"2024-05-03T11:53:22+08:00","updated_at":"2024-05-03T11:53:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fb5a0ca429beef826ba54f0fa7035d00fd42a2_f327a812-5489-4618-b8e6-e5caf394f6cf.webp?v=1714708402","variant_ids":[41882338787427]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23876017946723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fb5a0ca429beef826ba54f0fa7035d00fd42a2_f327a812-5489-4618-b8e6-e5caf394f6cf.webp?v=1714708402"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882339082339,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31471115993187,"product_id":7408069836899,"position":8,"created_at":"2024-05-03T11:53:39+08:00","updated_at":"2024-05-03T11:53:39+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5cfaa8417a166207eb664d905cbf738ad28280_37d67f99-69b5-4a77-acc5-aae7e3869034.webp?v=1714708419","variant_ids":[41882339082339]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23876021190755,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0a5cfaa8417a166207eb664d905cbf738ad28280_37d67f99-69b5-4a77-acc5-aae7e3869034.webp?v=1714708419"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882338787427,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB28","requires_shipping":true,"taxable":true,"featured_image":{"id":31471112716387,"product_id":7408069836899,"position":1,"created_at":"2024-05-03T11:53:22+08:00","updated_at":"2024-05-03T11:53:22+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fb5a0ca429beef826ba54f0fa7035d00fd42a2_f327a812-5489-4618-b8e6-e5caf394f6cf.webp?v=1714708402","variant_ids":[41882338787427]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP X戰機 - 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-PB28","featured_media":{"alt":null,"id":23876017946723,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d9fb5a0ca429beef826ba54f0fa7035d00fd42a2_f327a812-5489-4618-b8e6-e5caf394f6cf.webp?v=1714708402"}},"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: "停產"
}