$product = {"id":7414148628579,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 黑武士-潮流系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb49","description":null,"published_at":"2024-06-11T17:49:26+08:00","created_at":"2024-05-05T14:13:01+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":41904453058659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31484793323619,"product_id":7414148628579,"position":11,"created_at":"2024-05-05T14:13:28+08:00","updated_at":"2024-05-05T14:13:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f0742a77d5cb58642d910d3f6c90798b054f5a6_e300111d-4b29-4931-9daf-1f2cb21cfe93.webp?v=1714889608","variant_ids":[41904453058659]},"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-PB49","featured_media":{"alt":null,"id":23890088919139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f0742a77d5cb58642d910d3f6c90798b054f5a6_e300111d-4b29-4931-9daf-1f2cb21cfe93.webp?v=1714889608"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904453353571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31484783329379,"product_id":7414148628579,"position":5,"created_at":"2024-05-05T14:13:13+08:00","updated_at":"2024-05-05T14:13:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff680122384e75a23612c949cfb865c5851f3d29_f94bf898-8925-48b6-86f0-c7cad42b317d.webp?v=1714889593","variant_ids":[41904453353571]},"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-PB49","featured_media":{"alt":null,"id":23890078597219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff680122384e75a23612c949cfb865c5851f3d29_f94bf898-8925-48b6-86f0-c7cad42b317d.webp?v=1714889593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6629dc965cdb32eaba91adc9f698dac6ba6e48_a0d442e8-5249-41e0-9445-2ef9dc795cde.webp?v=1714889584","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8f79d064ea3edfaa6803fb053537419867b099_989d64a9-e7ec-4171-aeb4-1b2b1b9f64f6.webp?v=1714889587","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba96f723dcf4f392550fa4219989ab0ef5444616_39cc437c-9629-4f65-ade3-8421e915e430.webp?v=1714889589","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c43dc76a579c99a310f76b52c8367d713dfe629_a94001e1-e442-4031-9b06-3c14002bd70f.webp?v=1714889591","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff680122384e75a23612c949cfb865c5851f3d29_f94bf898-8925-48b6-86f0-c7cad42b317d.webp?v=1714889593","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8631cb404fcfd18c8a27e2103fc6126c1273eac8_d385eb61-2185-4b90-87fb-0abe24e4804a.webp?v=1714889596","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0da3ee17dcb82e40a5bb88d9ac8a053c02f0a1_b7d48b05-c93a-4eb0-83ae-9ea94af54259.webp?v=1714889598","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/708ea9a77fced47fb0afd8fa01b6e5b964f023bd_0c480ee3-3b26-4b48-83d2-eae7d44c1ba6.webp?v=1714889601","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29c49d253819f5bf5136d79f040273f879462377_ca7bb121-e90a-4694-b7c7-4aae823e3cab.webp?v=1714889603","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c62e4028ae044b179a1457d520bdcc5d4a15bed_3a7b6e95-bb80-4b9e-985c-c6b477fc4c77.webp?v=1714889606","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f0742a77d5cb58642d910d3f6c90798b054f5a6_e300111d-4b29-4931-9daf-1f2cb21cfe93.webp?v=1714889608"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6629dc965cdb32eaba91adc9f698dac6ba6e48_a0d442e8-5249-41e0-9445-2ef9dc795cde.webp?v=1714889584","options":["color"],"media":[{"alt":null,"id":23890072731747,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6629dc965cdb32eaba91adc9f698dac6ba6e48_a0d442e8-5249-41e0-9445-2ef9dc795cde.webp?v=1714889584"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2e6629dc965cdb32eaba91adc9f698dac6ba6e48_a0d442e8-5249-41e0-9445-2ef9dc795cde.webp?v=1714889584","width":2000},{"alt":null,"id":23890074075235,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8f79d064ea3edfaa6803fb053537419867b099_989d64a9-e7ec-4171-aeb4-1b2b1b9f64f6.webp?v=1714889587"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/3e8f79d064ea3edfaa6803fb053537419867b099_989d64a9-e7ec-4171-aeb4-1b2b1b9f64f6.webp?v=1714889587","width":2000},{"alt":null,"id":23890075680867,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba96f723dcf4f392550fa4219989ab0ef5444616_39cc437c-9629-4f65-ade3-8421e915e430.webp?v=1714889589"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ba96f723dcf4f392550fa4219989ab0ef5444616_39cc437c-9629-4f65-ade3-8421e915e430.webp?v=1714889589","width":2000},{"alt":null,"id":23890077155427,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c43dc76a579c99a310f76b52c8367d713dfe629_a94001e1-e442-4031-9b06-3c14002bd70f.webp?v=1714889591"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c43dc76a579c99a310f76b52c8367d713dfe629_a94001e1-e442-4031-9b06-3c14002bd70f.webp?v=1714889591","width":2000},{"alt":null,"id":23890078597219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff680122384e75a23612c949cfb865c5851f3d29_f94bf898-8925-48b6-86f0-c7cad42b317d.webp?v=1714889593"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff680122384e75a23612c949cfb865c5851f3d29_f94bf898-8925-48b6-86f0-c7cad42b317d.webp?v=1714889593","width":2000},{"alt":null,"id":23890080006243,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8631cb404fcfd18c8a27e2103fc6126c1273eac8_d385eb61-2185-4b90-87fb-0abe24e4804a.webp?v=1714889596"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8631cb404fcfd18c8a27e2103fc6126c1273eac8_d385eb61-2185-4b90-87fb-0abe24e4804a.webp?v=1714889596","width":2000},{"alt":null,"id":23890081546339,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0da3ee17dcb82e40a5bb88d9ac8a053c02f0a1_b7d48b05-c93a-4eb0-83ae-9ea94af54259.webp?v=1714889598"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9e0da3ee17dcb82e40a5bb88d9ac8a053c02f0a1_b7d48b05-c93a-4eb0-83ae-9ea94af54259.webp?v=1714889598","width":2000},{"alt":null,"id":23890083151971,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/708ea9a77fced47fb0afd8fa01b6e5b964f023bd_0c480ee3-3b26-4b48-83d2-eae7d44c1ba6.webp?v=1714889601"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/708ea9a77fced47fb0afd8fa01b6e5b964f023bd_0c480ee3-3b26-4b48-83d2-eae7d44c1ba6.webp?v=1714889601","width":2000},{"alt":null,"id":23890084888675,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29c49d253819f5bf5136d79f040273f879462377_ca7bb121-e90a-4694-b7c7-4aae823e3cab.webp?v=1714889603"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/29c49d253819f5bf5136d79f040273f879462377_ca7bb121-e90a-4694-b7c7-4aae823e3cab.webp?v=1714889603","width":2000},{"alt":null,"id":23890087149667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c62e4028ae044b179a1457d520bdcc5d4a15bed_3a7b6e95-bb80-4b9e-985c-c6b477fc4c77.webp?v=1714889606"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1c62e4028ae044b179a1457d520bdcc5d4a15bed_3a7b6e95-bb80-4b9e-985c-c6b477fc4c77.webp?v=1714889606","width":2000},{"alt":null,"id":23890088919139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f0742a77d5cb58642d910d3f6c90798b054f5a6_e300111d-4b29-4931-9daf-1f2cb21cfe93.webp?v=1714889608"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f0742a77d5cb58642d910d3f6c90798b054f5a6_e300111d-4b29-4931-9daf-1f2cb21cfe93.webp?v=1714889608","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904453058659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31484793323619,"product_id":7414148628579,"position":11,"created_at":"2024-05-05T14:13:28+08:00","updated_at":"2024-05-05T14:13:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f0742a77d5cb58642d910d3f6c90798b054f5a6_e300111d-4b29-4931-9daf-1f2cb21cfe93.webp?v=1714889608","variant_ids":[41904453058659]},"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-PB49","featured_media":{"alt":null,"id":23890088919139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f0742a77d5cb58642d910d3f6c90798b054f5a6_e300111d-4b29-4931-9daf-1f2cb21cfe93.webp?v=1714889608"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904453353571,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31484783329379,"product_id":7414148628579,"position":5,"created_at":"2024-05-05T14:13:13+08:00","updated_at":"2024-05-05T14:13:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff680122384e75a23612c949cfb865c5851f3d29_f94bf898-8925-48b6-86f0-c7cad42b317d.webp?v=1714889593","variant_ids":[41904453353571]},"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-PB49","featured_media":{"alt":null,"id":23890078597219,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff680122384e75a23612c949cfb865c5851f3d29_f94bf898-8925-48b6-86f0-c7cad42b317d.webp?v=1714889593"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904453058659,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB49","requires_shipping":true,"taxable":true,"featured_image":{"id":31484793323619,"product_id":7414148628579,"position":11,"created_at":"2024-05-05T14:13:28+08:00","updated_at":"2024-05-05T14:13:28+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f0742a77d5cb58642d910d3f6c90798b054f5a6_e300111d-4b29-4931-9daf-1f2cb21cfe93.webp?v=1714889608","variant_ids":[41904453058659]},"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-PB49","featured_media":{"alt":null,"id":23890088919139,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1f0742a77d5cb58642d910d3f6c90798b054f5a6_e300111d-4b29-4931-9daf-1f2cb21cfe93.webp?v=1714889608"}},"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: "停產"
}