$product = {"id":7413955231843,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb100","description":null,"published_at":"2024-06-11T17:46:03+08:00","created_at":"2024-05-05T13:49:35+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":41902648655971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31484314222691,"product_id":7413955231843,"position":6,"created_at":"2024-05-05T13:49:49+08:00","updated_at":"2024-05-05T13:49:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cfe1d026c71f01c0f39f514cf192291dfde505_5090d04b-8a9e-4ae4-a620-9906546f8711.webp?v=1714888189","variant_ids":[41902648655971]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23889607917667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cfe1d026c71f01c0f39f514cf192291dfde505_5090d04b-8a9e-4ae4-a620-9906546f8711.webp?v=1714888189"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902648950883,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31484316516451,"product_id":7413955231843,"position":11,"created_at":"2024-05-05T13:50:00+08:00","updated_at":"2024-05-05T13:50:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c533d5555b882bd131a68c226b797b2a25c68fb6_2bd99f6b-741b-4eda-ade1-0d73387ddb84.webp?v=1714888200","variant_ids":[41902648950883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23889610211427,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c533d5555b882bd131a68c226b797b2a25c68fb6_2bd99f6b-741b-4eda-ade1-0d73387ddb84.webp?v=1714888200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98dc126fca9a175f30538027f3cf08eedb8b0b63_e226625d-e67e-4d86-a403-b4ab4f1ead20.webp?v=1714888178","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5198da592f3ccd0564851030bd5b0f15e0ed30d_f8c4b02c-7f89-4fbb-b446-d3554c8b0f9f.webp?v=1714888180","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/886cbc70dd7af1efea054dd8175279f8eb9c4688_833c9ea5-c3a6-40eb-bf2f-70ebff56e1f2.webp?v=1714888182","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf7663ac26740f0b47e7919ceffabaf0525ccde_c8742d79-3b66-47b7-9df3-64fb158103fa.webp?v=1714888185","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5f01b030fa13877c3250f66fad362b573948e7_934b3f6a-8926-4221-b276-d5c32ee4ecd0.webp?v=1714888187","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cfe1d026c71f01c0f39f514cf192291dfde505_5090d04b-8a9e-4ae4-a620-9906546f8711.webp?v=1714888189","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bc7b60f36ff2f9ea3b8d8b5886e960436fe950_49433988-eea2-4f8d-b098-8e1959011247.webp?v=1714888191","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cd3abe881e939226946740b27b99294edd611c9_ea660a3b-1e9a-4c4d-949d-9937712d6502.webp?v=1714888194","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a498d260d10ac059f3e3edd31cb494baa0e0e925_b037ae19-b63c-4e63-8e96-eb249380eddc.webp?v=1714888196","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e51e3e45e3279543f825db48f220e2761c689a_c9c4b093-7720-4a85-8455-efe69d1d9d65.webp?v=1714888198","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c533d5555b882bd131a68c226b797b2a25c68fb6_2bd99f6b-741b-4eda-ade1-0d73387ddb84.webp?v=1714888200"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98dc126fca9a175f30538027f3cf08eedb8b0b63_e226625d-e67e-4d86-a403-b4ab4f1ead20.webp?v=1714888178","options":["color"],"media":[{"alt":null,"id":23889605460067,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98dc126fca9a175f30538027f3cf08eedb8b0b63_e226625d-e67e-4d86-a403-b4ab4f1ead20.webp?v=1714888178"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/98dc126fca9a175f30538027f3cf08eedb8b0b63_e226625d-e67e-4d86-a403-b4ab4f1ead20.webp?v=1714888178","width":2000},{"alt":null,"id":23889605886051,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5198da592f3ccd0564851030bd5b0f15e0ed30d_f8c4b02c-7f89-4fbb-b446-d3554c8b0f9f.webp?v=1714888180"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b5198da592f3ccd0564851030bd5b0f15e0ed30d_f8c4b02c-7f89-4fbb-b446-d3554c8b0f9f.webp?v=1714888180","width":2000},{"alt":null,"id":23889606312035,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/886cbc70dd7af1efea054dd8175279f8eb9c4688_833c9ea5-c3a6-40eb-bf2f-70ebff56e1f2.webp?v=1714888182"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/886cbc70dd7af1efea054dd8175279f8eb9c4688_833c9ea5-c3a6-40eb-bf2f-70ebff56e1f2.webp?v=1714888182","width":2000},{"alt":null,"id":23889606836323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf7663ac26740f0b47e7919ceffabaf0525ccde_c8742d79-3b66-47b7-9df3-64fb158103fa.webp?v=1714888185"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8bf7663ac26740f0b47e7919ceffabaf0525ccde_c8742d79-3b66-47b7-9df3-64fb158103fa.webp?v=1714888185","width":2000},{"alt":null,"id":23889607327843,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5f01b030fa13877c3250f66fad362b573948e7_934b3f6a-8926-4221-b276-d5c32ee4ecd0.webp?v=1714888187"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8a5f01b030fa13877c3250f66fad362b573948e7_934b3f6a-8926-4221-b276-d5c32ee4ecd0.webp?v=1714888187","width":2000},{"alt":null,"id":23889607917667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cfe1d026c71f01c0f39f514cf192291dfde505_5090d04b-8a9e-4ae4-a620-9906546f8711.webp?v=1714888189"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cfe1d026c71f01c0f39f514cf192291dfde505_5090d04b-8a9e-4ae4-a620-9906546f8711.webp?v=1714888189","width":2000},{"alt":null,"id":23889608310883,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bc7b60f36ff2f9ea3b8d8b5886e960436fe950_49433988-eea2-4f8d-b098-8e1959011247.webp?v=1714888191"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/89bc7b60f36ff2f9ea3b8d8b5886e960436fe950_49433988-eea2-4f8d-b098-8e1959011247.webp?v=1714888191","width":2000},{"alt":null,"id":23889608736867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cd3abe881e939226946740b27b99294edd611c9_ea660a3b-1e9a-4c4d-949d-9937712d6502.webp?v=1714888194"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2cd3abe881e939226946740b27b99294edd611c9_ea660a3b-1e9a-4c4d-949d-9937712d6502.webp?v=1714888194","width":2000},{"alt":null,"id":23889609162851,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a498d260d10ac059f3e3edd31cb494baa0e0e925_b037ae19-b63c-4e63-8e96-eb249380eddc.webp?v=1714888196"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a498d260d10ac059f3e3edd31cb494baa0e0e925_b037ae19-b63c-4e63-8e96-eb249380eddc.webp?v=1714888196","width":2000},{"alt":null,"id":23889609752675,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e51e3e45e3279543f825db48f220e2761c689a_c9c4b093-7720-4a85-8455-efe69d1d9d65.webp?v=1714888198"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e6e51e3e45e3279543f825db48f220e2761c689a_c9c4b093-7720-4a85-8455-efe69d1d9d65.webp?v=1714888198","width":2000},{"alt":null,"id":23889610211427,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c533d5555b882bd131a68c226b797b2a25c68fb6_2bd99f6b-741b-4eda-ade1-0d73387ddb84.webp?v=1714888200"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c533d5555b882bd131a68c226b797b2a25c68fb6_2bd99f6b-741b-4eda-ade1-0d73387ddb84.webp?v=1714888200","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902648655971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31484314222691,"product_id":7413955231843,"position":6,"created_at":"2024-05-05T13:49:49+08:00","updated_at":"2024-05-05T13:49:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cfe1d026c71f01c0f39f514cf192291dfde505_5090d04b-8a9e-4ae4-a620-9906546f8711.webp?v=1714888189","variant_ids":[41902648655971]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23889607917667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cfe1d026c71f01c0f39f514cf192291dfde505_5090d04b-8a9e-4ae4-a620-9906546f8711.webp?v=1714888189"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902648950883,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31484316516451,"product_id":7413955231843,"position":11,"created_at":"2024-05-05T13:50:00+08:00","updated_at":"2024-05-05T13:50:00+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c533d5555b882bd131a68c226b797b2a25c68fb6_2bd99f6b-741b-4eda-ade1-0d73387ddb84.webp?v=1714888200","variant_ids":[41902648950883]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23889610211427,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c533d5555b882bd131a68c226b797b2a25c68fb6_2bd99f6b-741b-4eda-ade1-0d73387ddb84.webp?v=1714888200"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902648655971,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB100","requires_shipping":true,"taxable":true,"featured_image":{"id":31484314222691,"product_id":7413955231843,"position":6,"created_at":"2024-05-05T13:49:49+08:00","updated_at":"2024-05-05T13:49:49+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cfe1d026c71f01c0f39f514cf192291dfde505_5090d04b-8a9e-4ae4-a620-9906546f8711.webp?v=1714888189","variant_ids":[41902648655971]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 達斯魔-星際大戰Logo - 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-PB100","featured_media":{"alt":null,"id":23889607917667,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f2cfe1d026c71f01c0f39f514cf192291dfde505_5090d04b-8a9e-4ae4-a620-9906546f8711.webp?v=1714888189"}},"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: "停產"
}