$product = {"id":7408486875235,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 千年鷹-美式復古","handle":"iphone-12-pro-max-mod-nx-printable-pb99","description":null,"published_at":"2024-06-11T16:38:36+08:00","created_at":"2024-05-03T15:36:11+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":41886035738723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31472399712355,"product_id":7408486875235,"position":3,"created_at":"2024-05-03T15:36:18+08:00","updated_at":"2024-05-03T15:36:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa89fb5c11575ff027da19d5f11f965589877bd_faba262d-9ec9-4426-a1d3-c08e00bd206c.webp?v=1714721778","variant_ids":[41886035738723]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PB99","featured_media":{"alt":null,"id":23877316673635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa89fb5c11575ff027da19d5f11f965589877bd_faba262d-9ec9-4426-a1d3-c08e00bd206c.webp?v=1714721778"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3df8c7940893a4c007dcd44d66b0fe2468e128d5_35b32eb4-396b-491d-b39e-fd90fdbb7a60.webp?v=1714721774","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8547722b8333217e1c9ece98b3345891fc1ac4be_7228f25f-b2a6-4a19-af3a-8d28bdca5f60.webp?v=1714721776","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa89fb5c11575ff027da19d5f11f965589877bd_faba262d-9ec9-4426-a1d3-c08e00bd206c.webp?v=1714721778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0902a6e92bba6dee12aa944ddfa6ba1d3f33a08_a04775a2-88af-48e5-8e78-90f0d450d964.webp?v=1714721781","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97123a6fd292dad21daa91aa76cb74aadbb24a61_dd3a1c7d-c4b6-4ccc-bfad-83e42fa67855.webp?v=1714721783","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88a41b0423d9c228d379e78cb92a2e4bbd8e5a0_85cda324-d00b-4bfb-988d-787af1ce5560.webp?v=1714721786","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bd31a28d2296629696a98c5ab2a9f6b56581883_3e3e43e6-93f6-4f05-bde2-e3642be0f61c.webp?v=1714721788","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb52cb888f4fcb99628dc3970fd074e14b63cefe_ac5dd252-a98c-437c-affb-ea6d80caa535.webp?v=1714721790","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2ed44d4470553d5eee5ccad89c28e737c19780_3c3a512c-0345-44ae-b29a-ca1648a42caa.webp?v=1714721793","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff855a81764c9b2e79a0a4eb33eb6af7dcf4a6c_6d9f55fd-684b-4a71-99fd-dfa10ffe612f.webp?v=1714721795"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3df8c7940893a4c007dcd44d66b0fe2468e128d5_35b32eb4-396b-491d-b39e-fd90fdbb7a60.webp?v=1714721774","options":["color"],"media":[{"alt":null,"id":23877315559523,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3df8c7940893a4c007dcd44d66b0fe2468e128d5_35b32eb4-396b-491d-b39e-fd90fdbb7a60.webp?v=1714721774"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3df8c7940893a4c007dcd44d66b0fe2468e128d5_35b32eb4-396b-491d-b39e-fd90fdbb7a60.webp?v=1714721774","width":2000},{"alt":null,"id":23877316116579,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8547722b8333217e1c9ece98b3345891fc1ac4be_7228f25f-b2a6-4a19-af3a-8d28bdca5f60.webp?v=1714721776"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8547722b8333217e1c9ece98b3345891fc1ac4be_7228f25f-b2a6-4a19-af3a-8d28bdca5f60.webp?v=1714721776","width":2000},{"alt":null,"id":23877316673635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa89fb5c11575ff027da19d5f11f965589877bd_faba262d-9ec9-4426-a1d3-c08e00bd206c.webp?v=1714721778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa89fb5c11575ff027da19d5f11f965589877bd_faba262d-9ec9-4426-a1d3-c08e00bd206c.webp?v=1714721778","width":2000},{"alt":null,"id":23877317296227,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0902a6e92bba6dee12aa944ddfa6ba1d3f33a08_a04775a2-88af-48e5-8e78-90f0d450d964.webp?v=1714721781"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f0902a6e92bba6dee12aa944ddfa6ba1d3f33a08_a04775a2-88af-48e5-8e78-90f0d450d964.webp?v=1714721781","width":2000},{"alt":null,"id":23877317951587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97123a6fd292dad21daa91aa76cb74aadbb24a61_dd3a1c7d-c4b6-4ccc-bfad-83e42fa67855.webp?v=1714721783"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/97123a6fd292dad21daa91aa76cb74aadbb24a61_dd3a1c7d-c4b6-4ccc-bfad-83e42fa67855.webp?v=1714721783","width":2000},{"alt":null,"id":23877319229539,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88a41b0423d9c228d379e78cb92a2e4bbd8e5a0_85cda324-d00b-4bfb-988d-787af1ce5560.webp?v=1714721786"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c88a41b0423d9c228d379e78cb92a2e4bbd8e5a0_85cda324-d00b-4bfb-988d-787af1ce5560.webp?v=1714721786","width":2000},{"alt":null,"id":23877319983203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bd31a28d2296629696a98c5ab2a9f6b56581883_3e3e43e6-93f6-4f05-bde2-e3642be0f61c.webp?v=1714721788"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3bd31a28d2296629696a98c5ab2a9f6b56581883_3e3e43e6-93f6-4f05-bde2-e3642be0f61c.webp?v=1714721788","width":2000},{"alt":null,"id":23877320409187,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb52cb888f4fcb99628dc3970fd074e14b63cefe_ac5dd252-a98c-437c-affb-ea6d80caa535.webp?v=1714721790"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/eb52cb888f4fcb99628dc3970fd074e14b63cefe_ac5dd252-a98c-437c-affb-ea6d80caa535.webp?v=1714721790","width":2000},{"alt":null,"id":23877321097315,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2ed44d4470553d5eee5ccad89c28e737c19780_3c3a512c-0345-44ae-b29a-ca1648a42caa.webp?v=1714721793"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c2ed44d4470553d5eee5ccad89c28e737c19780_3c3a512c-0345-44ae-b29a-ca1648a42caa.webp?v=1714721793","width":2000},{"alt":null,"id":23877321523299,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff855a81764c9b2e79a0a4eb33eb6af7dcf4a6c_6d9f55fd-684b-4a71-99fd-dfa10ffe612f.webp?v=1714721795"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fff855a81764c9b2e79a0a4eb33eb6af7dcf4a6c_6d9f55fd-684b-4a71-99fd-dfa10ffe612f.webp?v=1714721795","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886035738723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31472399712355,"product_id":7408486875235,"position":3,"created_at":"2024-05-03T15:36:18+08:00","updated_at":"2024-05-03T15:36:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa89fb5c11575ff027da19d5f11f965589877bd_faba262d-9ec9-4426-a1d3-c08e00bd206c.webp?v=1714721778","variant_ids":[41886035738723]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PB99","featured_media":{"alt":null,"id":23877316673635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa89fb5c11575ff027da19d5f11f965589877bd_faba262d-9ec9-4426-a1d3-c08e00bd206c.webp?v=1714721778"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886035738723,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB99","requires_shipping":true,"taxable":true,"featured_image":{"id":31472399712355,"product_id":7408486875235,"position":3,"created_at":"2024-05-03T15:36:18+08:00","updated_at":"2024-05-03T15:36:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa89fb5c11575ff027da19d5f11f965589877bd_faba262d-9ec9-4426-a1d3-c08e00bd206c.webp?v=1714721778","variant_ids":[41886035738723]},"available":true,"name":"犀牛盾Mod NX手機殼 - iPhone 12 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":"NPB0118724-PB99","featured_media":{"alt":null,"id":23877316673635,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/afa89fb5c11575ff027da19d5f11f965589877bd_faba262d-9ec9-4426-a1d3-c08e00bd206c.webp?v=1714721778"}},"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: "停產"
}