$product = {"id":7408066625635,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列","handle":"iphone-13-pro-max-mod-nx-printable-pb78","description":null,"published_at":"2024-06-11T16:30:29+08:00","created_at":"2024-05-03T11:52:38+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":41882298908771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31471104884835,"product_id":7408066625635,"position":3,"created_at":"2024-05-03T11:52:45+08:00","updated_at":"2024-05-03T11:52:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d1906e01d940c8e8877f90d611b5c2b502cb47_9ee92cbe-c57b-41b7-a72c-56c1f3add3b7.webp?v=1714708365","variant_ids":[41882298908771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列 - 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-PB78","featured_media":{"alt":null,"id":23876010147939,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d1906e01d940c8e8877f90d611b5c2b502cb47_9ee92cbe-c57b-41b7-a72c-56c1f3add3b7.webp?v=1714708365"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882299236451,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31471105245283,"product_id":7408066625635,"position":4,"created_at":"2024-05-03T11:52:47+08:00","updated_at":"2024-05-03T11:52:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f75e34095d670ed0ca0c0fc97b2282b23ec931_dfc02c0c-2cc7-4d21-9ea3-cd9fb0864e1d.webp?v=1714708367","variant_ids":[41882299236451]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列 - 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-PB78","featured_media":{"alt":null,"id":23876010442851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f75e34095d670ed0ca0c0fc97b2282b23ec931_dfc02c0c-2cc7-4d21-9ea3-cd9fb0864e1d.webp?v=1714708367"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f494f87d05e9b2256704d5e7eed8651e905113d8_8eb98a78-24a7-4ebe-9e83-d9e04f3393c6.webp?v=1714708360","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f6f02f10a4eb51e0367582cb462d93ba802833_380c58da-5d54-4eb9-add7-93e1bc078777.webp?v=1714708362","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d1906e01d940c8e8877f90d611b5c2b502cb47_9ee92cbe-c57b-41b7-a72c-56c1f3add3b7.webp?v=1714708365","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f75e34095d670ed0ca0c0fc97b2282b23ec931_dfc02c0c-2cc7-4d21-9ea3-cd9fb0864e1d.webp?v=1714708367","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb577391c0bd7d2eaaa37d1ee3a59cc10a9af20a_b1ec37a4-bc00-4f28-a3de-a8d63ea9e63a.webp?v=1714708369","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098c5f3809f5b2e900756540f9ef638bb92f9aa3_02ebe6b8-16cb-496a-836c-7ffe41ba3992.webp?v=1714708372","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a856252c1d5eacbaba49dbd4efb04bd4776db76a_c33f24fe-c8f6-4fbb-8c0f-7c24e9c0c822.webp?v=1714708374","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33cb0d50d6e9ace740d89a21be9df184e49ad4cd_48e9e8bb-79b5-4c71-b62d-8222a9b3175d.webp?v=1714708377","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e68d05d11509fe28e5c51c576a82ffc8bde057f_4d8def34-e208-4065-94c1-8a19d7076ff1.webp?v=1714708379","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58616cb10dac80ee4fe4ec7c0efb2d74cfd22d02_ba04c8a0-a916-4950-888a-9aefb9893cd8.webp?v=1714708381"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f494f87d05e9b2256704d5e7eed8651e905113d8_8eb98a78-24a7-4ebe-9e83-d9e04f3393c6.webp?v=1714708360","options":["color"],"media":[{"alt":null,"id":23876009295971,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f494f87d05e9b2256704d5e7eed8651e905113d8_8eb98a78-24a7-4ebe-9e83-d9e04f3393c6.webp?v=1714708360"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f494f87d05e9b2256704d5e7eed8651e905113d8_8eb98a78-24a7-4ebe-9e83-d9e04f3393c6.webp?v=1714708360","width":2000},{"alt":null,"id":23876009623651,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f6f02f10a4eb51e0367582cb462d93ba802833_380c58da-5d54-4eb9-add7-93e1bc078777.webp?v=1714708362"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/02f6f02f10a4eb51e0367582cb462d93ba802833_380c58da-5d54-4eb9-add7-93e1bc078777.webp?v=1714708362","width":2000},{"alt":null,"id":23876010147939,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d1906e01d940c8e8877f90d611b5c2b502cb47_9ee92cbe-c57b-41b7-a72c-56c1f3add3b7.webp?v=1714708365"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d1906e01d940c8e8877f90d611b5c2b502cb47_9ee92cbe-c57b-41b7-a72c-56c1f3add3b7.webp?v=1714708365","width":2000},{"alt":null,"id":23876010442851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f75e34095d670ed0ca0c0fc97b2282b23ec931_dfc02c0c-2cc7-4d21-9ea3-cd9fb0864e1d.webp?v=1714708367"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f75e34095d670ed0ca0c0fc97b2282b23ec931_dfc02c0c-2cc7-4d21-9ea3-cd9fb0864e1d.webp?v=1714708367","width":2000},{"alt":null,"id":23876011196515,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb577391c0bd7d2eaaa37d1ee3a59cc10a9af20a_b1ec37a4-bc00-4f28-a3de-a8d63ea9e63a.webp?v=1714708369"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fb577391c0bd7d2eaaa37d1ee3a59cc10a9af20a_b1ec37a4-bc00-4f28-a3de-a8d63ea9e63a.webp?v=1714708369","width":2000},{"alt":null,"id":23876011622499,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098c5f3809f5b2e900756540f9ef638bb92f9aa3_02ebe6b8-16cb-496a-836c-7ffe41ba3992.webp?v=1714708372"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/098c5f3809f5b2e900756540f9ef638bb92f9aa3_02ebe6b8-16cb-496a-836c-7ffe41ba3992.webp?v=1714708372","width":2000},{"alt":null,"id":23876011917411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a856252c1d5eacbaba49dbd4efb04bd4776db76a_c33f24fe-c8f6-4fbb-8c0f-7c24e9c0c822.webp?v=1714708374"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a856252c1d5eacbaba49dbd4efb04bd4776db76a_c33f24fe-c8f6-4fbb-8c0f-7c24e9c0c822.webp?v=1714708374","width":2000},{"alt":null,"id":23876012474467,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33cb0d50d6e9ace740d89a21be9df184e49ad4cd_48e9e8bb-79b5-4c71-b62d-8222a9b3175d.webp?v=1714708377"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33cb0d50d6e9ace740d89a21be9df184e49ad4cd_48e9e8bb-79b5-4c71-b62d-8222a9b3175d.webp?v=1714708377","width":2000},{"alt":null,"id":23876012834915,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e68d05d11509fe28e5c51c576a82ffc8bde057f_4d8def34-e208-4065-94c1-8a19d7076ff1.webp?v=1714708379"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6e68d05d11509fe28e5c51c576a82ffc8bde057f_4d8def34-e208-4065-94c1-8a19d7076ff1.webp?v=1714708379","width":2000},{"alt":null,"id":23876013326435,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58616cb10dac80ee4fe4ec7c0efb2d74cfd22d02_ba04c8a0-a916-4950-888a-9aefb9893cd8.webp?v=1714708381"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58616cb10dac80ee4fe4ec7c0efb2d74cfd22d02_ba04c8a0-a916-4950-888a-9aefb9893cd8.webp?v=1714708381","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882298908771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31471104884835,"product_id":7408066625635,"position":3,"created_at":"2024-05-03T11:52:45+08:00","updated_at":"2024-05-03T11:52:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d1906e01d940c8e8877f90d611b5c2b502cb47_9ee92cbe-c57b-41b7-a72c-56c1f3add3b7.webp?v=1714708365","variant_ids":[41882298908771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列 - 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-PB78","featured_media":{"alt":null,"id":23876010147939,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d1906e01d940c8e8877f90d611b5c2b502cb47_9ee92cbe-c57b-41b7-a72c-56c1f3add3b7.webp?v=1714708365"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882299236451,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31471105245283,"product_id":7408066625635,"position":4,"created_at":"2024-05-03T11:52:47+08:00","updated_at":"2024-05-03T11:52:47+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f75e34095d670ed0ca0c0fc97b2282b23ec931_dfc02c0c-2cc7-4d21-9ea3-cd9fb0864e1d.webp?v=1714708367","variant_ids":[41882299236451]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列 - 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-PB78","featured_media":{"alt":null,"id":23876010442851,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8f75e34095d670ed0ca0c0fc97b2282b23ec931_dfc02c0c-2cc7-4d21-9ea3-cd9fb0864e1d.webp?v=1714708367"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882298908771,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31471104884835,"product_id":7408066625635,"position":3,"created_at":"2024-05-03T11:52:45+08:00","updated_at":"2024-05-03T11:52:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d1906e01d940c8e8877f90d611b5c2b502cb47_9ee92cbe-c57b-41b7-a72c-56c1f3add3b7.webp?v=1714708365","variant_ids":[41882298908771]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列 - 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-PB78","featured_media":{"alt":null,"id":23876010147939,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/70d1906e01d940c8e8877f90d611b5c2b502cb47_9ee92cbe-c57b-41b7-a72c-56c1f3add3b7.webp?v=1714708365"}},"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: "停產"
}