$product = {"id":7413979381859,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-大臉系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb78","description":null,"published_at":"2024-06-11T17:46:45+08:00","created_at":"2024-05-05T13:54:32+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":41902940520547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31484377694307,"product_id":7413979381859,"position":3,"created_at":"2024-05-05T13:54:38+08:00","updated_at":"2024-05-05T13:54:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b039301c55a55de0e4c4893d5fb966528cffada1_bd2ae211-321a-455f-b6cc-ab189929790e.webp?v=1714888478","variant_ids":[41902940520547]},"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-PB78","featured_media":{"alt":null,"id":23889671553123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b039301c55a55de0e4c4893d5fb966528cffada1_bd2ae211-321a-455f-b6cc-ab189929790e.webp?v=1714888478"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902940815459,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31484380512355,"product_id":7413979381859,"position":9,"created_at":"2024-05-05T13:54:52+08:00","updated_at":"2024-05-05T13:54:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca80255bfdf814f3203f6735ee3b5583d767c310_5180b055-9948-41b7-a8b6-5937ce09bbd0.webp?v=1714888492","variant_ids":[41902940815459]},"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-PB78","featured_media":{"alt":null,"id":23889674371171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca80255bfdf814f3203f6735ee3b5583d767c310_5180b055-9948-41b7-a8b6-5937ce09bbd0.webp?v=1714888492"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed97bf42e6471b4a632f7dca9d574b1b4997a3eb_a207fd0f-756d-411d-9a38-7a253f89c67b.webp?v=1714888474","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1b4610363e024cd21bbfe3dc618981b6a69e57f_61e2d17f-3545-4724-9d1f-2e5102690aee.webp?v=1714888476","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b039301c55a55de0e4c4893d5fb966528cffada1_bd2ae211-321a-455f-b6cc-ab189929790e.webp?v=1714888478","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7beb238316067219b37e2ecd4f8b5b1511ba8019_bae99e50-1cda-46a6-9a99-3248c57d56aa.webp?v=1714888481","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2aee32404c67ba2aa5648932b8196da14d83ff_7dc4cd3b-c327-49b4-971e-0dc094cf470a.webp?v=1714888483","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab86de941bbf00e3a946ae531b502f9755c107d_7888e113-b12d-4890-bcce-bef1e9aa2dde.webp?v=1714888485","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aeab3bed60be7262f804530b3d86212df623d44_5891db1a-8df9-4e3b-9c53-4f1bc9179b8f.webp?v=1714888488","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dc03bc1feebaa1376f9aeb1b06bddd5d6ee2572_58f5fcbc-76ea-45b8-85b4-b794fc6b84e4.webp?v=1714888490","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca80255bfdf814f3203f6735ee3b5583d767c310_5180b055-9948-41b7-a8b6-5937ce09bbd0.webp?v=1714888492","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4cd2bccacaed0de6bb52e4159f0c73be8c9923e_4f26fc49-e82b-430b-a453-7d88c8c0d0bf.webp?v=1714888495","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13919c326b2a60726f690d6f1dffe5e402173629_73f34024-4f19-4872-9347-6b632ffcd30f.webp?v=1714888497"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed97bf42e6471b4a632f7dca9d574b1b4997a3eb_a207fd0f-756d-411d-9a38-7a253f89c67b.webp?v=1714888474","options":["color"],"media":[{"alt":null,"id":23889670766691,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed97bf42e6471b4a632f7dca9d574b1b4997a3eb_a207fd0f-756d-411d-9a38-7a253f89c67b.webp?v=1714888474"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ed97bf42e6471b4a632f7dca9d574b1b4997a3eb_a207fd0f-756d-411d-9a38-7a253f89c67b.webp?v=1714888474","width":2000},{"alt":null,"id":23889671159907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1b4610363e024cd21bbfe3dc618981b6a69e57f_61e2d17f-3545-4724-9d1f-2e5102690aee.webp?v=1714888476"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f1b4610363e024cd21bbfe3dc618981b6a69e57f_61e2d17f-3545-4724-9d1f-2e5102690aee.webp?v=1714888476","width":2000},{"alt":null,"id":23889671553123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b039301c55a55de0e4c4893d5fb966528cffada1_bd2ae211-321a-455f-b6cc-ab189929790e.webp?v=1714888478"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b039301c55a55de0e4c4893d5fb966528cffada1_bd2ae211-321a-455f-b6cc-ab189929790e.webp?v=1714888478","width":2000},{"alt":null,"id":23889672011875,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7beb238316067219b37e2ecd4f8b5b1511ba8019_bae99e50-1cda-46a6-9a99-3248c57d56aa.webp?v=1714888481"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/7beb238316067219b37e2ecd4f8b5b1511ba8019_bae99e50-1cda-46a6-9a99-3248c57d56aa.webp?v=1714888481","width":2000},{"alt":null,"id":23889672503395,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2aee32404c67ba2aa5648932b8196da14d83ff_7dc4cd3b-c327-49b4-971e-0dc094cf470a.webp?v=1714888483"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5a2aee32404c67ba2aa5648932b8196da14d83ff_7dc4cd3b-c327-49b4-971e-0dc094cf470a.webp?v=1714888483","width":2000},{"alt":null,"id":23889673093219,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab86de941bbf00e3a946ae531b502f9755c107d_7888e113-b12d-4890-bcce-bef1e9aa2dde.webp?v=1714888485"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dab86de941bbf00e3a946ae531b502f9755c107d_7888e113-b12d-4890-bcce-bef1e9aa2dde.webp?v=1714888485","width":2000},{"alt":null,"id":23889673519203,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aeab3bed60be7262f804530b3d86212df623d44_5891db1a-8df9-4e3b-9c53-4f1bc9179b8f.webp?v=1714888488"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9aeab3bed60be7262f804530b3d86212df623d44_5891db1a-8df9-4e3b-9c53-4f1bc9179b8f.webp?v=1714888488","width":2000},{"alt":null,"id":23889673912419,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dc03bc1feebaa1376f9aeb1b06bddd5d6ee2572_58f5fcbc-76ea-45b8-85b4-b794fc6b84e4.webp?v=1714888490"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2dc03bc1feebaa1376f9aeb1b06bddd5d6ee2572_58f5fcbc-76ea-45b8-85b4-b794fc6b84e4.webp?v=1714888490","width":2000},{"alt":null,"id":23889674371171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca80255bfdf814f3203f6735ee3b5583d767c310_5180b055-9948-41b7-a8b6-5937ce09bbd0.webp?v=1714888492"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca80255bfdf814f3203f6735ee3b5583d767c310_5180b055-9948-41b7-a8b6-5937ce09bbd0.webp?v=1714888492","width":2000},{"alt":null,"id":23889674731619,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4cd2bccacaed0de6bb52e4159f0c73be8c9923e_4f26fc49-e82b-430b-a453-7d88c8c0d0bf.webp?v=1714888495"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c4cd2bccacaed0de6bb52e4159f0c73be8c9923e_4f26fc49-e82b-430b-a453-7d88c8c0d0bf.webp?v=1714888495","width":2000},{"alt":null,"id":23889675255907,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13919c326b2a60726f690d6f1dffe5e402173629_73f34024-4f19-4872-9347-6b632ffcd30f.webp?v=1714888497"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/13919c326b2a60726f690d6f1dffe5e402173629_73f34024-4f19-4872-9347-6b632ffcd30f.webp?v=1714888497","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902940520547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31484377694307,"product_id":7413979381859,"position":3,"created_at":"2024-05-05T13:54:38+08:00","updated_at":"2024-05-05T13:54:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b039301c55a55de0e4c4893d5fb966528cffada1_bd2ae211-321a-455f-b6cc-ab189929790e.webp?v=1714888478","variant_ids":[41902940520547]},"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-PB78","featured_media":{"alt":null,"id":23889671553123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b039301c55a55de0e4c4893d5fb966528cffada1_bd2ae211-321a-455f-b6cc-ab189929790e.webp?v=1714888478"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902940815459,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31484380512355,"product_id":7413979381859,"position":9,"created_at":"2024-05-05T13:54:52+08:00","updated_at":"2024-05-05T13:54:52+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca80255bfdf814f3203f6735ee3b5583d767c310_5180b055-9948-41b7-a8b6-5937ce09bbd0.webp?v=1714888492","variant_ids":[41902940815459]},"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-PB78","featured_media":{"alt":null,"id":23889674371171,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ca80255bfdf814f3203f6735ee3b5583d767c310_5180b055-9948-41b7-a8b6-5937ce09bbd0.webp?v=1714888492"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902940520547,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB78","requires_shipping":true,"taxable":true,"featured_image":{"id":31484377694307,"product_id":7413979381859,"position":3,"created_at":"2024-05-05T13:54:38+08:00","updated_at":"2024-05-05T13:54:38+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b039301c55a55de0e4c4893d5fb966528cffada1_bd2ae211-321a-455f-b6cc-ab189929790e.webp?v=1714888478","variant_ids":[41902940520547]},"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-PB78","featured_media":{"alt":null,"id":23889671553123,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b039301c55a55de0e4c4893d5fb966528cffada1_bd2ae211-321a-455f-b6cc-ab189929790e.webp?v=1714888478"}},"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: "停產"
}