$product = {"id":7414519398499,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb70","description":null,"published_at":"2024-06-11T17:51:47+08:00","created_at":"2024-05-05T14:28:45+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區迪士尼-星際大戰 Star Wars","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-starwars","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-star-wars","Top50","type-Mod NX Printable MagSafe Printable"],"price":110000,"price_min":110000,"price_max":110000,"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":41907118473315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485671899235,"product_id":7414519398499,"position":4,"created_at":"2024-05-05T14:28:55+08:00","updated_at":"2024-05-05T14:28:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/859c2fbf6d57bcae169b910ed1e2a233dd39c3eb_d7260158-37a2-470a-ab7e-9d614edfba9b.webp?v=1714890535","variant_ids":[41907118473315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB70","featured_media":{"alt":null,"id":23890990596195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/859c2fbf6d57bcae169b910ed1e2a233dd39c3eb_d7260158-37a2-470a-ab7e-9d614edfba9b.webp?v=1714890535"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907119325283,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485669638243,"product_id":7414519398499,"position":3,"created_at":"2024-05-05T14:28:52+08:00","updated_at":"2024-05-05T14:28:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf6ab6f29e478c5cea09b17f24432497932419a_147c4064-00b7-43f0-bb59-0bf58ee93ca1.webp?v=1714890532","variant_ids":[41907119325283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PB70","featured_media":{"alt":null,"id":23890987679843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf6ab6f29e478c5cea09b17f24432497932419a_147c4064-00b7-43f0-bb59-0bf58ee93ca1.webp?v=1714890532"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c02653f0b3749f8854fa078f968de45071c8458_b4f53c20-418b-4853-92a5-254888a9d56f.webp?v=1714890528","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b8bfe27570924bbc3a6d6d3b1a575c95925830_29a41d1c-c926-4711-bea2-5ec30c29e0ec.webp?v=1714890530","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf6ab6f29e478c5cea09b17f24432497932419a_147c4064-00b7-43f0-bb59-0bf58ee93ca1.webp?v=1714890532","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/859c2fbf6d57bcae169b910ed1e2a233dd39c3eb_d7260158-37a2-470a-ab7e-9d614edfba9b.webp?v=1714890535","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6436e0a22b2bb67b8662866e681a7a7e724da190_5275b301-a490-4997-9417-ad14c6399e15.webp?v=1714890537","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff48c0f22726d790ad57d5e3b4040cf26235ea5b_eaf9e496-d2e4-4cd0-bcd5-6dbf730ec17b.webp?v=1714890540","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668943363769271646fa28b1f4bc6e527bed7244_e436ced6-c8e9-425d-b2c0-67970a163f50.webp?v=1714890542","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ce818a306582434412b6a7035101d139410a66b_ecd3287c-01f5-4fcf-8adb-e78b0d151a53.webp?v=1714890544","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f02e4cabc1580f25fd7503fd92c2e00f92ddd783_8ebcfa44-47c3-43f6-b72d-c402acb8952c.webp?v=1714890547","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7275cf8554ed40a4b20d4cb624da2fedf173334d_782d49b5-ee40-4df3-8d29-e6c1d042769f.webp?v=1714890550","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3321661d7cb62d25fd9cb713968b3629fa6be9b4_2515e8b0-2736-45ae-ae19-e222f615ba98.webp?v=1714890553"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c02653f0b3749f8854fa078f968de45071c8458_b4f53c20-418b-4853-92a5-254888a9d56f.webp?v=1714890528","options":["color"],"media":[{"alt":null,"id":23890982338659,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c02653f0b3749f8854fa078f968de45071c8458_b4f53c20-418b-4853-92a5-254888a9d56f.webp?v=1714890528"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8c02653f0b3749f8854fa078f968de45071c8458_b4f53c20-418b-4853-92a5-254888a9d56f.webp?v=1714890528","width":2000},{"alt":null,"id":23890985058403,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b8bfe27570924bbc3a6d6d3b1a575c95925830_29a41d1c-c926-4711-bea2-5ec30c29e0ec.webp?v=1714890530"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/64b8bfe27570924bbc3a6d6d3b1a575c95925830_29a41d1c-c926-4711-bea2-5ec30c29e0ec.webp?v=1714890530","width":2000},{"alt":null,"id":23890987679843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf6ab6f29e478c5cea09b17f24432497932419a_147c4064-00b7-43f0-bb59-0bf58ee93ca1.webp?v=1714890532"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf6ab6f29e478c5cea09b17f24432497932419a_147c4064-00b7-43f0-bb59-0bf58ee93ca1.webp?v=1714890532","width":2000},{"alt":null,"id":23890990596195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/859c2fbf6d57bcae169b910ed1e2a233dd39c3eb_d7260158-37a2-470a-ab7e-9d614edfba9b.webp?v=1714890535"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/859c2fbf6d57bcae169b910ed1e2a233dd39c3eb_d7260158-37a2-470a-ab7e-9d614edfba9b.webp?v=1714890535","width":2000},{"alt":null,"id":23890993512547,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6436e0a22b2bb67b8662866e681a7a7e724da190_5275b301-a490-4997-9417-ad14c6399e15.webp?v=1714890537"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6436e0a22b2bb67b8662866e681a7a7e724da190_5275b301-a490-4997-9417-ad14c6399e15.webp?v=1714890537","width":2000},{"alt":null,"id":23890996363363,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff48c0f22726d790ad57d5e3b4040cf26235ea5b_eaf9e496-d2e4-4cd0-bcd5-6dbf730ec17b.webp?v=1714890540"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff48c0f22726d790ad57d5e3b4040cf26235ea5b_eaf9e496-d2e4-4cd0-bcd5-6dbf730ec17b.webp?v=1714890540","width":2000},{"alt":null,"id":23890999083107,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668943363769271646fa28b1f4bc6e527bed7244_e436ced6-c8e9-425d-b2c0-67970a163f50.webp?v=1714890542"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/668943363769271646fa28b1f4bc6e527bed7244_e436ced6-c8e9-425d-b2c0-67970a163f50.webp?v=1714890542","width":2000},{"alt":null,"id":23891001770083,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ce818a306582434412b6a7035101d139410a66b_ecd3287c-01f5-4fcf-8adb-e78b0d151a53.webp?v=1714890544"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0ce818a306582434412b6a7035101d139410a66b_ecd3287c-01f5-4fcf-8adb-e78b0d151a53.webp?v=1714890544","width":2000},{"alt":null,"id":23891005079651,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f02e4cabc1580f25fd7503fd92c2e00f92ddd783_8ebcfa44-47c3-43f6-b72d-c402acb8952c.webp?v=1714890547"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f02e4cabc1580f25fd7503fd92c2e00f92ddd783_8ebcfa44-47c3-43f6-b72d-c402acb8952c.webp?v=1714890547","width":2000},{"alt":null,"id":23891007438947,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7275cf8554ed40a4b20d4cb624da2fedf173334d_782d49b5-ee40-4df3-8d29-e6c1d042769f.webp?v=1714890550"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7275cf8554ed40a4b20d4cb624da2fedf173334d_782d49b5-ee40-4df3-8d29-e6c1d042769f.webp?v=1714890550","width":2000},{"alt":null,"id":23891010846819,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3321661d7cb62d25fd9cb713968b3629fa6be9b4_2515e8b0-2736-45ae-ae19-e222f615ba98.webp?v=1714890553"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3321661d7cb62d25fd9cb713968b3629fa6be9b4_2515e8b0-2736-45ae-ae19-e222f615ba98.webp?v=1714890553","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907118473315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485671899235,"product_id":7414519398499,"position":4,"created_at":"2024-05-05T14:28:55+08:00","updated_at":"2024-05-05T14:28:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/859c2fbf6d57bcae169b910ed1e2a233dd39c3eb_d7260158-37a2-470a-ab7e-9d614edfba9b.webp?v=1714890535","variant_ids":[41907118473315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB70","featured_media":{"alt":null,"id":23890990596195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/859c2fbf6d57bcae169b910ed1e2a233dd39c3eb_d7260158-37a2-470a-ab7e-9d614edfba9b.webp?v=1714890535"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907119325283,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485669638243,"product_id":7414519398499,"position":3,"created_at":"2024-05-05T14:28:52+08:00","updated_at":"2024-05-05T14:28:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf6ab6f29e478c5cea09b17f24432497932419a_147c4064-00b7-43f0-bb59-0bf58ee93ca1.webp?v=1714890532","variant_ids":[41907119325283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-PB70","featured_media":{"alt":null,"id":23890987679843,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/edf6ab6f29e478c5cea09b17f24432497932419a_147c4064-00b7-43f0-bb59-0bf58ee93ca1.webp?v=1714890532"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907118473315,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB70","requires_shipping":true,"taxable":true,"featured_image":{"id":31485671899235,"product_id":7414519398499,"position":4,"created_at":"2024-05-05T14:28:55+08:00","updated_at":"2024-05-05T14:28:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/859c2fbf6d57bcae169b910ed1e2a233dd39c3eb_d7260158-37a2-470a-ab7e-9d614edfba9b.webp?v=1714890535","variant_ids":[41907118473315]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 星際大戰-開場字幕 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1500,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-PB70","featured_media":{"alt":null,"id":23890990596195,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/859c2fbf6d57bcae169b910ed1e2a233dd39c3eb_d7260158-37a2-470a-ab7e-9d614edfba9b.webp?v=1714890535"}},"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: "停產"
}