$product = {"id":7414587424867,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 13 Pro Max - Batman - 小丑拳擊學院","handle":"iphone-13-pro-max-mod-nx-magsafe-printable-sb07","description":null,"published_at":"2024-06-11T17:52:21+08:00","created_at":"2024-05-05T14:32:44+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":41907612975203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485832921187,"product_id":7414587424867,"position":5,"created_at":"2024-05-05T14:32:55+08:00","updated_at":"2024-05-05T14:32:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0588122d815079f92206a1b8f713b0874db6fc_a8cff3ec-f71e-49c3-805b-ae0a030641d2.webp?v=1714890775","variant_ids":[41907612975203]},"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-SB07","featured_media":{"alt":null,"id":23891168362595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0588122d815079f92206a1b8f713b0874db6fc_a8cff3ec-f71e-49c3-805b-ae0a030641d2.webp?v=1714890775"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907613466723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485839573091,"product_id":7414587424867,"position":9,"created_at":"2024-05-05T14:33:04+08:00","updated_at":"2024-05-05T14:33:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f8dac2e32940de8bb36023502d9f29cd7a074d_a0c2b216-db6e-4b61-9b63-391c39e12df3.webp?v=1714890784","variant_ids":[41907613466723]},"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-SB07","featured_media":{"alt":null,"id":23891174621283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f8dac2e32940de8bb36023502d9f29cd7a074d_a0c2b216-db6e-4b61-9b63-391c39e12df3.webp?v=1714890784"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8594b653e5b707af9d2e8d8a90e854e09979e15d_19261f49-b9a9-417d-81fa-cc950ac8085f.webp?v=1714890766","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/246846ac5cc982e7c9ec283abbf769f6acff2ba8_26cefcc0-5510-415f-a3a2-ceb3e1a4f8d8.webp?v=1714890768","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5478f04e9907cb8b23cc43ac15a7e765c83c0267_7482aea1-60f2-40ef-8cff-1592ac817b99.webp?v=1714890771","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c6abe5d83cd655550583e68aa687e757052cd53_7e164d37-dbc4-47a9-94fa-4f6818d4b487.webp?v=1714890773","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0588122d815079f92206a1b8f713b0874db6fc_a8cff3ec-f71e-49c3-805b-ae0a030641d2.webp?v=1714890775","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a69569253be63980b18aa985815bef1732e321_2cd74e0c-07c2-4084-9d86-3b1e56a90557.webp?v=1714890778","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f6259fa1dac4d3e60201b77df25e0e767796a3_bd97b78f-ec3a-4b1b-8f1a-0b5d08555c46.webp?v=1714890780","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19456176f749f153b8b697f546f24241bf636f7b_050ef176-7488-4a9e-8706-dbadbfe79942.webp?v=1714890782","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f8dac2e32940de8bb36023502d9f29cd7a074d_a0c2b216-db6e-4b61-9b63-391c39e12df3.webp?v=1714890784","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5a5675794b9096c6bf14a75c231183a4e5c5a89_026ad595-2a4b-4d22-8fb1-8706aa5eccf4.webp?v=1714890787","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7ac6936cb7a70714e9a9a718ad1efce3a2fe22_0a0ea74b-a48b-406a-ad3e-c088ab22e89b.webp?v=1714890789"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8594b653e5b707af9d2e8d8a90e854e09979e15d_19261f49-b9a9-417d-81fa-cc950ac8085f.webp?v=1714890766","options":["color"],"media":[{"alt":null,"id":23891160268899,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8594b653e5b707af9d2e8d8a90e854e09979e15d_19261f49-b9a9-417d-81fa-cc950ac8085f.webp?v=1714890766"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/8594b653e5b707af9d2e8d8a90e854e09979e15d_19261f49-b9a9-417d-81fa-cc950ac8085f.webp?v=1714890766","width":2000},{"alt":null,"id":23891162267747,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/246846ac5cc982e7c9ec283abbf769f6acff2ba8_26cefcc0-5510-415f-a3a2-ceb3e1a4f8d8.webp?v=1714890768"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/246846ac5cc982e7c9ec283abbf769f6acff2ba8_26cefcc0-5510-415f-a3a2-ceb3e1a4f8d8.webp?v=1714890768","width":2000},{"alt":null,"id":23891164430435,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5478f04e9907cb8b23cc43ac15a7e765c83c0267_7482aea1-60f2-40ef-8cff-1592ac817b99.webp?v=1714890771"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/5478f04e9907cb8b23cc43ac15a7e765c83c0267_7482aea1-60f2-40ef-8cff-1592ac817b99.webp?v=1714890771","width":2000},{"alt":null,"id":23891166462051,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c6abe5d83cd655550583e68aa687e757052cd53_7e164d37-dbc4-47a9-94fa-4f6818d4b487.webp?v=1714890773"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c6abe5d83cd655550583e68aa687e757052cd53_7e164d37-dbc4-47a9-94fa-4f6818d4b487.webp?v=1714890773","width":2000},{"alt":null,"id":23891168362595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0588122d815079f92206a1b8f713b0874db6fc_a8cff3ec-f71e-49c3-805b-ae0a030641d2.webp?v=1714890775"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0588122d815079f92206a1b8f713b0874db6fc_a8cff3ec-f71e-49c3-805b-ae0a030641d2.webp?v=1714890775","width":2000},{"alt":null,"id":23891170590819,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a69569253be63980b18aa985815bef1732e321_2cd74e0c-07c2-4084-9d86-3b1e56a90557.webp?v=1714890778"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/58a69569253be63980b18aa985815bef1732e321_2cd74e0c-07c2-4084-9d86-3b1e56a90557.webp?v=1714890778","width":2000},{"alt":null,"id":23891172229219,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f6259fa1dac4d3e60201b77df25e0e767796a3_bd97b78f-ec3a-4b1b-8f1a-0b5d08555c46.webp?v=1714890780"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d6f6259fa1dac4d3e60201b77df25e0e767796a3_bd97b78f-ec3a-4b1b-8f1a-0b5d08555c46.webp?v=1714890780","width":2000},{"alt":null,"id":23891173408867,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19456176f749f153b8b697f546f24241bf636f7b_050ef176-7488-4a9e-8706-dbadbfe79942.webp?v=1714890782"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/19456176f749f153b8b697f546f24241bf636f7b_050ef176-7488-4a9e-8706-dbadbfe79942.webp?v=1714890782","width":2000},{"alt":null,"id":23891174621283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f8dac2e32940de8bb36023502d9f29cd7a074d_a0c2b216-db6e-4b61-9b63-391c39e12df3.webp?v=1714890784"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f8dac2e32940de8bb36023502d9f29cd7a074d_a0c2b216-db6e-4b61-9b63-391c39e12df3.webp?v=1714890784","width":2000},{"alt":null,"id":23891176063075,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5a5675794b9096c6bf14a75c231183a4e5c5a89_026ad595-2a4b-4d22-8fb1-8706aa5eccf4.webp?v=1714890787"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d5a5675794b9096c6bf14a75c231183a4e5c5a89_026ad595-2a4b-4d22-8fb1-8706aa5eccf4.webp?v=1714890787","width":2000},{"alt":null,"id":23891177406563,"position":11,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7ac6936cb7a70714e9a9a718ad1efce3a2fe22_0a0ea74b-a48b-406a-ad3e-c088ab22e89b.webp?v=1714890789"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0c7ac6936cb7a70714e9a9a718ad1efce3a2fe22_0a0ea74b-a48b-406a-ad3e-c088ab22e89b.webp?v=1714890789","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41907612975203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485832921187,"product_id":7414587424867,"position":5,"created_at":"2024-05-05T14:32:55+08:00","updated_at":"2024-05-05T14:32:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0588122d815079f92206a1b8f713b0874db6fc_a8cff3ec-f71e-49c3-805b-ae0a030641d2.webp?v=1714890775","variant_ids":[41907612975203]},"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-SB07","featured_media":{"alt":null,"id":23891168362595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0588122d815079f92206a1b8f713b0874db6fc_a8cff3ec-f71e-49c3-805b-ae0a030641d2.webp?v=1714890775"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}},{"id":41907613466723,"title":"Mod NX-海軍藍邊框","option1":"Mod NX-海軍藍邊框","option2":null,"option3":null,"sku":"MPB01232J5-SB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485839573091,"product_id":7414587424867,"position":9,"created_at":"2024-05-05T14:33:04+08:00","updated_at":"2024-05-05T14:33:04+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f8dac2e32940de8bb36023502d9f29cd7a074d_a0c2b216-db6e-4b61-9b63-391c39e12df3.webp?v=1714890784","variant_ids":[41907613466723]},"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-SB07","featured_media":{"alt":null,"id":23891174621283,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/06f8dac2e32940de8bb36023502d9f29cd7a074d_a0c2b216-db6e-4b61-9b63-391c39e12df3.webp?v=1714890784"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41907612975203,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0123224-SB07","requires_shipping":true,"taxable":true,"featured_image":{"id":31485832921187,"product_id":7414587424867,"position":5,"created_at":"2024-05-05T14:32:55+08:00","updated_at":"2024-05-05T14:32:55+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0588122d815079f92206a1b8f713b0874db6fc_a8cff3ec-f71e-49c3-805b-ae0a030641d2.webp?v=1714890775","variant_ids":[41907612975203]},"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-SB07","featured_media":{"alt":null,"id":23891168362595,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/1a0588122d815079f92206a1b8f713b0874db6fc_a8cff3ec-f71e-49c3-805b-ae0a030641d2.webp?v=1714890775"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}};
$device_handle = null;
$type = "";
var sellingStatus
if ($isMerge) {
$(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: "停產"
}