$product = {"id":7414050586723,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑女 瘋狂的愛","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb09","description":null,"published_at":"2024-06-11T17:48:33+08:00","created_at":"2024-05-05T14:06:52+08:00","vendor":"RHINOSHIELD Taiwan B2B","type":"設計師MOD NX MagSafe專區Batman","tags":["20%","25%","30%","35%","40%","45%","50%","b2b","brand-Apple","designer","designer-batman","device-iPhone 13 Pro Max","merge","mod-nx-magsafe-printable","new-modnx-sku","reseller-modnx-magsafe-batman","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":41903737438307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484570239075,"product_id":7414050586723,"position":9,"created_at":"2024-05-05T14:07:15+08:00","updated_at":"2024-05-05T14:07:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93cda2c4472260e7b4f38cc55b5631e36e9f9a0_cc695e45-85d2-4f06-8bdf-0188c0299dd5.webp?v=1714889235","variant_ids":[41903737438307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑女 瘋狂的愛 - 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-SB09","featured_media":{"alt":null,"id":23889865474147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93cda2c4472260e7b4f38cc55b5631e36e9f9a0_cc695e45-85d2-4f06-8bdf-0188c0299dd5.webp?v=1714889235"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903737995363,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484568764515,"product_id":7414050586723,"position":8,"created_at":"2024-05-05T14:07:12+08:00","updated_at":"2024-05-05T14:07:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b591d3a35e55a2b7bbbd578152b24eb7aa79c7_fec8efd5-2545-46c5-9d62-5d2712d56b7a.webp?v=1714889232","variant_ids":[41903737995363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑女 瘋狂的愛 - 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-SB09","featured_media":{"alt":null,"id":23889863802979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b591d3a35e55a2b7bbbd578152b24eb7aa79c7_fec8efd5-2545-46c5-9d62-5d2712d56b7a.webp?v=1714889232"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23eba3829d18ea182d78e75b3eb4dab27180bbaf_52f22386-a56b-4bfb-9e59-3654c45d306d.webp?v=1714889215","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164775f2cb642983e820927a03f79fd640c0234f_c9d5394a-0cb6-409d-874a-194a5f65668a.webp?v=1714889217","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ff963e31c5c843ce6c9e73b41d63a11772a110_d535014d-77eb-4748-8bd0-f1f515564c7d.webp?v=1714889220","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f2c217d11ac968683b006aa8a756fc81f868b2e_762bf4fe-0989-4ae4-807a-3c422c930bf4.webp?v=1714889222","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d00617579e04bab95c6331e91c492faeae5d847d_2b89bdb4-0d22-4efd-aa84-cc9d6c44cd16.webp?v=1714889225","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccce67b6fecf9dff48496d89fa11e00427af97df_c476570f-1446-4076-88e4-fca8a7f4e521.webp?v=1714889227","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/845f36ce4d868e4699d549620707b9ad57df5a90_83c768f3-aa43-4882-aa34-c2cceb722436.webp?v=1714889230","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b591d3a35e55a2b7bbbd578152b24eb7aa79c7_fec8efd5-2545-46c5-9d62-5d2712d56b7a.webp?v=1714889232","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93cda2c4472260e7b4f38cc55b5631e36e9f9a0_cc695e45-85d2-4f06-8bdf-0188c0299dd5.webp?v=1714889235","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d07af99cc2ce7ca8492c2a183795aa6ad5ff69_2d7b7c41-83ca-4635-921f-05c6680c61f7.webp?v=1714889237","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33dbc388b1249d279b41dcc85c4f3e17381b333e_0e0be643-5a77-4ee8-bd81-1f777b8ae178.webp?v=1714889240"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23eba3829d18ea182d78e75b3eb4dab27180bbaf_52f22386-a56b-4bfb-9e59-3654c45d306d.webp?v=1714889215","options":["color"],"media":[{"alt":null,"id":23889851351139,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23eba3829d18ea182d78e75b3eb4dab27180bbaf_52f22386-a56b-4bfb-9e59-3654c45d306d.webp?v=1714889215"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/23eba3829d18ea182d78e75b3eb4dab27180bbaf_52f22386-a56b-4bfb-9e59-3654c45d306d.webp?v=1714889215","width":2000},{"alt":null,"id":23889852989539,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164775f2cb642983e820927a03f79fd640c0234f_c9d5394a-0cb6-409d-874a-194a5f65668a.webp?v=1714889217"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/164775f2cb642983e820927a03f79fd640c0234f_c9d5394a-0cb6-409d-874a-194a5f65668a.webp?v=1714889217","width":2000},{"alt":null,"id":23889854922851,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ff963e31c5c843ce6c9e73b41d63a11772a110_d535014d-77eb-4748-8bd0-f1f515564c7d.webp?v=1714889220"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/53ff963e31c5c843ce6c9e73b41d63a11772a110_d535014d-77eb-4748-8bd0-f1f515564c7d.webp?v=1714889220","width":2000},{"alt":null,"id":23889856692323,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f2c217d11ac968683b006aa8a756fc81f868b2e_762bf4fe-0989-4ae4-807a-3c422c930bf4.webp?v=1714889222"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/6f2c217d11ac968683b006aa8a756fc81f868b2e_762bf4fe-0989-4ae4-807a-3c422c930bf4.webp?v=1714889222","width":2000},{"alt":null,"id":23889858560099,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d00617579e04bab95c6331e91c492faeae5d847d_2b89bdb4-0d22-4efd-aa84-cc9d6c44cd16.webp?v=1714889225"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d00617579e04bab95c6331e91c492faeae5d847d_2b89bdb4-0d22-4efd-aa84-cc9d6c44cd16.webp?v=1714889225","width":2000},{"alt":null,"id":23889860231267,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccce67b6fecf9dff48496d89fa11e00427af97df_c476570f-1446-4076-88e4-fca8a7f4e521.webp?v=1714889227"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/ccce67b6fecf9dff48496d89fa11e00427af97df_c476570f-1446-4076-88e4-fca8a7f4e521.webp?v=1714889227","width":2000},{"alt":null,"id":23889862164579,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/845f36ce4d868e4699d549620707b9ad57df5a90_83c768f3-aa43-4882-aa34-c2cceb722436.webp?v=1714889230"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/845f36ce4d868e4699d549620707b9ad57df5a90_83c768f3-aa43-4882-aa34-c2cceb722436.webp?v=1714889230","width":2000},{"alt":null,"id":23889863802979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b591d3a35e55a2b7bbbd578152b24eb7aa79c7_fec8efd5-2545-46c5-9d62-5d2712d56b7a.webp?v=1714889232"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b591d3a35e55a2b7bbbd578152b24eb7aa79c7_fec8efd5-2545-46c5-9d62-5d2712d56b7a.webp?v=1714889232","width":2000},{"alt":null,"id":23889865474147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93cda2c4472260e7b4f38cc55b5631e36e9f9a0_cc695e45-85d2-4f06-8bdf-0188c0299dd5.webp?v=1714889235"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93cda2c4472260e7b4f38cc55b5631e36e9f9a0_cc695e45-85d2-4f06-8bdf-0188c0299dd5.webp?v=1714889235","width":2000},{"alt":null,"id":23889866883171,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d07af99cc2ce7ca8492c2a183795aa6ad5ff69_2d7b7c41-83ca-4635-921f-05c6680c61f7.webp?v=1714889237"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/69d07af99cc2ce7ca8492c2a183795aa6ad5ff69_2d7b7c41-83ca-4635-921f-05c6680c61f7.webp?v=1714889237","width":2000},{"alt":null,"id":23889868259427,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33dbc388b1249d279b41dcc85c4f3e17381b333e_0e0be643-5a77-4ee8-bd81-1f777b8ae178.webp?v=1714889240"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/33dbc388b1249d279b41dcc85c4f3e17381b333e_0e0be643-5a77-4ee8-bd81-1f777b8ae178.webp?v=1714889240","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41903737438307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484570239075,"product_id":7414050586723,"position":9,"created_at":"2024-05-05T14:07:15+08:00","updated_at":"2024-05-05T14:07:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93cda2c4472260e7b4f38cc55b5631e36e9f9a0_cc695e45-85d2-4f06-8bdf-0188c0299dd5.webp?v=1714889235","variant_ids":[41903737438307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑女 瘋狂的愛 - 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-SB09","featured_media":{"alt":null,"id":23889865474147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93cda2c4472260e7b4f38cc55b5631e36e9f9a0_cc695e45-85d2-4f06-8bdf-0188c0299dd5.webp?v=1714889235"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41903737995363,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484568764515,"product_id":7414050586723,"position":8,"created_at":"2024-05-05T14:07:12+08:00","updated_at":"2024-05-05T14:07:12+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b591d3a35e55a2b7bbbd578152b24eb7aa79c7_fec8efd5-2545-46c5-9d62-5d2712d56b7a.webp?v=1714889232","variant_ids":[41903737995363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑女 瘋狂的愛 - 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-SB09","featured_media":{"alt":null,"id":23889863802979,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/09b591d3a35e55a2b7bbbd578152b24eb7aa79c7_fec8efd5-2545-46c5-9d62-5d2712d56b7a.webp?v=1714889232"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41903737438307,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB09","requires_shipping":true,"taxable":true,"featured_image":{"id":31484570239075,"product_id":7414050586723,"position":9,"created_at":"2024-05-05T14:07:15+08:00","updated_at":"2024-05-05T14:07:15+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93cda2c4472260e7b4f38cc55b5631e36e9f9a0_cc695e45-85d2-4f06-8bdf-0188c0299dd5.webp?v=1714889235","variant_ids":[41903737438307]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑女 瘋狂的愛 - 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-SB09","featured_media":{"alt":null,"id":23889865474147,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/c93cda2c4472260e7b4f38cc55b5631e36e9f9a0_cc695e45-85d2-4f06-8bdf-0188c0299dd5.webp?v=1714889235"}},"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: "停產"
}