$product = {"id":7413997994083,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(明信片版)","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-ae06","description":null,"published_at":"2024-06-11T17:47:16+08:00","created_at":"2024-05-05T13:58:06+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-chi-po-lin-series","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":41903154135139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484423241827,"product_id":7413997994083,"position":4,"created_at":"2024-05-05T13:58:15+08:00","updated_at":"2024-05-05T13:58:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea19de52af78148c01d7c7b603d542a799f0c6d2_4ba9bc4e-db70-4ec5-b389-e1dc3ee64a4c.webp?v=1714888695","variant_ids":[41903154135139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(明信片版) - 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-AE06","featured_media":{"alt":null,"id":23889717231715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea19de52af78148c01d7c7b603d542a799f0c6d2_4ba9bc4e-db70-4ec5-b389-e1dc3ee64a4c.webp?v=1714888695"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903154462819,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484422652003,"product_id":7413997994083,"position":3,"created_at":"2024-05-05T13:58:13+08:00","updated_at":"2024-05-05T13:58:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2302d6b3a5508a0606983e53cd1887ab329b79_dbf59b98-41ad-4acf-86bf-f570d08e52a3.webp?v=1714888693","variant_ids":[41903154462819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(明信片版) - 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-AE06","featured_media":{"alt":null,"id":23889716674659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2302d6b3a5508a0606983e53cd1887ab329b79_dbf59b98-41ad-4acf-86bf-f570d08e52a3.webp?v=1714888693"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc7422853804790c4ee22a56f2f32fd62b449cd_cd752e22-71c6-4d5d-bef5-586209d6b232.webp?v=1714888688","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03c08beeccd895cd66da094b0445b3a87d967c08_5a511360-c853-480c-b095-c6db14ebfbaa.webp?v=1714888690","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2302d6b3a5508a0606983e53cd1887ab329b79_dbf59b98-41ad-4acf-86bf-f570d08e52a3.webp?v=1714888693","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea19de52af78148c01d7c7b603d542a799f0c6d2_4ba9bc4e-db70-4ec5-b389-e1dc3ee64a4c.webp?v=1714888695","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9457b223a5a00b5b9a2f11ac94fc8bde60502f2e_7fd36087-9cf8-4ab8-9bff-b23879d69ae7.webp?v=1714888697","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a26545690cdf456240263354271f9ac5ad326a31_03de3708-709f-48b0-a410-a9c71010cd8f.webp?v=1714888700","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caa1e6eeba2df26dc88a65b2966b7254ad99608_e51df56f-98e9-453d-b8bf-6701abd1876c.webp?v=1714888702","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136bf2cf3b939f646af3910047c44821eb016235_6231653b-c3af-480d-a54c-9309d1296e11.webp?v=1714888705","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd7ed248c71b7529b1bb772bcff504b63a51df0d_be95865d-713c-4e19-8cb5-61dc247bb219.webp?v=1714888707","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd548caeac1c68d36c0f98aa95fedcce4326fcb_a03521bb-71c9-4447-b3cd-461d260e9986.webp?v=1714888710","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7caea2753a7ad3c593c5a9cdab3a282b471ad8_ddd48769-1369-4e77-bfa0-e937470558af.webp?v=1714888712"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc7422853804790c4ee22a56f2f32fd62b449cd_cd752e22-71c6-4d5d-bef5-586209d6b232.webp?v=1714888688","options":["color"],"media":[{"alt":null,"id":23889715724387,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc7422853804790c4ee22a56f2f32fd62b449cd_cd752e22-71c6-4d5d-bef5-586209d6b232.webp?v=1714888688"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5bc7422853804790c4ee22a56f2f32fd62b449cd_cd752e22-71c6-4d5d-bef5-586209d6b232.webp?v=1714888688","width":2000},{"alt":null,"id":23889716215907,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03c08beeccd895cd66da094b0445b3a87d967c08_5a511360-c853-480c-b095-c6db14ebfbaa.webp?v=1714888690"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/03c08beeccd895cd66da094b0445b3a87d967c08_5a511360-c853-480c-b095-c6db14ebfbaa.webp?v=1714888690","width":2000},{"alt":null,"id":23889716674659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2302d6b3a5508a0606983e53cd1887ab329b79_dbf59b98-41ad-4acf-86bf-f570d08e52a3.webp?v=1714888693"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2302d6b3a5508a0606983e53cd1887ab329b79_dbf59b98-41ad-4acf-86bf-f570d08e52a3.webp?v=1714888693","width":2000},{"alt":null,"id":23889717231715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea19de52af78148c01d7c7b603d542a799f0c6d2_4ba9bc4e-db70-4ec5-b389-e1dc3ee64a4c.webp?v=1714888695"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea19de52af78148c01d7c7b603d542a799f0c6d2_4ba9bc4e-db70-4ec5-b389-e1dc3ee64a4c.webp?v=1714888695","width":2000},{"alt":null,"id":23889717657699,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9457b223a5a00b5b9a2f11ac94fc8bde60502f2e_7fd36087-9cf8-4ab8-9bff-b23879d69ae7.webp?v=1714888697"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9457b223a5a00b5b9a2f11ac94fc8bde60502f2e_7fd36087-9cf8-4ab8-9bff-b23879d69ae7.webp?v=1714888697","width":2000},{"alt":null,"id":23889718083683,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a26545690cdf456240263354271f9ac5ad326a31_03de3708-709f-48b0-a410-a9c71010cd8f.webp?v=1714888700"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/a26545690cdf456240263354271f9ac5ad326a31_03de3708-709f-48b0-a410-a9c71010cd8f.webp?v=1714888700","width":2000},{"alt":null,"id":23889718640739,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caa1e6eeba2df26dc88a65b2966b7254ad99608_e51df56f-98e9-453d-b8bf-6701abd1876c.webp?v=1714888702"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0caa1e6eeba2df26dc88a65b2966b7254ad99608_e51df56f-98e9-453d-b8bf-6701abd1876c.webp?v=1714888702","width":2000},{"alt":null,"id":23889719263331,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136bf2cf3b939f646af3910047c44821eb016235_6231653b-c3af-480d-a54c-9309d1296e11.webp?v=1714888705"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/136bf2cf3b939f646af3910047c44821eb016235_6231653b-c3af-480d-a54c-9309d1296e11.webp?v=1714888705","width":2000},{"alt":null,"id":23889719918691,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd7ed248c71b7529b1bb772bcff504b63a51df0d_be95865d-713c-4e19-8cb5-61dc247bb219.webp?v=1714888707"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/fd7ed248c71b7529b1bb772bcff504b63a51df0d_be95865d-713c-4e19-8cb5-61dc247bb219.webp?v=1714888707","width":2000},{"alt":null,"id":23889720377443,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd548caeac1c68d36c0f98aa95fedcce4326fcb_a03521bb-71c9-4447-b3cd-461d260e9986.webp?v=1714888710"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/cfd548caeac1c68d36c0f98aa95fedcce4326fcb_a03521bb-71c9-4447-b3cd-461d260e9986.webp?v=1714888710","width":2000},{"alt":null,"id":23889720967267,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7caea2753a7ad3c593c5a9cdab3a282b471ad8_ddd48769-1369-4e77-bfa0-e937470558af.webp?v=1714888712"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/da7caea2753a7ad3c593c5a9cdab3a282b471ad8_ddd48769-1369-4e77-bfa0-e937470558af.webp?v=1714888712","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903154135139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484423241827,"product_id":7413997994083,"position":4,"created_at":"2024-05-05T13:58:15+08:00","updated_at":"2024-05-05T13:58:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea19de52af78148c01d7c7b603d542a799f0c6d2_4ba9bc4e-db70-4ec5-b389-e1dc3ee64a4c.webp?v=1714888695","variant_ids":[41903154135139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(明信片版) - 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-AE06","featured_media":{"alt":null,"id":23889717231715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea19de52af78148c01d7c7b603d542a799f0c6d2_4ba9bc4e-db70-4ec5-b389-e1dc3ee64a4c.webp?v=1714888695"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903154462819,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484422652003,"product_id":7413997994083,"position":3,"created_at":"2024-05-05T13:58:13+08:00","updated_at":"2024-05-05T13:58:13+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2302d6b3a5508a0606983e53cd1887ab329b79_dbf59b98-41ad-4acf-86bf-f570d08e52a3.webp?v=1714888693","variant_ids":[41903154462819]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(明信片版) - 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-AE06","featured_media":{"alt":null,"id":23889716674659,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/9d2302d6b3a5508a0606983e53cd1887ab329b79_dbf59b98-41ad-4acf-86bf-f570d08e52a3.webp?v=1714888693"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903154135139,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-AE06","requires_shipping":true,"taxable":true,"featured_image":{"id":31484423241827,"product_id":7413997994083,"position":4,"created_at":"2024-05-05T13:58:15+08:00","updated_at":"2024-05-05T13:58:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea19de52af78148c01d7c7b603d542a799f0c6d2_4ba9bc4e-db70-4ec5-b389-e1dc3ee64a4c.webp?v=1714888695","variant_ids":[41903154135139]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - 【獨家設計款】 - 來自空中的情書(明信片版) - 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-AE06","featured_media":{"alt":null,"id":23889717231715,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ea19de52af78148c01d7c7b603d542a799f0c6d2_4ba9bc4e-db70-4ec5-b389-e1dc3ee64a4c.webp?v=1714888695"}},"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: "停產"
}