$product = {"id":7414110224483,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 小圖款-芮","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pc05","description":null,"published_at":"2024-06-11T17:49:03+08:00","created_at":"2024-05-05T14:10:25+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":41904170336355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484694069347,"product_id":7414110224483,"position":4,"created_at":"2024-05-05T14:10:33+08:00","updated_at":"2024-05-05T14:10:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d28610c53819ed6b1a0111f99be2962c8aca4c9_65cfdd0a-1d4d-444d-901f-19bd039497a2.webp?v=1714889433","variant_ids":[41904170336355]},"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-PC05","featured_media":{"alt":null,"id":23889989337187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d28610c53819ed6b1a0111f99be2962c8aca4c9_65cfdd0a-1d4d-444d-901f-19bd039497a2.webp?v=1714889433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904171024483,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484701409379,"product_id":7414110224483,"position":9,"created_at":"2024-05-05T14:10:45+08:00","updated_at":"2024-05-05T14:10:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2690f2b3ca9c9f2ce90e3b51e2c896819d86d98f_ea8584fe-29f0-435a-a110-dedafd4a8a56.webp?v=1714889445","variant_ids":[41904171024483]},"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-PC05","featured_media":{"alt":null,"id":23889996644451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2690f2b3ca9c9f2ce90e3b51e2c896819d86d98f_ea8584fe-29f0-435a-a110-dedafd4a8a56.webp?v=1714889445"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b7c0232460b58737749498aec24b19a9500c91a_cff34557-520e-46a6-86c7-1e1f0a59b54c.webp?v=1714889427","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b479bda56387e742bb57f726534445fb13b1041_e5f01f05-0c14-48a7-8f9c-c889816f5e3c.webp?v=1714889429","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8b57e419dc7368ff5297a77e683053f2207ce7_28fd41eb-e117-431f-9f12-e4778e5cef07.webp?v=1714889431","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d28610c53819ed6b1a0111f99be2962c8aca4c9_65cfdd0a-1d4d-444d-901f-19bd039497a2.webp?v=1714889433","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e690f6748015cafb4f38a71ba706b75e75f29f7_10c82c2c-5866-4b9a-bc71-9c16e082721b.webp?v=1714889436","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be8f57b7e17c7a5b649e280fce7fb1ce8ce45ab4_41624508-ee4f-4e46-8677-be10240c201c.webp?v=1714889438","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3fb49fc51087b7e2de945daccd91ac4d383e0e_6aa1acc5-61a5-4370-ac60-4c6cbd6f38c4.webp?v=1714889440","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1a69f9bc749adcd70c73b6138ea20a3e4fc2fb_39e69506-da91-49a4-a10e-4c8ed2721568.webp?v=1714889442","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2690f2b3ca9c9f2ce90e3b51e2c896819d86d98f_ea8584fe-29f0-435a-a110-dedafd4a8a56.webp?v=1714889445","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffffbdfd142e6149ef98cd2c57e9f302ecb65074_08d6c0fa-94a4-4edd-9ca8-1abc07f634d3.webp?v=1714889447","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e88ceb9d10a810835201583723817daa90b0b12_3f046a54-cca0-48f9-85f3-e4002c6a7866.webp?v=1714889449"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b7c0232460b58737749498aec24b19a9500c91a_cff34557-520e-46a6-86c7-1e1f0a59b54c.webp?v=1714889427","options":["color"],"media":[{"alt":null,"id":23889985077347,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b7c0232460b58737749498aec24b19a9500c91a_cff34557-520e-46a6-86c7-1e1f0a59b54c.webp?v=1714889427"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4b7c0232460b58737749498aec24b19a9500c91a_cff34557-520e-46a6-86c7-1e1f0a59b54c.webp?v=1714889427","width":2000},{"alt":null,"id":23889986584675,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b479bda56387e742bb57f726534445fb13b1041_e5f01f05-0c14-48a7-8f9c-c889816f5e3c.webp?v=1714889429"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8b479bda56387e742bb57f726534445fb13b1041_e5f01f05-0c14-48a7-8f9c-c889816f5e3c.webp?v=1714889429","width":2000},{"alt":null,"id":23889987829859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8b57e419dc7368ff5297a77e683053f2207ce7_28fd41eb-e117-431f-9f12-e4778e5cef07.webp?v=1714889431"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8e8b57e419dc7368ff5297a77e683053f2207ce7_28fd41eb-e117-431f-9f12-e4778e5cef07.webp?v=1714889431","width":2000},{"alt":null,"id":23889989337187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d28610c53819ed6b1a0111f99be2962c8aca4c9_65cfdd0a-1d4d-444d-901f-19bd039497a2.webp?v=1714889433"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d28610c53819ed6b1a0111f99be2962c8aca4c9_65cfdd0a-1d4d-444d-901f-19bd039497a2.webp?v=1714889433","width":2000},{"alt":null,"id":23889990975587,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e690f6748015cafb4f38a71ba706b75e75f29f7_10c82c2c-5866-4b9a-bc71-9c16e082721b.webp?v=1714889436"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7e690f6748015cafb4f38a71ba706b75e75f29f7_10c82c2c-5866-4b9a-bc71-9c16e082721b.webp?v=1714889436","width":2000},{"alt":null,"id":23889992384611,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be8f57b7e17c7a5b649e280fce7fb1ce8ce45ab4_41624508-ee4f-4e46-8677-be10240c201c.webp?v=1714889438"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/be8f57b7e17c7a5b649e280fce7fb1ce8ce45ab4_41624508-ee4f-4e46-8677-be10240c201c.webp?v=1714889438","width":2000},{"alt":null,"id":23889993826403,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3fb49fc51087b7e2de945daccd91ac4d383e0e_6aa1acc5-61a5-4370-ac60-4c6cbd6f38c4.webp?v=1714889440"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5e3fb49fc51087b7e2de945daccd91ac4d383e0e_6aa1acc5-61a5-4370-ac60-4c6cbd6f38c4.webp?v=1714889440","width":2000},{"alt":null,"id":23889995333731,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1a69f9bc749adcd70c73b6138ea20a3e4fc2fb_39e69506-da91-49a4-a10e-4c8ed2721568.webp?v=1714889442"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2a1a69f9bc749adcd70c73b6138ea20a3e4fc2fb_39e69506-da91-49a4-a10e-4c8ed2721568.webp?v=1714889442","width":2000},{"alt":null,"id":23889996644451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2690f2b3ca9c9f2ce90e3b51e2c896819d86d98f_ea8584fe-29f0-435a-a110-dedafd4a8a56.webp?v=1714889445"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2690f2b3ca9c9f2ce90e3b51e2c896819d86d98f_ea8584fe-29f0-435a-a110-dedafd4a8a56.webp?v=1714889445","width":2000},{"alt":null,"id":23889997987939,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffffbdfd142e6149ef98cd2c57e9f302ecb65074_08d6c0fa-94a4-4edd-9ca8-1abc07f634d3.webp?v=1714889447"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ffffbdfd142e6149ef98cd2c57e9f302ecb65074_08d6c0fa-94a4-4edd-9ca8-1abc07f634d3.webp?v=1714889447","width":2000},{"alt":null,"id":23889999822947,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e88ceb9d10a810835201583723817daa90b0b12_3f046a54-cca0-48f9-85f3-e4002c6a7866.webp?v=1714889449"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e88ceb9d10a810835201583723817daa90b0b12_3f046a54-cca0-48f9-85f3-e4002c6a7866.webp?v=1714889449","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904170336355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484694069347,"product_id":7414110224483,"position":4,"created_at":"2024-05-05T14:10:33+08:00","updated_at":"2024-05-05T14:10:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d28610c53819ed6b1a0111f99be2962c8aca4c9_65cfdd0a-1d4d-444d-901f-19bd039497a2.webp?v=1714889433","variant_ids":[41904170336355]},"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-PC05","featured_media":{"alt":null,"id":23889989337187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d28610c53819ed6b1a0111f99be2962c8aca4c9_65cfdd0a-1d4d-444d-901f-19bd039497a2.webp?v=1714889433"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904171024483,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484701409379,"product_id":7414110224483,"position":9,"created_at":"2024-05-05T14:10:45+08:00","updated_at":"2024-05-05T14:10:45+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2690f2b3ca9c9f2ce90e3b51e2c896819d86d98f_ea8584fe-29f0-435a-a110-dedafd4a8a56.webp?v=1714889445","variant_ids":[41904171024483]},"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-PC05","featured_media":{"alt":null,"id":23889996644451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2690f2b3ca9c9f2ce90e3b51e2c896819d86d98f_ea8584fe-29f0-435a-a110-dedafd4a8a56.webp?v=1714889445"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904170336355,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC05","requires_shipping":true,"taxable":true,"featured_image":{"id":31484694069347,"product_id":7414110224483,"position":4,"created_at":"2024-05-05T14:10:33+08:00","updated_at":"2024-05-05T14:10:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d28610c53819ed6b1a0111f99be2962c8aca4c9_65cfdd0a-1d4d-444d-901f-19bd039497a2.webp?v=1714889433","variant_ids":[41904170336355]},"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-PC05","featured_media":{"alt":null,"id":23889989337187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8d28610c53819ed6b1a0111f99be2962c8aca4c9_65cfdd0a-1d4d-444d-901f-19bd039497a2.webp?v=1714889433"}},"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: "停產"
}