$product = {"id":7413957132387,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 眾白風暴兵","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pc01","description":null,"published_at":"2024-06-11T17:46:06+08:00","created_at":"2024-05-05T13:50:03+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":41902674116707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484319662179,"product_id":7413957132387,"position":5,"created_at":"2024-05-05T13:50:15+08:00","updated_at":"2024-05-05T13:50:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8163189588d1691158a7d4bb80892cf02d26b27_f124e37b-ca26-45cc-b0e9-48826e996a8f.webp?v=1714888215","variant_ids":[41902674116707]},"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-PC01","featured_media":{"alt":null,"id":23889613324387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8163189588d1691158a7d4bb80892cf02d26b27_f124e37b-ca26-45cc-b0e9-48826e996a8f.webp?v=1714888215"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902674706531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484318154851,"product_id":7413957132387,"position":2,"created_at":"2024-05-05T13:50:08+08:00","updated_at":"2024-05-05T13:50:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d421f4508d31c9480fd8323eab03cbacec02f0b2_be782216-6089-4a3e-9641-60ba82115fa4.webp?v=1714888208","variant_ids":[41902674706531]},"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-PC01","featured_media":{"alt":null,"id":23889611849827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d421f4508d31c9480fd8323eab03cbacec02f0b2_be782216-6089-4a3e-9641-60ba82115fa4.webp?v=1714888208"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f538076554cbd366b5b9cf76a63a38443e7348e6_97c973a3-9332-4d86-b800-dc8f200d30bd.webp?v=1714888205","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d421f4508d31c9480fd8323eab03cbacec02f0b2_be782216-6089-4a3e-9641-60ba82115fa4.webp?v=1714888208","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a2dedf645cd16795080075de1056bdcebd016_0032b923-f5dd-47f2-93e2-b0acae332664.webp?v=1714888210","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad28ab28ebf89f56caefd02e2d3fa51d6ea72f_3cbfdeaf-8794-4f7d-ae3e-86e8d76d65dc.webp?v=1714888213","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8163189588d1691158a7d4bb80892cf02d26b27_f124e37b-ca26-45cc-b0e9-48826e996a8f.webp?v=1714888215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e7fe120f8e2a0d060fa54978aeed096975ac9e_b604eedc-7e34-4fa2-9b06-337b8bdfc1a5.webp?v=1714888217","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91afcbb7cda7a53fb735f4998dc36fed02e15b49_59a7a491-5432-4f95-bac9-8d38ff32c178.webp?v=1714888220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44fd6bb202e4792665967d231317209525d868b9_dff036e3-751a-4365-b424-f09b5c687712.webp?v=1714888222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aec58dc297147f16cf916b6b6fd417fb19680044_8e2e7734-5d50-4c30-8ebe-667df04fae1a.webp?v=1714888225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8f4ea07e456abefc45f668f741f6c2364dae50_ee136a2c-b245-4ebb-a183-5aaeee796fb1.webp?v=1714888227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8151711ce61bae16c1856dd41206b0646bf05f10_27de1b64-a928-4e43-8bf5-0e0b973d3387.webp?v=1714888230"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f538076554cbd366b5b9cf76a63a38443e7348e6_97c973a3-9332-4d86-b800-dc8f200d30bd.webp?v=1714888205","options":["color"],"media":[{"alt":null,"id":23889611227235,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f538076554cbd366b5b9cf76a63a38443e7348e6_97c973a3-9332-4d86-b800-dc8f200d30bd.webp?v=1714888205"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/f538076554cbd366b5b9cf76a63a38443e7348e6_97c973a3-9332-4d86-b800-dc8f200d30bd.webp?v=1714888205","width":2000},{"alt":null,"id":23889611849827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d421f4508d31c9480fd8323eab03cbacec02f0b2_be782216-6089-4a3e-9641-60ba82115fa4.webp?v=1714888208"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d421f4508d31c9480fd8323eab03cbacec02f0b2_be782216-6089-4a3e-9641-60ba82115fa4.webp?v=1714888208","width":2000},{"alt":null,"id":23889612308579,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a2dedf645cd16795080075de1056bdcebd016_0032b923-f5dd-47f2-93e2-b0acae332664.webp?v=1714888210"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/634a2dedf645cd16795080075de1056bdcebd016_0032b923-f5dd-47f2-93e2-b0acae332664.webp?v=1714888210","width":2000},{"alt":null,"id":23889612832867,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad28ab28ebf89f56caefd02e2d3fa51d6ea72f_3cbfdeaf-8794-4f7d-ae3e-86e8d76d65dc.webp?v=1714888213"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/07ad28ab28ebf89f56caefd02e2d3fa51d6ea72f_3cbfdeaf-8794-4f7d-ae3e-86e8d76d65dc.webp?v=1714888213","width":2000},{"alt":null,"id":23889613324387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8163189588d1691158a7d4bb80892cf02d26b27_f124e37b-ca26-45cc-b0e9-48826e996a8f.webp?v=1714888215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8163189588d1691158a7d4bb80892cf02d26b27_f124e37b-ca26-45cc-b0e9-48826e996a8f.webp?v=1714888215","width":2000},{"alt":null,"id":23889613881443,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e7fe120f8e2a0d060fa54978aeed096975ac9e_b604eedc-7e34-4fa2-9b06-337b8bdfc1a5.webp?v=1714888217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/54e7fe120f8e2a0d060fa54978aeed096975ac9e_b604eedc-7e34-4fa2-9b06-337b8bdfc1a5.webp?v=1714888217","width":2000},{"alt":null,"id":23889614340195,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91afcbb7cda7a53fb735f4998dc36fed02e15b49_59a7a491-5432-4f95-bac9-8d38ff32c178.webp?v=1714888220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/91afcbb7cda7a53fb735f4998dc36fed02e15b49_59a7a491-5432-4f95-bac9-8d38ff32c178.webp?v=1714888220","width":2000},{"alt":null,"id":23889614831715,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44fd6bb202e4792665967d231317209525d868b9_dff036e3-751a-4365-b424-f09b5c687712.webp?v=1714888222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/44fd6bb202e4792665967d231317209525d868b9_dff036e3-751a-4365-b424-f09b5c687712.webp?v=1714888222","width":2000},{"alt":null,"id":23889615356003,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aec58dc297147f16cf916b6b6fd417fb19680044_8e2e7734-5d50-4c30-8ebe-667df04fae1a.webp?v=1714888225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/aec58dc297147f16cf916b6b6fd417fb19680044_8e2e7734-5d50-4c30-8ebe-667df04fae1a.webp?v=1714888225","width":2000},{"alt":null,"id":23889615749219,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8f4ea07e456abefc45f668f741f6c2364dae50_ee136a2c-b245-4ebb-a183-5aaeee796fb1.webp?v=1714888227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/4e8f4ea07e456abefc45f668f741f6c2364dae50_ee136a2c-b245-4ebb-a183-5aaeee796fb1.webp?v=1714888227","width":2000},{"alt":null,"id":23889616273507,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8151711ce61bae16c1856dd41206b0646bf05f10_27de1b64-a928-4e43-8bf5-0e0b973d3387.webp?v=1714888230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8151711ce61bae16c1856dd41206b0646bf05f10_27de1b64-a928-4e43-8bf5-0e0b973d3387.webp?v=1714888230","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41902674116707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484319662179,"product_id":7413957132387,"position":5,"created_at":"2024-05-05T13:50:15+08:00","updated_at":"2024-05-05T13:50:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8163189588d1691158a7d4bb80892cf02d26b27_f124e37b-ca26-45cc-b0e9-48826e996a8f.webp?v=1714888215","variant_ids":[41902674116707]},"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-PC01","featured_media":{"alt":null,"id":23889613324387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8163189588d1691158a7d4bb80892cf02d26b27_f124e37b-ca26-45cc-b0e9-48826e996a8f.webp?v=1714888215"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41902674706531,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484318154851,"product_id":7413957132387,"position":2,"created_at":"2024-05-05T13:50:08+08:00","updated_at":"2024-05-05T13:50:08+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d421f4508d31c9480fd8323eab03cbacec02f0b2_be782216-6089-4a3e-9641-60ba82115fa4.webp?v=1714888208","variant_ids":[41902674706531]},"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-PC01","featured_media":{"alt":null,"id":23889611849827,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d421f4508d31c9480fd8323eab03cbacec02f0b2_be782216-6089-4a3e-9641-60ba82115fa4.webp?v=1714888208"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41902674116707,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PC01","requires_shipping":true,"taxable":true,"featured_image":{"id":31484319662179,"product_id":7413957132387,"position":5,"created_at":"2024-05-05T13:50:15+08:00","updated_at":"2024-05-05T13:50:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8163189588d1691158a7d4bb80892cf02d26b27_f124e37b-ca26-45cc-b0e9-48826e996a8f.webp?v=1714888215","variant_ids":[41902674116707]},"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-PC01","featured_media":{"alt":null,"id":23889613324387,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a8163189588d1691158a7d4bb80892cf02d26b27_f124e37b-ca26-45cc-b0e9-48826e996a8f.webp?v=1714888215"}},"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: "停產"
}