$product = {"id":7408490872931,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典","handle":"iphone-12-pro-max-mod-nx-printable-pb76","description":null,"published_at":"2024-06-11T16:38:43+08:00","created_at":"2024-05-03T15:36:55+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 12 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":41886075682915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31472409280611,"product_id":7408490872931,"position":1,"created_at":"2024-05-03T15:36:58+08:00","updated_at":"2024-05-03T15:36:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f92c6dcd25703c60a65a2ac99e71a211fefb71e7_15219f9f-3a73-405b-86e0-9aa2576b028a.webp?v=1714721818","variant_ids":[41886075682915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"NPB0118724-PB76","featured_media":{"alt":null,"id":23877326209123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f92c6dcd25703c60a65a2ac99e71a211fefb71e7_15219f9f-3a73-405b-86e0-9aa2576b028a.webp?v=1714721818"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f92c6dcd25703c60a65a2ac99e71a211fefb71e7_15219f9f-3a73-405b-86e0-9aa2576b028a.webp?v=1714721818","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0b8b5855bd136595faf0cf58a351e41b25e0ce_3bf1ab3a-e86f-434b-b96b-61e17de76477.webp?v=1714721820","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb75247c273075aad4ac271de006e56fc8cc1dd_c4841a48-b375-4d56-ada1-fe2c0dd832e3.webp?v=1714721822","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11575959655baba1849cc0d6482fb74a66b83002_7fbba6c1-5a13-4c88-8671-eb800dde7a9d.webp?v=1714721824","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a7e3b340bbfad5e6556358522c662491b90c0f_7d1f655c-df68-40b8-bc5b-003769549d8a.webp?v=1714721827","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19fc6da1efddc491382806c55c0126040495eb7b_75b22dc1-cdb2-4637-918b-e01706eab81f.webp?v=1714721829","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e53082b453479ec036b3afc8f2c3a963e2bd58_f82d2c5f-28ea-4c81-a831-4b36e59659af.webp?v=1714721831","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8152708ab1b957f7d8c08ed086167a046ae40cd7_c67b119c-bdb9-4b00-8084-9fb9ce6f1a3b.webp?v=1714721834","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8b319393d10f965dc129d3df3b07941c58cbc2_157cc963-6acb-48e4-b99a-0f26f75264d5.webp?v=1714721836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0696cfae3ebe9dc9132606542689da9d7fc05a6_7bc1cddb-d162-434c-95e2-ed19fd38ced0.webp?v=1714721838"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f92c6dcd25703c60a65a2ac99e71a211fefb71e7_15219f9f-3a73-405b-86e0-9aa2576b028a.webp?v=1714721818","options":["color"],"media":[{"alt":null,"id":23877326209123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f92c6dcd25703c60a65a2ac99e71a211fefb71e7_15219f9f-3a73-405b-86e0-9aa2576b028a.webp?v=1714721818"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f92c6dcd25703c60a65a2ac99e71a211fefb71e7_15219f9f-3a73-405b-86e0-9aa2576b028a.webp?v=1714721818","width":2000},{"alt":null,"id":23877326831715,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0b8b5855bd136595faf0cf58a351e41b25e0ce_3bf1ab3a-e86f-434b-b96b-61e17de76477.webp?v=1714721820"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0b0b8b5855bd136595faf0cf58a351e41b25e0ce_3bf1ab3a-e86f-434b-b96b-61e17de76477.webp?v=1714721820","width":2000},{"alt":null,"id":23877327290467,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb75247c273075aad4ac271de006e56fc8cc1dd_c4841a48-b375-4d56-ada1-fe2c0dd832e3.webp?v=1714721822"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3fb75247c273075aad4ac271de006e56fc8cc1dd_c4841a48-b375-4d56-ada1-fe2c0dd832e3.webp?v=1714721822","width":2000},{"alt":null,"id":23877327978595,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11575959655baba1849cc0d6482fb74a66b83002_7fbba6c1-5a13-4c88-8671-eb800dde7a9d.webp?v=1714721824"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/11575959655baba1849cc0d6482fb74a66b83002_7fbba6c1-5a13-4c88-8671-eb800dde7a9d.webp?v=1714721824","width":2000},{"alt":null,"id":23877328437347,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a7e3b340bbfad5e6556358522c662491b90c0f_7d1f655c-df68-40b8-bc5b-003769549d8a.webp?v=1714721827"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33a7e3b340bbfad5e6556358522c662491b90c0f_7d1f655c-df68-40b8-bc5b-003769549d8a.webp?v=1714721827","width":2000},{"alt":null,"id":23877328928867,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19fc6da1efddc491382806c55c0126040495eb7b_75b22dc1-cdb2-4637-918b-e01706eab81f.webp?v=1714721829"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19fc6da1efddc491382806c55c0126040495eb7b_75b22dc1-cdb2-4637-918b-e01706eab81f.webp?v=1714721829","width":2000},{"alt":null,"id":23877329420387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e53082b453479ec036b3afc8f2c3a963e2bd58_f82d2c5f-28ea-4c81-a831-4b36e59659af.webp?v=1714721831"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97e53082b453479ec036b3afc8f2c3a963e2bd58_f82d2c5f-28ea-4c81-a831-4b36e59659af.webp?v=1714721831","width":2000},{"alt":null,"id":23877330108515,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8152708ab1b957f7d8c08ed086167a046ae40cd7_c67b119c-bdb9-4b00-8084-9fb9ce6f1a3b.webp?v=1714721834"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8152708ab1b957f7d8c08ed086167a046ae40cd7_c67b119c-bdb9-4b00-8084-9fb9ce6f1a3b.webp?v=1714721834","width":2000},{"alt":null,"id":23877330731107,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8b319393d10f965dc129d3df3b07941c58cbc2_157cc963-6acb-48e4-b99a-0f26f75264d5.webp?v=1714721836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a8b319393d10f965dc129d3df3b07941c58cbc2_157cc963-6acb-48e4-b99a-0f26f75264d5.webp?v=1714721836","width":2000},{"alt":null,"id":23877331124323,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0696cfae3ebe9dc9132606542689da9d7fc05a6_7bc1cddb-d162-434c-95e2-ed19fd38ced0.webp?v=1714721838"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c0696cfae3ebe9dc9132606542689da9d7fc05a6_7bc1cddb-d162-434c-95e2-ed19fd38ced0.webp?v=1714721838","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886075682915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31472409280611,"product_id":7408490872931,"position":1,"created_at":"2024-05-03T15:36:58+08:00","updated_at":"2024-05-03T15:36:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f92c6dcd25703c60a65a2ac99e71a211fefb71e7_15219f9f-3a73-405b-86e0-9aa2576b028a.webp?v=1714721818","variant_ids":[41886075682915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"NPB0118724-PB76","featured_media":{"alt":null,"id":23877326209123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f92c6dcd25703c60a65a2ac99e71a211fefb71e7_15219f9f-3a73-405b-86e0-9aa2576b028a.webp?v=1714721818"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886075682915,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB76","requires_shipping":true,"taxable":true,"featured_image":{"id":31472409280611,"product_id":7408490872931,"position":1,"created_at":"2024-05-03T15:36:58+08:00","updated_at":"2024-05-03T15:36:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f92c6dcd25703c60a65a2ac99e71a211fefb71e7_15219f9f-3a73-405b-86e0-9aa2576b028a.webp?v=1714721818","variant_ids":[41886075682915]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - Spaceship Logo-經典 - 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":"NPB0118724-PB76","featured_media":{"alt":null,"id":23877326209123,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f92c6dcd25703c60a65a2ac99e71a211fefb71e7_15219f9f-3a73-405b-86e0-9aa2576b028a.webp?v=1714721818"}},"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: "停產"
}