$product = {"id":7408394502243,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列","handle":"iphone-12-pro-max-mod-nx-printable-pb49","description":null,"published_at":"2024-06-11T16:36:03+08:00","created_at":"2024-05-03T15:17:56+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":41884993552483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31472151625827,"product_id":7408394502243,"position":9,"created_at":"2024-05-03T15:18:18+08:00","updated_at":"2024-05-03T15:18:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add17ffda7f5d0139cc33c3f9f2871f3df3fbae1_f53f46dd-05eb-44e2-8fb4-282600f4d99e.webp?v=1714720698","variant_ids":[41884993552483]},"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-PB49","featured_media":{"alt":null,"id":23877067243619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add17ffda7f5d0139cc33c3f9f2871f3df3fbae1_f53f46dd-05eb-44e2-8fb4-282600f4d99e.webp?v=1714720698"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bbab6ce7362e6eadbf85b527b3cdecc8f52cd63_8e130623-f1a2-42ee-a290-34c7e2e3cf9c.webp?v=1714720678","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4524718dd81fc4b87fb95428fbf85a885f361e68_3d7d88b4-dad4-4d39-a2b1-9e63c6f54035.webp?v=1714720681","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04dfd07f4985917ee9c7fa9f73d48897df2d2029_2dd959db-5656-4a1f-bc66-adfb2489a37f.webp?v=1714720683","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f23d03b9cfbb56daf30c79b2d3e464121f32cdad_2e72c30e-2372-467a-b0b1-612f77771653.webp?v=1714720686","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cafb336ad7f9475bebd41822f310d58ef78a6c5_bf1b4f53-5587-4b14-a2a9-43104d7c4c95.webp?v=1714720688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f91b122bde534e8b7654c5c18aecbac4d4b59805_88e85037-f512-4243-8e62-d31bff9c4edb.webp?v=1714720691","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a2c2a133331fb7c6167f2c4f5db8355966fcc_e4b3ca8b-3936-4e89-98f4-ab84b78dbdce.webp?v=1714720693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1664e97489672dee2e5b4b63186b9a25ca90baac_c67bb362-073b-48ec-9eb6-b7f9d0df31d9.webp?v=1714720696","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add17ffda7f5d0139cc33c3f9f2871f3df3fbae1_f53f46dd-05eb-44e2-8fb4-282600f4d99e.webp?v=1714720698","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf5bedfb3bcb86b4f5cc0de79f0da12fa5e82e8_fa16e404-c63c-4948-afdd-9015faaf7608.webp?v=1714720701"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bbab6ce7362e6eadbf85b527b3cdecc8f52cd63_8e130623-f1a2-42ee-a290-34c7e2e3cf9c.webp?v=1714720678","options":["color"],"media":[{"alt":null,"id":23877062328419,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bbab6ce7362e6eadbf85b527b3cdecc8f52cd63_8e130623-f1a2-42ee-a290-34c7e2e3cf9c.webp?v=1714720678"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7bbab6ce7362e6eadbf85b527b3cdecc8f52cd63_8e130623-f1a2-42ee-a290-34c7e2e3cf9c.webp?v=1714720678","width":2000},{"alt":null,"id":23877063082083,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4524718dd81fc4b87fb95428fbf85a885f361e68_3d7d88b4-dad4-4d39-a2b1-9e63c6f54035.webp?v=1714720681"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4524718dd81fc4b87fb95428fbf85a885f361e68_3d7d88b4-dad4-4d39-a2b1-9e63c6f54035.webp?v=1714720681","width":2000},{"alt":null,"id":23877063671907,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04dfd07f4985917ee9c7fa9f73d48897df2d2029_2dd959db-5656-4a1f-bc66-adfb2489a37f.webp?v=1714720683"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/04dfd07f4985917ee9c7fa9f73d48897df2d2029_2dd959db-5656-4a1f-bc66-adfb2489a37f.webp?v=1714720683","width":2000},{"alt":null,"id":23877063999587,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f23d03b9cfbb56daf30c79b2d3e464121f32cdad_2e72c30e-2372-467a-b0b1-612f77771653.webp?v=1714720686"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f23d03b9cfbb56daf30c79b2d3e464121f32cdad_2e72c30e-2372-467a-b0b1-612f77771653.webp?v=1714720686","width":2000},{"alt":null,"id":23877064753251,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cafb336ad7f9475bebd41822f310d58ef78a6c5_bf1b4f53-5587-4b14-a2a9-43104d7c4c95.webp?v=1714720688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1cafb336ad7f9475bebd41822f310d58ef78a6c5_bf1b4f53-5587-4b14-a2a9-43104d7c4c95.webp?v=1714720688","width":2000},{"alt":null,"id":23877065212003,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f91b122bde534e8b7654c5c18aecbac4d4b59805_88e85037-f512-4243-8e62-d31bff9c4edb.webp?v=1714720691"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f91b122bde534e8b7654c5c18aecbac4d4b59805_88e85037-f512-4243-8e62-d31bff9c4edb.webp?v=1714720691","width":2000},{"alt":null,"id":23877065900131,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a2c2a133331fb7c6167f2c4f5db8355966fcc_e4b3ca8b-3936-4e89-98f4-ab84b78dbdce.webp?v=1714720693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e6a2c2a133331fb7c6167f2c4f5db8355966fcc_e4b3ca8b-3936-4e89-98f4-ab84b78dbdce.webp?v=1714720693","width":2000},{"alt":null,"id":23877066621027,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1664e97489672dee2e5b4b63186b9a25ca90baac_c67bb362-073b-48ec-9eb6-b7f9d0df31d9.webp?v=1714720696"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1664e97489672dee2e5b4b63186b9a25ca90baac_c67bb362-073b-48ec-9eb6-b7f9d0df31d9.webp?v=1714720696","width":2000},{"alt":null,"id":23877067243619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add17ffda7f5d0139cc33c3f9f2871f3df3fbae1_f53f46dd-05eb-44e2-8fb4-282600f4d99e.webp?v=1714720698"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add17ffda7f5d0139cc33c3f9f2871f3df3fbae1_f53f46dd-05eb-44e2-8fb4-282600f4d99e.webp?v=1714720698","width":2000},{"alt":null,"id":23877067702371,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf5bedfb3bcb86b4f5cc0de79f0da12fa5e82e8_fa16e404-c63c-4948-afdd-9015faaf7608.webp?v=1714720701"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acf5bedfb3bcb86b4f5cc0de79f0da12fa5e82e8_fa16e404-c63c-4948-afdd-9015faaf7608.webp?v=1714720701","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41884993552483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31472151625827,"product_id":7408394502243,"position":9,"created_at":"2024-05-03T15:18:18+08:00","updated_at":"2024-05-03T15:18:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add17ffda7f5d0139cc33c3f9f2871f3df3fbae1_f53f46dd-05eb-44e2-8fb4-282600f4d99e.webp?v=1714720698","variant_ids":[41884993552483]},"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-PB49","featured_media":{"alt":null,"id":23877067243619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add17ffda7f5d0139cc33c3f9f2871f3df3fbae1_f53f46dd-05eb-44e2-8fb4-282600f4d99e.webp?v=1714720698"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41884993552483,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31472151625827,"product_id":7408394502243,"position":9,"created_at":"2024-05-03T15:18:18+08:00","updated_at":"2024-05-03T15:18:18+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add17ffda7f5d0139cc33c3f9f2871f3df3fbae1_f53f46dd-05eb-44e2-8fb4-282600f4d99e.webp?v=1714720698","variant_ids":[41884993552483]},"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-PB49","featured_media":{"alt":null,"id":23877067243619,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add17ffda7f5d0139cc33c3f9f2871f3df3fbae1_f53f46dd-05eb-44e2-8fb4-282600f4d99e.webp?v=1714720698"}},"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: "停產"
}