$product = {"id":7408514531427,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列","handle":"iphone-12-pro-max-mod-nx-printable-pb47","description":null,"published_at":"2024-06-11T16:39:23+08:00","created_at":"2024-05-03T15:41: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 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":41886352179299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31472473342051,"product_id":7408514531427,"position":3,"created_at":"2024-05-03T15:41:45+08:00","updated_at":"2024-05-03T15:41:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669deba77f0543f7133a6b98466a2008de1ceb3e_d7b4b078-cd36-4047-8271-63cd14855713.webp?v=1714722105","variant_ids":[41886352179299]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23877390663779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669deba77f0543f7133a6b98466a2008de1ceb3e_d7b4b078-cd36-4047-8271-63cd14855713.webp?v=1714722105"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce87e0b0137dd2c1c857df5fc764872b52d4bf61_82e6d209-1605-44ad-97c6-6d4d70e53472.webp?v=1714722101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6339ec716647460f7d5298004a5bb3a87c34c0b0_4dffd0de-ddaf-4fa4-945d-51f298ed74a1.webp?v=1714722103","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669deba77f0543f7133a6b98466a2008de1ceb3e_d7b4b078-cd36-4047-8271-63cd14855713.webp?v=1714722105","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef094a651dfaecae5efe1be0340317a55b261e48_15a1e52a-cb84-4bab-8063-d584a54b62e6.webp?v=1714722108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd03837166961b93f4d37c96d07ac0dbc7c7c88f_07f29dc9-523e-473d-891a-90ad65b59229.webp?v=1714722111","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6e60ad30f5d743751c1bcfa633f5136533e7e0_4dfd3e4d-6d49-4b31-82ad-dbb73fdd351a.webp?v=1714722113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c13c0792fe67a793a491b7186357a8bdf1f98c31_ececc8ef-851a-459b-bd9b-8e69c20ebe9c.webp?v=1714722115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/344f077cfaa9dc7cbf97073fab5f2b6c84dcd6f7_b96f5d5d-07cd-484d-b7c1-ec7a94c718a7.webp?v=1714722118","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5c0b2da30f9585ad80bda5e46d280f87e99656b_29601748-3aec-4d51-8970-40b43710fc3c.webp?v=1714722120","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d554023ae56ee14d2f21d333a58360cef7eb663_1a70856a-43e6-4f13-91be-33e9273ba592.webp?v=1714722123"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce87e0b0137dd2c1c857df5fc764872b52d4bf61_82e6d209-1605-44ad-97c6-6d4d70e53472.webp?v=1714722101","options":["color"],"media":[{"alt":null,"id":23877389484131,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce87e0b0137dd2c1c857df5fc764872b52d4bf61_82e6d209-1605-44ad-97c6-6d4d70e53472.webp?v=1714722101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ce87e0b0137dd2c1c857df5fc764872b52d4bf61_82e6d209-1605-44ad-97c6-6d4d70e53472.webp?v=1714722101","width":2000},{"alt":null,"id":23877390008419,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6339ec716647460f7d5298004a5bb3a87c34c0b0_4dffd0de-ddaf-4fa4-945d-51f298ed74a1.webp?v=1714722103"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6339ec716647460f7d5298004a5bb3a87c34c0b0_4dffd0de-ddaf-4fa4-945d-51f298ed74a1.webp?v=1714722103","width":2000},{"alt":null,"id":23877390663779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669deba77f0543f7133a6b98466a2008de1ceb3e_d7b4b078-cd36-4047-8271-63cd14855713.webp?v=1714722105"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669deba77f0543f7133a6b98466a2008de1ceb3e_d7b4b078-cd36-4047-8271-63cd14855713.webp?v=1714722105","width":2000},{"alt":null,"id":23877391056995,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef094a651dfaecae5efe1be0340317a55b261e48_15a1e52a-cb84-4bab-8063-d584a54b62e6.webp?v=1714722108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ef094a651dfaecae5efe1be0340317a55b261e48_15a1e52a-cb84-4bab-8063-d584a54b62e6.webp?v=1714722108","width":2000},{"alt":null,"id":23877391646819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd03837166961b93f4d37c96d07ac0dbc7c7c88f_07f29dc9-523e-473d-891a-90ad65b59229.webp?v=1714722111"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd03837166961b93f4d37c96d07ac0dbc7c7c88f_07f29dc9-523e-473d-891a-90ad65b59229.webp?v=1714722111","width":2000},{"alt":null,"id":23877392203875,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6e60ad30f5d743751c1bcfa633f5136533e7e0_4dfd3e4d-6d49-4b31-82ad-dbb73fdd351a.webp?v=1714722113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4c6e60ad30f5d743751c1bcfa633f5136533e7e0_4dfd3e4d-6d49-4b31-82ad-dbb73fdd351a.webp?v=1714722113","width":2000},{"alt":null,"id":23877392728163,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c13c0792fe67a793a491b7186357a8bdf1f98c31_ececc8ef-851a-459b-bd9b-8e69c20ebe9c.webp?v=1714722115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c13c0792fe67a793a491b7186357a8bdf1f98c31_ececc8ef-851a-459b-bd9b-8e69c20ebe9c.webp?v=1714722115","width":2000},{"alt":null,"id":23877393252451,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/344f077cfaa9dc7cbf97073fab5f2b6c84dcd6f7_b96f5d5d-07cd-484d-b7c1-ec7a94c718a7.webp?v=1714722118"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/344f077cfaa9dc7cbf97073fab5f2b6c84dcd6f7_b96f5d5d-07cd-484d-b7c1-ec7a94c718a7.webp?v=1714722118","width":2000},{"alt":null,"id":23877393678435,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5c0b2da30f9585ad80bda5e46d280f87e99656b_29601748-3aec-4d51-8970-40b43710fc3c.webp?v=1714722120"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5c0b2da30f9585ad80bda5e46d280f87e99656b_29601748-3aec-4d51-8970-40b43710fc3c.webp?v=1714722120","width":2000},{"alt":null,"id":23877394268259,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d554023ae56ee14d2f21d333a58360cef7eb663_1a70856a-43e6-4f13-91be-33e9273ba592.webp?v=1714722123"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0d554023ae56ee14d2f21d333a58360cef7eb663_1a70856a-43e6-4f13-91be-33e9273ba592.webp?v=1714722123","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886352179299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31472473342051,"product_id":7408514531427,"position":3,"created_at":"2024-05-03T15:41:45+08:00","updated_at":"2024-05-03T15:41:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669deba77f0543f7133a6b98466a2008de1ceb3e_d7b4b078-cd36-4047-8271-63cd14855713.webp?v=1714722105","variant_ids":[41886352179299]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23877390663779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669deba77f0543f7133a6b98466a2008de1ceb3e_d7b4b078-cd36-4047-8271-63cd14855713.webp?v=1714722105"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886352179299,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB47","requires_shipping":true,"taxable":true,"featured_image":{"id":31472473342051,"product_id":7408514531427,"position":3,"created_at":"2024-05-03T15:41:45+08:00","updated_at":"2024-05-03T15:41:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669deba77f0543f7133a6b98466a2008de1ceb3e_d7b4b078-cd36-4047-8271-63cd14855713.webp?v=1714722105","variant_ids":[41886352179299]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - JEDI ORDER徽章2-潮流系列 - 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-PB47","featured_media":{"alt":null,"id":23877390663779,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/669deba77f0543f7133a6b98466a2008de1ceb3e_d7b4b078-cd36-4047-8271-63cd14855713.webp?v=1714722105"}},"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: "停產"
}