$product = {"id":7408464363619,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白","handle":"iphone-12-pro-max-mod-nx-printable-pb10","description":null,"published_at":"2024-06-11T16:37:57+08:00","created_at":"2024-05-03T15:31:50+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":41885779591267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472346792035,"product_id":7408464363619,"position":3,"created_at":"2024-05-03T15:31:58+08:00","updated_at":"2024-05-03T15:31:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb705d52c85008f4cada90c4b89b621ade8d5d6a_8b9f592e-a5fc-4e22-8ddf-9584b54d3e2d.webp?v=1714721518","variant_ids":[41885779591267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23877263392867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb705d52c85008f4cada90c4b89b621ade8d5d6a_8b9f592e-a5fc-4e22-8ddf-9584b54d3e2d.webp?v=1714721518"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd330ef38fceb15ce73ba5614e8d9e80f127b924_429a3561-e45f-41ee-a2be-b6d7f5a1eb93.webp?v=1714721512","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e22ab91b1374c4450a5c5de12c87e01e3e6240b5_7fe41e42-e57c-4bf1-bd30-0770ec7aaaad.webp?v=1714721515","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb705d52c85008f4cada90c4b89b621ade8d5d6a_8b9f592e-a5fc-4e22-8ddf-9584b54d3e2d.webp?v=1714721518","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b7ec44cea14633901995e91b4ee2de4d3878e92_9ab63b2f-998f-49bc-9477-3b97d5ff6c50.webp?v=1714721520","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80dce93491d7bc40dbdbebb9b44283e3a4315579_c235e3d1-435e-49d5-b0ec-52c5d02981cb.webp?v=1714721523","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9578b506bf3f0f784c0f548b6a973ef86842d52d_6e0f5975-26eb-492e-9ee4-6986789fcf44.webp?v=1714721526","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35767ad7aaa7f5d18c629e01756c1b671bed9ad9_4a693b48-aa50-4482-87ac-8ebf8398d031.webp?v=1714721528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39553f4e8b9c2ec46f799835a43075dcdea82766_1888488e-7794-4846-8060-0672f63c4d63.webp?v=1714721531","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f163b319b3a2f57812b0e2be8685d336cc5be0ed_238aa362-c401-437f-9de0-097f7dec4665.webp?v=1714721533","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/240da9bf30ee7c83dc620a43500475d73106293e_468bcf9b-0a1b-4829-a1b5-5af09d62f37b.webp?v=1714721536"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd330ef38fceb15ce73ba5614e8d9e80f127b924_429a3561-e45f-41ee-a2be-b6d7f5a1eb93.webp?v=1714721512","options":["color"],"media":[{"alt":null,"id":23877262311523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd330ef38fceb15ce73ba5614e8d9e80f127b924_429a3561-e45f-41ee-a2be-b6d7f5a1eb93.webp?v=1714721512"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd330ef38fceb15ce73ba5614e8d9e80f127b924_429a3561-e45f-41ee-a2be-b6d7f5a1eb93.webp?v=1714721512","width":2000},{"alt":null,"id":23877262901347,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e22ab91b1374c4450a5c5de12c87e01e3e6240b5_7fe41e42-e57c-4bf1-bd30-0770ec7aaaad.webp?v=1714721515"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e22ab91b1374c4450a5c5de12c87e01e3e6240b5_7fe41e42-e57c-4bf1-bd30-0770ec7aaaad.webp?v=1714721515","width":2000},{"alt":null,"id":23877263392867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb705d52c85008f4cada90c4b89b621ade8d5d6a_8b9f592e-a5fc-4e22-8ddf-9584b54d3e2d.webp?v=1714721518"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb705d52c85008f4cada90c4b89b621ade8d5d6a_8b9f592e-a5fc-4e22-8ddf-9584b54d3e2d.webp?v=1714721518","width":2000},{"alt":null,"id":23877263884387,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b7ec44cea14633901995e91b4ee2de4d3878e92_9ab63b2f-998f-49bc-9477-3b97d5ff6c50.webp?v=1714721520"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b7ec44cea14633901995e91b4ee2de4d3878e92_9ab63b2f-998f-49bc-9477-3b97d5ff6c50.webp?v=1714721520","width":2000},{"alt":null,"id":23877264375907,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80dce93491d7bc40dbdbebb9b44283e3a4315579_c235e3d1-435e-49d5-b0ec-52c5d02981cb.webp?v=1714721523"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/80dce93491d7bc40dbdbebb9b44283e3a4315579_c235e3d1-435e-49d5-b0ec-52c5d02981cb.webp?v=1714721523","width":2000},{"alt":null,"id":23877264834659,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9578b506bf3f0f784c0f548b6a973ef86842d52d_6e0f5975-26eb-492e-9ee4-6986789fcf44.webp?v=1714721526"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9578b506bf3f0f784c0f548b6a973ef86842d52d_6e0f5975-26eb-492e-9ee4-6986789fcf44.webp?v=1714721526","width":2000},{"alt":null,"id":23877265326179,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35767ad7aaa7f5d18c629e01756c1b671bed9ad9_4a693b48-aa50-4482-87ac-8ebf8398d031.webp?v=1714721528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/35767ad7aaa7f5d18c629e01756c1b671bed9ad9_4a693b48-aa50-4482-87ac-8ebf8398d031.webp?v=1714721528","width":2000},{"alt":null,"id":23877265752163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39553f4e8b9c2ec46f799835a43075dcdea82766_1888488e-7794-4846-8060-0672f63c4d63.webp?v=1714721531"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39553f4e8b9c2ec46f799835a43075dcdea82766_1888488e-7794-4846-8060-0672f63c4d63.webp?v=1714721531","width":2000},{"alt":null,"id":23877266341987,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f163b319b3a2f57812b0e2be8685d336cc5be0ed_238aa362-c401-437f-9de0-097f7dec4665.webp?v=1714721533"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f163b319b3a2f57812b0e2be8685d336cc5be0ed_238aa362-c401-437f-9de0-097f7dec4665.webp?v=1714721533","width":2000},{"alt":null,"id":23877266735203,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/240da9bf30ee7c83dc620a43500475d73106293e_468bcf9b-0a1b-4829-a1b5-5af09d62f37b.webp?v=1714721536"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/240da9bf30ee7c83dc620a43500475d73106293e_468bcf9b-0a1b-4829-a1b5-5af09d62f37b.webp?v=1714721536","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41885779591267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472346792035,"product_id":7408464363619,"position":3,"created_at":"2024-05-03T15:31:58+08:00","updated_at":"2024-05-03T15:31:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb705d52c85008f4cada90c4b89b621ade8d5d6a_8b9f592e-a5fc-4e22-8ddf-9584b54d3e2d.webp?v=1714721518","variant_ids":[41885779591267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23877263392867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb705d52c85008f4cada90c4b89b621ade8d5d6a_8b9f592e-a5fc-4e22-8ddf-9584b54d3e2d.webp?v=1714721518"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41885779591267,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31472346792035,"product_id":7408464363619,"position":3,"created_at":"2024-05-03T15:31:58+08:00","updated_at":"2024-05-03T15:31:58+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb705d52c85008f4cada90c4b89b621ade8d5d6a_8b9f592e-a5fc-4e22-8ddf-9584b54d3e2d.webp?v=1714721518","variant_ids":[41885779591267]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - POP全載具1-白 - 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-PB10","featured_media":{"alt":null,"id":23877263392867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb705d52c85008f4cada90c4b89b621ade8d5d6a_8b9f592e-a5fc-4e22-8ddf-9584b54d3e2d.webp?v=1714721518"}},"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: "停產"
}