$product = {"id":7415105486947,"title":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 超級惡棍和蝙蝠俠Logo貼紙款","handle":"iphone-12-pro-max-mod-nx-magsafe-printable-sb10","description":null,"published_at":"2024-06-11T17:58:06+08:00","created_at":"2024-05-05T20:23:53+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 12 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":41911925899363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31488174981219,"product_id":7415105486947,"position":3,"created_at":"2024-05-05T20:24:01+08:00","updated_at":"2024-05-05T20:24:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c658bbcf7ccdb46b0ee764401efe54926ca7be_8bdbc7cb-6204-42d1-a3c5-b6a96b7f2620.webp?v=1714911841","variant_ids":[41911925899363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - 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":"MPB0118724-SB10","featured_media":{"alt":null,"id":23893519597667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c658bbcf7ccdb46b0ee764401efe54926ca7be_8bdbc7cb-6204-42d1-a3c5-b6a96b7f2620.webp?v=1714911841"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}],"images":["\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4c7e2ebd83e82bf5f66df73160c4e6a952d70fe_66be2d9f-82bb-4ec5-a790-669f93a8b7eb.webp?v=1714911836","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576d8ff02b92e45a2a2f786b617995ab3a1b9a06_8c7bb1f8-da57-4d12-94cb-550fcc492df6.webp?v=1714911839","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c658bbcf7ccdb46b0ee764401efe54926ca7be_8bdbc7cb-6204-42d1-a3c5-b6a96b7f2620.webp?v=1714911841","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42de93c2ab5f223da71110a579694e216abf2b55_041dad2c-6242-4dba-9956-f078b7d65a68.webp?v=1714911844","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39532a95322a90bff3b94b568f9857cdc8a72656_6e18519f-a0fe-440e-a637-ee9a48425d80.webp?v=1714911846","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/551c4a8bd1236b33d5316005c22b52de6ccd9050_983c0193-9859-4711-b919-e912e8ec5fb1.webp?v=1714911849","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76dbb65d76ebb3807e036e66e9801dfd7eb30163_60e4ef97-5bec-4680-af27-cb54eee0dfee.webp?v=1714911851","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0387004feb39abef017597400586f780b16247f5_f984f599-5cef-4b92-8f16-dab141344d23.webp?v=1714911854","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40df25d0364eaff64db94fe66e5a47b0a8287c80_acf02b7d-a328-4ec6-aa19-613e7a42abad.webp?v=1714911856","\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de4d659672c77e8605da8baab0ec9b57dd1667c9_a1f4c911-9a2a-4121-8dbf-a21011b484ac.webp?v=1714911859"],"featured_image":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4c7e2ebd83e82bf5f66df73160c4e6a952d70fe_66be2d9f-82bb-4ec5-a790-669f93a8b7eb.webp?v=1714911836","options":["color"],"media":[{"alt":null,"id":23893518712931,"position":1,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4c7e2ebd83e82bf5f66df73160c4e6a952d70fe_66be2d9f-82bb-4ec5-a790-669f93a8b7eb.webp?v=1714911836"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/d4c7e2ebd83e82bf5f66df73160c4e6a952d70fe_66be2d9f-82bb-4ec5-a790-669f93a8b7eb.webp?v=1714911836","width":2000},{"alt":null,"id":23893519138915,"position":2,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576d8ff02b92e45a2a2f786b617995ab3a1b9a06_8c7bb1f8-da57-4d12-94cb-550fcc492df6.webp?v=1714911839"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/576d8ff02b92e45a2a2f786b617995ab3a1b9a06_8c7bb1f8-da57-4d12-94cb-550fcc492df6.webp?v=1714911839","width":2000},{"alt":null,"id":23893519597667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c658bbcf7ccdb46b0ee764401efe54926ca7be_8bdbc7cb-6204-42d1-a3c5-b6a96b7f2620.webp?v=1714911841"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c658bbcf7ccdb46b0ee764401efe54926ca7be_8bdbc7cb-6204-42d1-a3c5-b6a96b7f2620.webp?v=1714911841","width":2000},{"alt":null,"id":23893520154723,"position":4,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42de93c2ab5f223da71110a579694e216abf2b55_041dad2c-6242-4dba-9956-f078b7d65a68.webp?v=1714911844"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/42de93c2ab5f223da71110a579694e216abf2b55_041dad2c-6242-4dba-9956-f078b7d65a68.webp?v=1714911844","width":2000},{"alt":null,"id":23893520842851,"position":5,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39532a95322a90bff3b94b568f9857cdc8a72656_6e18519f-a0fe-440e-a637-ee9a48425d80.webp?v=1714911846"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39532a95322a90bff3b94b568f9857cdc8a72656_6e18519f-a0fe-440e-a637-ee9a48425d80.webp?v=1714911846","width":2000},{"alt":null,"id":23893521432675,"position":6,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/551c4a8bd1236b33d5316005c22b52de6ccd9050_983c0193-9859-4711-b919-e912e8ec5fb1.webp?v=1714911849"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/551c4a8bd1236b33d5316005c22b52de6ccd9050_983c0193-9859-4711-b919-e912e8ec5fb1.webp?v=1714911849","width":2000},{"alt":null,"id":23893522284643,"position":7,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76dbb65d76ebb3807e036e66e9801dfd7eb30163_60e4ef97-5bec-4680-af27-cb54eee0dfee.webp?v=1714911851"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/76dbb65d76ebb3807e036e66e9801dfd7eb30163_60e4ef97-5bec-4680-af27-cb54eee0dfee.webp?v=1714911851","width":2000},{"alt":null,"id":23893522776163,"position":8,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0387004feb39abef017597400586f780b16247f5_f984f599-5cef-4b92-8f16-dab141344d23.webp?v=1714911854"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/0387004feb39abef017597400586f780b16247f5_f984f599-5cef-4b92-8f16-dab141344d23.webp?v=1714911854","width":2000},{"alt":null,"id":23893523300451,"position":9,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40df25d0364eaff64db94fe66e5a47b0a8287c80_acf02b7d-a328-4ec6-aa19-613e7a42abad.webp?v=1714911856"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/40df25d0364eaff64db94fe66e5a47b0a8287c80_acf02b7d-a328-4ec6-aa19-613e7a42abad.webp?v=1714911856","width":2000},{"alt":null,"id":23893523693667,"position":10,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de4d659672c77e8605da8baab0ec9b57dd1667c9_a1f4c911-9a2a-4121-8dbf-a21011b484ac.webp?v=1714911859"},"aspect_ratio":1.0,"height":2000,"media_type":"image","src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/de4d659672c77e8605da8baab0ec9b57dd1667c9_a1f4c911-9a2a-4121-8dbf-a21011b484ac.webp?v=1714911859","width":2000}],"requires_selling_plan":false,"selling_plan_groups":[],"content":null};
$isMerge = null;
$variants = [{"id":41911925899363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31488174981219,"product_id":7415105486947,"position":3,"created_at":"2024-05-05T20:24:01+08:00","updated_at":"2024-05-05T20:24:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c658bbcf7ccdb46b0ee764401efe54926ca7be_8bdbc7cb-6204-42d1-a3c5-b6a96b7f2620.webp?v=1714911841","variant_ids":[41911925899363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - 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":"MPB0118724-SB10","featured_media":{"alt":null,"id":23893519597667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c658bbcf7ccdb46b0ee764401efe54926ca7be_8bdbc7cb-6204-42d1-a3c5-b6a96b7f2620.webp?v=1714911841"}},"requires_selling_plan":false,"selling_plan_allocations":[],"quantity_rule":{"min":1,"max":null,"increment":1}}];
$defaultVariant = {"id":41911925899363,"title":"Mod NX-黑色邊框","option1":"Mod NX-黑色邊框","option2":null,"option3":null,"sku":"MPB0118724-SB10","requires_shipping":true,"taxable":true,"featured_image":{"id":31488174981219,"product_id":7415105486947,"position":3,"created_at":"2024-05-05T20:24:01+08:00","updated_at":"2024-05-05T20:24:01+08:00","alt":null,"width":2000,"height":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c658bbcf7ccdb46b0ee764401efe54926ca7be_8bdbc7cb-6204-42d1-a3c5-b6a96b7f2620.webp?v=1714911841","variant_ids":[41911925899363]},"available":true,"name":"犀牛盾Mod NX (MagSafe 兼容)手機殼 - iPhone 12 Pro Max - Batman - 超級惡棍和蝙蝠俠Logo貼紙款 - 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":"MPB0118724-SB10","featured_media":{"alt":null,"id":23893519597667,"position":3,"preview_image":{"aspect_ratio":1.0,"height":2000,"width":2000,"src":"\/\/b2b.rhinoshield.tw\/cdn\/shop\/files\/39c658bbcf7ccdb46b0ee764401efe54926ca7be_8bdbc7cb-6204-42d1-a3c5-b6a96b7f2620.webp?v=1714911841"}},"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: "停產"
}