$product = {"id":7408086057059,"title":"犀牛盾Mod NX手機殼 - iPhone 13 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列","handle":"iphone-13-pro-max-mod-nx-printable-pb72","description":null,"published_at":"2024-06-11T16:31:00+08:00","created_at":"2024-05-03T11:57:01+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":41882517799011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471159509091,"product_id":7408086057059,"position":8,"created_at":"2024-05-03T11:57:20+08:00","updated_at":"2024-05-03T11:57:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabbb294fddb3cffa32a405cac3b5079d747f20a_1984fa9e-d22b-46af-acd5-f8c3aa45528a.webp?v=1714708640","variant_ids":[41882517799011]},"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-PB72","featured_media":{"alt":null,"id":23876064739427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabbb294fddb3cffa32a405cac3b5079d747f20a_1984fa9e-d22b-46af-acd5-f8c3aa45528a.webp?v=1714708640"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882518093923,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471157706851,"product_id":7408086057059,"position":5,"created_at":"2024-05-03T11:57:13+08:00","updated_at":"2024-05-03T11:57:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04adc290232163d2cd50b8c76e48273d4ccce2f6_2f0899a2-4d11-4604-bc24-72c018daebc3.webp?v=1714708633","variant_ids":[41882518093923]},"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-PB72","featured_media":{"alt":null,"id":23876062937187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04adc290232163d2cd50b8c76e48273d4ccce2f6_2f0899a2-4d11-4604-bc24-72c018daebc3.webp?v=1714708633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87fdb0007602740930a31b77d5da71ca442dc33c_47c4686e-7046-49b9-857d-9fd3fffd05c3.webp?v=1714708624","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28939df536e59fbc9820504b063f0cd46c0ba996_0be580ed-69a7-4460-b91b-4f8363b115b7.webp?v=1714708626","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73c9770425b49b9c664e83c79f4d99574ff7eab_b1ac2bce-f957-4729-b264-785c490b4c01.webp?v=1714708628","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3328bff94cee7c9494275afdb8a7dd2cdb4e78_725a9d44-faff-4c41-ab02-b8d311b9099f.webp?v=1714708631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04adc290232163d2cd50b8c76e48273d4ccce2f6_2f0899a2-4d11-4604-bc24-72c018daebc3.webp?v=1714708633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9155d5894f0d9854307b3378ab4e55e39d57d84_5f696b86-30b3-4c2b-be8d-c3046fa58aa9.webp?v=1714708635","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651963bba32e523515ac178b620c93bacc8e23cf_88c564a0-0ca5-463c-9ff8-2de1264241bd.webp?v=1714708638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabbb294fddb3cffa32a405cac3b5079d747f20a_1984fa9e-d22b-46af-acd5-f8c3aa45528a.webp?v=1714708640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b991218101c26281a9362d1f0098fcf6f48670_91f2fa59-c36b-4610-9052-a293aa08f713.webp?v=1714708642","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5c7731277f9c9bc1fa5685cc2e7e331f658cb6_a72dd4da-487b-4b00-915a-5ca319655064.webp?v=1714708645"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87fdb0007602740930a31b77d5da71ca442dc33c_47c4686e-7046-49b9-857d-9fd3fffd05c3.webp?v=1714708624","options":["color"],"media":[{"alt":null,"id":23876061593699,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87fdb0007602740930a31b77d5da71ca442dc33c_47c4686e-7046-49b9-857d-9fd3fffd05c3.webp?v=1714708624"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/87fdb0007602740930a31b77d5da71ca442dc33c_47c4686e-7046-49b9-857d-9fd3fffd05c3.webp?v=1714708624","width":2000},{"alt":null,"id":23876062052451,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28939df536e59fbc9820504b063f0cd46c0ba996_0be580ed-69a7-4460-b91b-4f8363b115b7.webp?v=1714708626"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/28939df536e59fbc9820504b063f0cd46c0ba996_0be580ed-69a7-4460-b91b-4f8363b115b7.webp?v=1714708626","width":2000},{"alt":null,"id":23876062380131,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73c9770425b49b9c664e83c79f4d99574ff7eab_b1ac2bce-f957-4729-b264-785c490b4c01.webp?v=1714708628"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a73c9770425b49b9c664e83c79f4d99574ff7eab_b1ac2bce-f957-4729-b264-785c490b4c01.webp?v=1714708628","width":2000},{"alt":null,"id":23876062740579,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3328bff94cee7c9494275afdb8a7dd2cdb4e78_725a9d44-faff-4c41-ab02-b8d311b9099f.webp?v=1714708631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a3328bff94cee7c9494275afdb8a7dd2cdb4e78_725a9d44-faff-4c41-ab02-b8d311b9099f.webp?v=1714708631","width":2000},{"alt":null,"id":23876062937187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04adc290232163d2cd50b8c76e48273d4ccce2f6_2f0899a2-4d11-4604-bc24-72c018daebc3.webp?v=1714708633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04adc290232163d2cd50b8c76e48273d4ccce2f6_2f0899a2-4d11-4604-bc24-72c018daebc3.webp?v=1714708633","width":2000},{"alt":null,"id":23876063952995,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9155d5894f0d9854307b3378ab4e55e39d57d84_5f696b86-30b3-4c2b-be8d-c3046fa58aa9.webp?v=1714708635"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a9155d5894f0d9854307b3378ab4e55e39d57d84_5f696b86-30b3-4c2b-be8d-c3046fa58aa9.webp?v=1714708635","width":2000},{"alt":null,"id":23876064378979,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651963bba32e523515ac178b620c93bacc8e23cf_88c564a0-0ca5-463c-9ff8-2de1264241bd.webp?v=1714708638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/651963bba32e523515ac178b620c93bacc8e23cf_88c564a0-0ca5-463c-9ff8-2de1264241bd.webp?v=1714708638","width":2000},{"alt":null,"id":23876064739427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabbb294fddb3cffa32a405cac3b5079d747f20a_1984fa9e-d22b-46af-acd5-f8c3aa45528a.webp?v=1714708640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabbb294fddb3cffa32a405cac3b5079d747f20a_1984fa9e-d22b-46af-acd5-f8c3aa45528a.webp?v=1714708640","width":2000},{"alt":null,"id":23876065296483,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b991218101c26281a9362d1f0098fcf6f48670_91f2fa59-c36b-4610-9052-a293aa08f713.webp?v=1714708642"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/90b991218101c26281a9362d1f0098fcf6f48670_91f2fa59-c36b-4610-9052-a293aa08f713.webp?v=1714708642","width":2000},{"alt":null,"id":23876065656931,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5c7731277f9c9bc1fa5685cc2e7e331f658cb6_a72dd4da-487b-4b00-915a-5ca319655064.webp?v=1714708645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cf5c7731277f9c9bc1fa5685cc2e7e331f658cb6_a72dd4da-487b-4b00-915a-5ca319655064.webp?v=1714708645","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41882517799011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471159509091,"product_id":7408086057059,"position":8,"created_at":"2024-05-03T11:57:20+08:00","updated_at":"2024-05-03T11:57:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabbb294fddb3cffa32a405cac3b5079d747f20a_1984fa9e-d22b-46af-acd5-f8c3aa45528a.webp?v=1714708640","variant_ids":[41882517799011]},"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-PB72","featured_media":{"alt":null,"id":23876064739427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabbb294fddb3cffa32a405cac3b5079d747f20a_1984fa9e-d22b-46af-acd5-f8c3aa45528a.webp?v=1714708640"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41882518093923,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"NPB01232J5-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471157706851,"product_id":7408086057059,"position":5,"created_at":"2024-05-03T11:57:13+08:00","updated_at":"2024-05-03T11:57:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04adc290232163d2cd50b8c76e48273d4ccce2f6_2f0899a2-4d11-4604-bc24-72c018daebc3.webp?v=1714708633","variant_ids":[41882518093923]},"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-PB72","featured_media":{"alt":null,"id":23876062937187,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04adc290232163d2cd50b8c76e48273d4ccce2f6_2f0899a2-4d11-4604-bc24-72c018daebc3.webp?v=1714708633"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41882517799011,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0123224-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31471159509091,"product_id":7408086057059,"position":8,"created_at":"2024-05-03T11:57:20+08:00","updated_at":"2024-05-03T11:57:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabbb294fddb3cffa32a405cac3b5079d747f20a_1984fa9e-d22b-46af-acd5-f8c3aa45528a.webp?v=1714708640","variant_ids":[41882517799011]},"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-PB72","featured_media":{"alt":null,"id":23876064739427,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aabbb294fddb3cffa32a405cac3b5079d747f20a_1984fa9e-d22b-46af-acd5-f8c3aa45528a.webp?v=1714708640"}},"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: "停產"
}