$product = {"id":7414165045347,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 迪士尼-星際大戰 Star Wars - 星戰角色-漫畫系列","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-pb84","description":null,"published_at":"2024-06-11T17:49:33+08:00","created_at":"2024-05-05T14:13:48+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":41904561356899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484811706467,"product_id":7414165045347,"position":1,"created_at":"2024-05-05T14:13:51+08:00","updated_at":"2024-05-05T14:13:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1003beea9dcae1ab902829153acd6ee3e069f238_4d6d5b3f-0af3-4fa2-9287-20c2bcb011a5.webp?v=1714889631","variant_ids":[41904561356899]},"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-PB84","featured_media":{"alt":null,"id":23890107236451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1003beea9dcae1ab902829153acd6ee3e069f238_4d6d5b3f-0af3-4fa2-9287-20c2bcb011a5.webp?v=1714889631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904561750115,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484821831779,"product_id":7414165045347,"position":7,"created_at":"2024-05-05T14:14:05+08:00","updated_at":"2024-05-05T14:14:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96e1916e4695466e2c241cd2873025fbdea59b2d_147cba31-7202-4b99-b172-b05844c761d3.webp?v=1714889645","variant_ids":[41904561750115]},"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-PB84","featured_media":{"alt":null,"id":23890117132387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96e1916e4695466e2c241cd2873025fbdea59b2d_147cba31-7202-4b99-b172-b05844c761d3.webp?v=1714889645"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1003beea9dcae1ab902829153acd6ee3e069f238_4d6d5b3f-0af3-4fa2-9287-20c2bcb011a5.webp?v=1714889631","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d705f10fec1f1ee3b529d5f27b83e6f87a466e71_cc95982e-4d02-44ce-811d-c882a0a2705a.webp?v=1714889633","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd1ab200b4575d985c42bab5e5a8917809fafb0b_e3dbde34-8b84-4b9e-9147-288964e54af3.webp?v=1714889636","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d96917c7833e61c76f45517650883386e0f832_bcaea034-cf50-4c0f-8ebc-48dfe61338aa.webp?v=1714889638","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff39bd52d124ee9a18ce3809762fcf40e58d5c02_7d90044f-c95b-4b8b-a814-ad280f98f2ac.webp?v=1714889640","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e148e561b83ae7e7eebdf41f4831727b890b0c_1c843a78-c66b-4fca-81ce-a76be7ad2e0c.webp?v=1714889643","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96e1916e4695466e2c241cd2873025fbdea59b2d_147cba31-7202-4b99-b172-b05844c761d3.webp?v=1714889645","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a08f56133efc6a514cff3959e1e3768ef5742f_af6f7f5a-e01a-4d58-b171-611d953583bd.webp?v=1714889647","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d85a0936b9a965697c370adaadc74c0a6f200845_25678235-46e7-49e2-abfb-05f70aee762e.webp?v=1714889650","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3ec7b83812ecbcedd76b0c586ca549c98c3394a_ac870d52-5de5-4cb6-b707-a3686231a81b.webp?v=1714889652","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43d59d39e226f280905b797fbd4d90dfe7fb0234_fa80d5eb-a054-4e82-9715-4eae5f9a71df.webp?v=1714889655"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1003beea9dcae1ab902829153acd6ee3e069f238_4d6d5b3f-0af3-4fa2-9287-20c2bcb011a5.webp?v=1714889631","options":["color"],"media":[{"alt":null,"id":23890107236451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1003beea9dcae1ab902829153acd6ee3e069f238_4d6d5b3f-0af3-4fa2-9287-20c2bcb011a5.webp?v=1714889631"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1003beea9dcae1ab902829153acd6ee3e069f238_4d6d5b3f-0af3-4fa2-9287-20c2bcb011a5.webp?v=1714889631","width":2000},{"alt":null,"id":23890108743779,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d705f10fec1f1ee3b529d5f27b83e6f87a466e71_cc95982e-4d02-44ce-811d-c882a0a2705a.webp?v=1714889633"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d705f10fec1f1ee3b529d5f27b83e6f87a466e71_cc95982e-4d02-44ce-811d-c882a0a2705a.webp?v=1714889633","width":2000},{"alt":null,"id":23890110709859,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd1ab200b4575d985c42bab5e5a8917809fafb0b_e3dbde34-8b84-4b9e-9147-288964e54af3.webp?v=1714889636"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/bd1ab200b4575d985c42bab5e5a8917809fafb0b_e3dbde34-8b84-4b9e-9147-288964e54af3.webp?v=1714889636","width":2000},{"alt":null,"id":23890112217187,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d96917c7833e61c76f45517650883386e0f832_bcaea034-cf50-4c0f-8ebc-48dfe61338aa.webp?v=1714889638"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/10d96917c7833e61c76f45517650883386e0f832_bcaea034-cf50-4c0f-8ebc-48dfe61338aa.webp?v=1714889638","width":2000},{"alt":null,"id":23890113626211,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff39bd52d124ee9a18ce3809762fcf40e58d5c02_7d90044f-c95b-4b8b-a814-ad280f98f2ac.webp?v=1714889640"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ff39bd52d124ee9a18ce3809762fcf40e58d5c02_7d90044f-c95b-4b8b-a814-ad280f98f2ac.webp?v=1714889640","width":2000},{"alt":null,"id":23890115199075,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e148e561b83ae7e7eebdf41f4831727b890b0c_1c843a78-c66b-4fca-81ce-a76be7ad2e0c.webp?v=1714889643"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/e1e148e561b83ae7e7eebdf41f4831727b890b0c_1c843a78-c66b-4fca-81ce-a76be7ad2e0c.webp?v=1714889643","width":2000},{"alt":null,"id":23890117132387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96e1916e4695466e2c241cd2873025fbdea59b2d_147cba31-7202-4b99-b172-b05844c761d3.webp?v=1714889645"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96e1916e4695466e2c241cd2873025fbdea59b2d_147cba31-7202-4b99-b172-b05844c761d3.webp?v=1714889645","width":2000},{"alt":null,"id":23890118836323,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a08f56133efc6a514cff3959e1e3768ef5742f_af6f7f5a-e01a-4d58-b171-611d953583bd.webp?v=1714889647"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96a08f56133efc6a514cff3959e1e3768ef5742f_af6f7f5a-e01a-4d58-b171-611d953583bd.webp?v=1714889647","width":2000},{"alt":null,"id":23890120704099,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d85a0936b9a965697c370adaadc74c0a6f200845_25678235-46e7-49e2-abfb-05f70aee762e.webp?v=1714889650"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d85a0936b9a965697c370adaadc74c0a6f200845_25678235-46e7-49e2-abfb-05f70aee762e.webp?v=1714889650","width":2000},{"alt":null,"id":23890122539107,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3ec7b83812ecbcedd76b0c586ca549c98c3394a_ac870d52-5de5-4cb6-b707-a3686231a81b.webp?v=1714889652"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/b3ec7b83812ecbcedd76b0c586ca549c98c3394a_ac870d52-5de5-4cb6-b707-a3686231a81b.webp?v=1714889652","width":2000},{"alt":null,"id":23890123849827,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43d59d39e226f280905b797fbd4d90dfe7fb0234_fa80d5eb-a054-4e82-9715-4eae5f9a71df.webp?v=1714889655"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/43d59d39e226f280905b797fbd4d90dfe7fb0234_fa80d5eb-a054-4e82-9715-4eae5f9a71df.webp?v=1714889655","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41904561356899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484811706467,"product_id":7414165045347,"position":1,"created_at":"2024-05-05T14:13:51+08:00","updated_at":"2024-05-05T14:13:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1003beea9dcae1ab902829153acd6ee3e069f238_4d6d5b3f-0af3-4fa2-9287-20c2bcb011a5.webp?v=1714889631","variant_ids":[41904561356899]},"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-PB84","featured_media":{"alt":null,"id":23890107236451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1003beea9dcae1ab902829153acd6ee3e069f238_4d6d5b3f-0af3-4fa2-9287-20c2bcb011a5.webp?v=1714889631"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41904561750115,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484821831779,"product_id":7414165045347,"position":7,"created_at":"2024-05-05T14:14:05+08:00","updated_at":"2024-05-05T14:14:05+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96e1916e4695466e2c241cd2873025fbdea59b2d_147cba31-7202-4b99-b172-b05844c761d3.webp?v=1714889645","variant_ids":[41904561750115]},"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-PB84","featured_media":{"alt":null,"id":23890117132387,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/96e1916e4695466e2c241cd2873025fbdea59b2d_147cba31-7202-4b99-b172-b05844c761d3.webp?v=1714889645"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41904561356899,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-PB84","requires_shipping":true,"taxable":true,"featured_image":{"id":31484811706467,"product_id":7414165045347,"position":1,"created_at":"2024-05-05T14:13:51+08:00","updated_at":"2024-05-05T14:13:51+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1003beea9dcae1ab902829153acd6ee3e069f238_4d6d5b3f-0af3-4fa2-9287-20c2bcb011a5.webp?v=1714889631","variant_ids":[41904561356899]},"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-PB84","featured_media":{"alt":null,"id":23890107236451,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1003beea9dcae1ab902829153acd6ee3e069f238_4d6d5b3f-0af3-4fa2-9287-20c2bcb011a5.webp?v=1714889631"}},"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: "停產"
}