$product = {"id":7413948612707,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 原力咒語-光劍系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb72","description":null,"published_at":"2024-06-11T17:45:51+08:00","created_at":"2024-05-05T13:48:17+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":41902569193571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31484297183331,"product_id":7413948612707,"position":4,"created_at":"2024-05-05T13:48:26+08:00","updated_at":"2024-05-05T13:48:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110992f275d493d02cef657a51e699ad41d46e6_9c1e1e25-b729-4435-9017-941ab07ff059.webp?v=1714888106","variant_ids":[41902569193571]},"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-PB72","featured_media":{"alt":null,"id":23889590812771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110992f275d493d02cef657a51e699ad41d46e6_9c1e1e25-b729-4435-9017-941ab07ff059.webp?v=1714888106"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902569685091,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31484298952803,"product_id":7413948612707,"position":7,"created_at":"2024-05-05T13:48:33+08:00","updated_at":"2024-05-05T13:48:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/169bef72f71d9e5793b5fee33772f646aae87f08_a6263f76-5e87-4137-9307-54587c3be17d.webp?v=1714888113","variant_ids":[41902569685091]},"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-PB72","featured_media":{"alt":null,"id":23889592516707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/169bef72f71d9e5793b5fee33772f646aae87f08_a6263f76-5e87-4137-9307-54587c3be17d.webp?v=1714888113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8380c80cafb74853a12ad3790d1873a360bfdf3f_98447d3f-2813-4752-8dae-423af8f04475.webp?v=1714888099","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f86b27b5d1001bb8c9ffec354a1b602dafee882e_db82695e-3ee8-43a3-9992-9def0688582d.webp?v=1714888101","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a01b8fd47a4537d32f338f9ae20b182e0c5b0476_6aa32ab0-84d4-40ee-820e-4f9bb04d9d79.webp?v=1714888104","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110992f275d493d02cef657a51e699ad41d46e6_9c1e1e25-b729-4435-9017-941ab07ff059.webp?v=1714888106","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b31b289ed188d004710f5c7c4c2cde29fb612b_d333bd87-b4ef-40c0-958a-47528dda5381.webp?v=1714888108","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c20bbe4e5eb188b8783cc66d4bdc466d685281_acdda537-47be-4b5b-a65d-e03f8f2e7836.webp?v=1714888110","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/169bef72f71d9e5793b5fee33772f646aae87f08_a6263f76-5e87-4137-9307-54587c3be17d.webp?v=1714888113","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5768da38ec27d29491d691d875efea563c35b8ff_40f07bc0-cf40-4686-ac4e-9e5e4cf701f0.webp?v=1714888115","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f026f2fc733e932d7417571463b738b92f535ebb_780f8e5f-46cb-4908-a40a-b7b805b5b0c0.webp?v=1714888117","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c6740b4a6eb960b5e320d824fa896ce75262ebd_84cd9f29-4364-4404-a3dc-4ddac82c8771.webp?v=1714888119","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acdb9629a112dcf85c71f6f6064bee387a80e2b2_603a140d-81c3-4dbb-8f32-8f74121204b0.webp?v=1714888122"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8380c80cafb74853a12ad3790d1873a360bfdf3f_98447d3f-2813-4752-8dae-423af8f04475.webp?v=1714888099","options":["color"],"media":[{"alt":null,"id":23889589207139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8380c80cafb74853a12ad3790d1873a360bfdf3f_98447d3f-2813-4752-8dae-423af8f04475.webp?v=1714888099"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8380c80cafb74853a12ad3790d1873a360bfdf3f_98447d3f-2813-4752-8dae-423af8f04475.webp?v=1714888099","width":2000},{"alt":null,"id":23889589698659,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f86b27b5d1001bb8c9ffec354a1b602dafee882e_db82695e-3ee8-43a3-9992-9def0688582d.webp?v=1714888101"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f86b27b5d1001bb8c9ffec354a1b602dafee882e_db82695e-3ee8-43a3-9992-9def0688582d.webp?v=1714888101","width":2000},{"alt":null,"id":23889590288483,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a01b8fd47a4537d32f338f9ae20b182e0c5b0476_6aa32ab0-84d4-40ee-820e-4f9bb04d9d79.webp?v=1714888104"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a01b8fd47a4537d32f338f9ae20b182e0c5b0476_6aa32ab0-84d4-40ee-820e-4f9bb04d9d79.webp?v=1714888104","width":2000},{"alt":null,"id":23889590812771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110992f275d493d02cef657a51e699ad41d46e6_9c1e1e25-b729-4435-9017-941ab07ff059.webp?v=1714888106"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110992f275d493d02cef657a51e699ad41d46e6_9c1e1e25-b729-4435-9017-941ab07ff059.webp?v=1714888106","width":2000},{"alt":null,"id":23889591599203,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b31b289ed188d004710f5c7c4c2cde29fb612b_d333bd87-b4ef-40c0-958a-47528dda5381.webp?v=1714888108"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a1b31b289ed188d004710f5c7c4c2cde29fb612b_d333bd87-b4ef-40c0-958a-47528dda5381.webp?v=1714888108","width":2000},{"alt":null,"id":23889592025187,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c20bbe4e5eb188b8783cc66d4bdc466d685281_acdda537-47be-4b5b-a65d-e03f8f2e7836.webp?v=1714888110"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f3c20bbe4e5eb188b8783cc66d4bdc466d685281_acdda537-47be-4b5b-a65d-e03f8f2e7836.webp?v=1714888110","width":2000},{"alt":null,"id":23889592516707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/169bef72f71d9e5793b5fee33772f646aae87f08_a6263f76-5e87-4137-9307-54587c3be17d.webp?v=1714888113"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/169bef72f71d9e5793b5fee33772f646aae87f08_a6263f76-5e87-4137-9307-54587c3be17d.webp?v=1714888113","width":2000},{"alt":null,"id":23889593008227,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5768da38ec27d29491d691d875efea563c35b8ff_40f07bc0-cf40-4686-ac4e-9e5e4cf701f0.webp?v=1714888115"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5768da38ec27d29491d691d875efea563c35b8ff_40f07bc0-cf40-4686-ac4e-9e5e4cf701f0.webp?v=1714888115","width":2000},{"alt":null,"id":23889593401443,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f026f2fc733e932d7417571463b738b92f535ebb_780f8e5f-46cb-4908-a40a-b7b805b5b0c0.webp?v=1714888117"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f026f2fc733e932d7417571463b738b92f535ebb_780f8e5f-46cb-4908-a40a-b7b805b5b0c0.webp?v=1714888117","width":2000},{"alt":null,"id":23889593958499,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c6740b4a6eb960b5e320d824fa896ce75262ebd_84cd9f29-4364-4404-a3dc-4ddac82c8771.webp?v=1714888119"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5c6740b4a6eb960b5e320d824fa896ce75262ebd_84cd9f29-4364-4404-a3dc-4ddac82c8771.webp?v=1714888119","width":2000},{"alt":null,"id":23889594220643,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acdb9629a112dcf85c71f6f6064bee387a80e2b2_603a140d-81c3-4dbb-8f32-8f74121204b0.webp?v=1714888122"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/acdb9629a112dcf85c71f6f6064bee387a80e2b2_603a140d-81c3-4dbb-8f32-8f74121204b0.webp?v=1714888122","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902569193571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31484297183331,"product_id":7413948612707,"position":4,"created_at":"2024-05-05T13:48:26+08:00","updated_at":"2024-05-05T13:48:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110992f275d493d02cef657a51e699ad41d46e6_9c1e1e25-b729-4435-9017-941ab07ff059.webp?v=1714888106","variant_ids":[41902569193571]},"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-PB72","featured_media":{"alt":null,"id":23889590812771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110992f275d493d02cef657a51e699ad41d46e6_9c1e1e25-b729-4435-9017-941ab07ff059.webp?v=1714888106"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902569685091,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31484298952803,"product_id":7413948612707,"position":7,"created_at":"2024-05-05T13:48:33+08:00","updated_at":"2024-05-05T13:48:33+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/169bef72f71d9e5793b5fee33772f646aae87f08_a6263f76-5e87-4137-9307-54587c3be17d.webp?v=1714888113","variant_ids":[41902569685091]},"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-PB72","featured_media":{"alt":null,"id":23889592516707,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/169bef72f71d9e5793b5fee33772f646aae87f08_a6263f76-5e87-4137-9307-54587c3be17d.webp?v=1714888113"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902569193571,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB72","requires_shipping":true,"taxable":true,"featured_image":{"id":31484297183331,"product_id":7413948612707,"position":4,"created_at":"2024-05-05T13:48:26+08:00","updated_at":"2024-05-05T13:48:26+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110992f275d493d02cef657a51e699ad41d46e6_9c1e1e25-b729-4435-9017-941ab07ff059.webp?v=1714888106","variant_ids":[41902569193571]},"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-PB72","featured_media":{"alt":null,"id":23889590812771,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0110992f275d493d02cef657a51e699ad41d46e6_9c1e1e25-b729-4435-9017-941ab07ff059.webp?v=1714888106"}},"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: "停產"
}