$product = {"id":7414388883555,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 星雨夜空","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-a046","description":null,"published_at":"2024-06-11T17:51:03+08:00","created_at":"2024-05-05T14:23:54+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"MOD NX MagSafe 客製化","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","device-iPhone 13 Pro Max","discountable-item","member","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller","reseller-modnx-magsafe","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":41906140053603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31485324787811,"product_id":7414388883555,"position":5,"created_at":"2024-05-05T14:24:06+08:00","updated_at":"2024-05-05T14:24:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef052e1899d815acc99ad8aef6ad6327501260a_fb53be61-65c6-4bc5-ac3f-705331dd279c.webp?v=1714890246","variant_ids":[41906140053603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 星雨夜空 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-A046","featured_media":{"alt":null,"id":23890642206819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef052e1899d815acc99ad8aef6ad6327501260a_fb53be61-65c6-4bc5-ac3f-705331dd279c.webp?v=1714890246"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906140381283,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31485321674851,"product_id":7414388883555,"position":4,"created_at":"2024-05-05T14:24:04+08:00","updated_at":"2024-05-05T14:24:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26d32d99474fa1ba5f395bd1af497646bbc1fa64_a1092f4f-7f2c-4e6e-80b5-cef2b0d878fa.webp?v=1714890244","variant_ids":[41906140381283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 星雨夜空 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-A046","featured_media":{"alt":null,"id":23890638700643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26d32d99474fa1ba5f395bd1af497646bbc1fa64_a1092f4f-7f2c-4e6e-80b5-cef2b0d878fa.webp?v=1714890244"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a016fedd642ebdf52ea4ef6bee51870c744300_526b5a77-4ae5-4794-ac78-59b44c877836.webp?v=1714890237","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0adb2bccfa83d48e9681e2f56ebb23cb88416d5_b9cfdd05-2608-4ef3-9f36-283861908c39.webp?v=1714890239","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ee33d81f152da744d020653986e142e7a172133_fb78dbf8-9a03-490e-a7ac-bdcbb1271ed1.webp?v=1714890241","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26d32d99474fa1ba5f395bd1af497646bbc1fa64_a1092f4f-7f2c-4e6e-80b5-cef2b0d878fa.webp?v=1714890244","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef052e1899d815acc99ad8aef6ad6327501260a_fb53be61-65c6-4bc5-ac3f-705331dd279c.webp?v=1714890246","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2e14bd977339de256070707b23bd4a3eca2aab_ba679caa-5a68-4494-b9dd-903ca199fc0b.webp?v=1714890248","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279171e99f7614cca7ba5faa96ca9c3d7c17de44_ad2eb01f-0a32-467a-8a99-271c86fba50d.webp?v=1714890251","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b720bf792ce2f7971fe4110b23e8ed50b7795c_f85264d2-0a35-43d4-bd17-28e9b85e4c04.webp?v=1714890253","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c5fd9dca95c8e059c486efc25c1452841a8e898_713b5c05-8cbd-4a94-9866-391e8ae98dfb.webp?v=1714890256","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc8511fd01e51b1dbf83970c8effea2f083a143a_f47e0d4f-071f-4be5-902f-024c6a939d98.webp?v=1714890258","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add742c7d9e28f8b500c876fb0bf2c127a3d1bdc_bae6225a-bb3a-4817-822d-8d92faad0193.webp?v=1714890260"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a016fedd642ebdf52ea4ef6bee51870c744300_526b5a77-4ae5-4794-ac78-59b44c877836.webp?v=1714890237","options":["color"],"media":[{"alt":null,"id":23890628575331,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a016fedd642ebdf52ea4ef6bee51870c744300_526b5a77-4ae5-4794-ac78-59b44c877836.webp?v=1714890237"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c3a016fedd642ebdf52ea4ef6bee51870c744300_526b5a77-4ae5-4794-ac78-59b44c877836.webp?v=1714890237","width":2000},{"alt":null,"id":23890631721059,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0adb2bccfa83d48e9681e2f56ebb23cb88416d5_b9cfdd05-2608-4ef3-9f36-283861908c39.webp?v=1714890239"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a0adb2bccfa83d48e9681e2f56ebb23cb88416d5_b9cfdd05-2608-4ef3-9f36-283861908c39.webp?v=1714890239","width":2000},{"alt":null,"id":23890635292771,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ee33d81f152da744d020653986e142e7a172133_fb78dbf8-9a03-490e-a7ac-bdcbb1271ed1.webp?v=1714890241"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6ee33d81f152da744d020653986e142e7a172133_fb78dbf8-9a03-490e-a7ac-bdcbb1271ed1.webp?v=1714890241","width":2000},{"alt":null,"id":23890638700643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26d32d99474fa1ba5f395bd1af497646bbc1fa64_a1092f4f-7f2c-4e6e-80b5-cef2b0d878fa.webp?v=1714890244"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26d32d99474fa1ba5f395bd1af497646bbc1fa64_a1092f4f-7f2c-4e6e-80b5-cef2b0d878fa.webp?v=1714890244","width":2000},{"alt":null,"id":23890642206819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef052e1899d815acc99ad8aef6ad6327501260a_fb53be61-65c6-4bc5-ac3f-705331dd279c.webp?v=1714890246"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef052e1899d815acc99ad8aef6ad6327501260a_fb53be61-65c6-4bc5-ac3f-705331dd279c.webp?v=1714890246","width":2000},{"alt":null,"id":23890645745763,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2e14bd977339de256070707b23bd4a3eca2aab_ba679caa-5a68-4494-b9dd-903ca199fc0b.webp?v=1714890248"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0e2e14bd977339de256070707b23bd4a3eca2aab_ba679caa-5a68-4494-b9dd-903ca199fc0b.webp?v=1714890248","width":2000},{"alt":null,"id":23890649514083,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279171e99f7614cca7ba5faa96ca9c3d7c17de44_ad2eb01f-0a32-467a-8a99-271c86fba50d.webp?v=1714890251"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/279171e99f7614cca7ba5faa96ca9c3d7c17de44_ad2eb01f-0a32-467a-8a99-271c86fba50d.webp?v=1714890251","width":2000},{"alt":null,"id":23890652790883,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b720bf792ce2f7971fe4110b23e8ed50b7795c_f85264d2-0a35-43d4-bd17-28e9b85e4c04.webp?v=1714890253"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53b720bf792ce2f7971fe4110b23e8ed50b7795c_f85264d2-0a35-43d4-bd17-28e9b85e4c04.webp?v=1714890253","width":2000},{"alt":null,"id":23890656133219,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c5fd9dca95c8e059c486efc25c1452841a8e898_713b5c05-8cbd-4a94-9866-391e8ae98dfb.webp?v=1714890256"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/2c5fd9dca95c8e059c486efc25c1452841a8e898_713b5c05-8cbd-4a94-9866-391e8ae98dfb.webp?v=1714890256","width":2000},{"alt":null,"id":23890659442787,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc8511fd01e51b1dbf83970c8effea2f083a143a_f47e0d4f-071f-4be5-902f-024c6a939d98.webp?v=1714890258"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/dc8511fd01e51b1dbf83970c8effea2f083a143a_f47e0d4f-071f-4be5-902f-024c6a939d98.webp?v=1714890258","width":2000},{"alt":null,"id":23890663243875,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add742c7d9e28f8b500c876fb0bf2c127a3d1bdc_bae6225a-bb3a-4817-822d-8d92faad0193.webp?v=1714890260"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/add742c7d9e28f8b500c876fb0bf2c127a3d1bdc_bae6225a-bb3a-4817-822d-8d92faad0193.webp?v=1714890260","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41906140053603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31485324787811,"product_id":7414388883555,"position":5,"created_at":"2024-05-05T14:24:06+08:00","updated_at":"2024-05-05T14:24:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef052e1899d815acc99ad8aef6ad6327501260a_fb53be61-65c6-4bc5-ac3f-705331dd279c.webp?v=1714890246","variant_ids":[41906140053603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 星雨夜空 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-A046","featured_media":{"alt":null,"id":23890642206819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef052e1899d815acc99ad8aef6ad6327501260a_fb53be61-65c6-4bc5-ac3f-705331dd279c.webp?v=1714890246"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41906140381283,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31485321674851,"product_id":7414388883555,"position":4,"created_at":"2024-05-05T14:24:04+08:00","updated_at":"2024-05-05T14:24:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26d32d99474fa1ba5f395bd1af497646bbc1fa64_a1092f4f-7f2c-4e6e-80b5-cef2b0d878fa.webp?v=1714890244","variant_ids":[41906140381283]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 星雨夜空 - Mod NX-海軍藍邊框","public_title":"Mod NX-海軍藍邊框","options":["Mod NX-海軍藍邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB01232J5-A046","featured_media":{"alt":null,"id":23890638700643,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/26d32d99474fa1ba5f395bd1af497646bbc1fa64_a1092f4f-7f2c-4e6e-80b5-cef2b0d878fa.webp?v=1714890244"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41906140053603,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-A046","requires_shipping":true,"taxable":true,"featured_image":{"id":31485324787811,"product_id":7414388883555,"position":5,"created_at":"2024-05-05T14:24:06+08:00","updated_at":"2024-05-05T14:24:06+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef052e1899d815acc99ad8aef6ad6327501260a_fb53be61-65c6-4bc5-ac3f-705331dd279c.webp?v=1714890246","variant_ids":[41906140053603]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 星雨夜空 - Mod NX-黑色邊框","public_title":"Mod NX-黑色邊框","options":["Mod NX-黑色邊框"],"price":110000,"weight":1380,"compare_at_price":null,"inventory_quantity":2500,"inventory_management":null,"inventory_policy":"deny","barcode":"MPB0123224-A046","featured_media":{"alt":null,"id":23890642206819,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cef052e1899d815acc99ad8aef6ad6327501260a_fb53be61-65c6-4bc5-ac3f-705331dd279c.webp?v=1714890246"}},"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: "停產"
}