$product = {"id":7408533176419,"title":"犀牛盾Mod NX手機殼 - iPhone 12 Pro Max - 【聯名設計款】 - 迪士尼-星際大戰 Star Wars - 風暴兵-日文字系列","handle":"iphone-12-pro-max-mod-nx-printable-pb62","description":null,"published_at":"2024-06-11T16:39:55+08:00","created_at":"2024-05-03T15:45:08+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":41886564384867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31472518594659,"product_id":7408533176419,"position":5,"created_at":"2024-05-03T15:45:20+08:00","updated_at":"2024-05-03T15:45:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0e23f17d180183206398c3f1f734932c82d8a5_cfea6b73-3972-418d-862b-4408f7b8da92.webp?v=1714722320","variant_ids":[41886564384867]},"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-PB62","featured_media":{"alt":null,"id":23877435916387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0e23f17d180183206398c3f1f734932c82d8a5_cfea6b73-3972-418d-862b-4408f7b8da92.webp?v=1714722320"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5661c25845b9ab0a6cdbff35ffe587fd4c6fcc1b_4486f568-ae2b-4d5e-bcd2-0b986b30d873.webp?v=1714722311","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253474f1714cfc8212fa5624b81f47fa4fda17d2_3100374c-9cd0-4964-97ba-ca4dff1622ba.webp?v=1714722313","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ef65bb1fc876ec0f268bd109cedf1311e345d2_bb9fb8a0-379b-4a1b-a0aa-953840bf6709.webp?v=1714722315","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67ae07b034f88cea8e7366c21b299a15a44f26bb_73d062bb-3d6c-43d7-bbdc-19e8e64e8eb0.webp?v=1714722318","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0e23f17d180183206398c3f1f734932c82d8a5_cfea6b73-3972-418d-862b-4408f7b8da92.webp?v=1714722320","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b555779c1fbbafdb90856ba05a8f2c59362a9a24_6176e59a-cd78-445a-a65f-9c36983862ae.webp?v=1714722323","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c53d7c7227bb311ac91fe65ac4ee5628047a398_0eb08604-b640-499e-83f4-85a4419fd533.webp?v=1714722325","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c2b3a24822861a43e14f0fb804158a1cbde933_7562cffb-7c4b-4a50-b7cd-934576637d13.webp?v=1714722327","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4dd0dcffc31642f6e6987506457b4546f191c4_93fa013b-eb7c-40aa-a52c-14ad2b5d9c55.webp?v=1714722330","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0581e0246c66171b490821ed2d809f7d4d4c2fee_34f7c792-7915-4ce0-ac9f-845dfde1b0e3.webp?v=1714722332"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5661c25845b9ab0a6cdbff35ffe587fd4c6fcc1b_4486f568-ae2b-4d5e-bcd2-0b986b30d873.webp?v=1714722311","options":["color"],"media":[{"alt":null,"id":23877434015843,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5661c25845b9ab0a6cdbff35ffe587fd4c6fcc1b_4486f568-ae2b-4d5e-bcd2-0b986b30d873.webp?v=1714722311"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5661c25845b9ab0a6cdbff35ffe587fd4c6fcc1b_4486f568-ae2b-4d5e-bcd2-0b986b30d873.webp?v=1714722311","width":2000},{"alt":null,"id":23877434572899,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253474f1714cfc8212fa5624b81f47fa4fda17d2_3100374c-9cd0-4964-97ba-ca4dff1622ba.webp?v=1714722313"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/253474f1714cfc8212fa5624b81f47fa4fda17d2_3100374c-9cd0-4964-97ba-ca4dff1622ba.webp?v=1714722313","width":2000},{"alt":null,"id":23877434998883,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ef65bb1fc876ec0f268bd109cedf1311e345d2_bb9fb8a0-379b-4a1b-a0aa-953840bf6709.webp?v=1714722315"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b9ef65bb1fc876ec0f268bd109cedf1311e345d2_bb9fb8a0-379b-4a1b-a0aa-953840bf6709.webp?v=1714722315","width":2000},{"alt":null,"id":23877435523171,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67ae07b034f88cea8e7366c21b299a15a44f26bb_73d062bb-3d6c-43d7-bbdc-19e8e64e8eb0.webp?v=1714722318"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/67ae07b034f88cea8e7366c21b299a15a44f26bb_73d062bb-3d6c-43d7-bbdc-19e8e64e8eb0.webp?v=1714722318","width":2000},{"alt":null,"id":23877435916387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0e23f17d180183206398c3f1f734932c82d8a5_cfea6b73-3972-418d-862b-4408f7b8da92.webp?v=1714722320"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0e23f17d180183206398c3f1f734932c82d8a5_cfea6b73-3972-418d-862b-4408f7b8da92.webp?v=1714722320","width":2000},{"alt":null,"id":23877436768355,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b555779c1fbbafdb90856ba05a8f2c59362a9a24_6176e59a-cd78-445a-a65f-9c36983862ae.webp?v=1714722323"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b555779c1fbbafdb90856ba05a8f2c59362a9a24_6176e59a-cd78-445a-a65f-9c36983862ae.webp?v=1714722323","width":2000},{"alt":null,"id":23877437325411,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c53d7c7227bb311ac91fe65ac4ee5628047a398_0eb08604-b640-499e-83f4-85a4419fd533.webp?v=1714722325"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c53d7c7227bb311ac91fe65ac4ee5628047a398_0eb08604-b640-499e-83f4-85a4419fd533.webp?v=1714722325","width":2000},{"alt":null,"id":23877437816931,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c2b3a24822861a43e14f0fb804158a1cbde933_7562cffb-7c4b-4a50-b7cd-934576637d13.webp?v=1714722327"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/05c2b3a24822861a43e14f0fb804158a1cbde933_7562cffb-7c4b-4a50-b7cd-934576637d13.webp?v=1714722327","width":2000},{"alt":null,"id":23877438341219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4dd0dcffc31642f6e6987506457b4546f191c4_93fa013b-eb7c-40aa-a52c-14ad2b5d9c55.webp?v=1714722330"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e4dd0dcffc31642f6e6987506457b4546f191c4_93fa013b-eb7c-40aa-a52c-14ad2b5d9c55.webp?v=1714722330","width":2000},{"alt":null,"id":23877438832739,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0581e0246c66171b490821ed2d809f7d4d4c2fee_34f7c792-7915-4ce0-ac9f-845dfde1b0e3.webp?v=1714722332"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0581e0246c66171b490821ed2d809f7d4d4c2fee_34f7c792-7915-4ce0-ac9f-845dfde1b0e3.webp?v=1714722332","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41886564384867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31472518594659,"product_id":7408533176419,"position":5,"created_at":"2024-05-03T15:45:20+08:00","updated_at":"2024-05-03T15:45:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0e23f17d180183206398c3f1f734932c82d8a5_cfea6b73-3972-418d-862b-4408f7b8da92.webp?v=1714722320","variant_ids":[41886564384867]},"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-PB62","featured_media":{"alt":null,"id":23877435916387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0e23f17d180183206398c3f1f734932c82d8a5_cfea6b73-3972-418d-862b-4408f7b8da92.webp?v=1714722320"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41886564384867,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"NPB0118724-PB62","requires_shipping":true,"taxable":true,"featured_image":{"id":31472518594659,"product_id":7408533176419,"position":5,"created_at":"2024-05-03T15:45:20+08:00","updated_at":"2024-05-03T15:45:20+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0e23f17d180183206398c3f1f734932c82d8a5_cfea6b73-3972-418d-862b-4408f7b8da92.webp?v=1714722320","variant_ids":[41886564384867]},"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-PB62","featured_media":{"alt":null,"id":23877435916387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bc0e23f17d180183206398c3f1f734932c82d8a5_cfea6b73-3972-418d-862b-4408f7b8da92.webp?v=1714722320"}},"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: "停產"
}